PATCH /v1/policies/{policy_id}/revisions/{revision_id}
PolicyService_UpdatePolicyRevision
The server validates credentials, tenant, environment and permissions. This page does not send requests. Replace example values; deployed server validation remains authoritative.
Parameters
policy_idpath · string · requiredrevision_idpath · string · required
Request body
bindingsarrayExpand fields
binding_priorityinteger · int32environment_idstringresource_refstringresource_typestringsubject_refstringsubject_typestring
condition_jsonstringeffect_jsonstringeffective_fromstringeffective_tostringexclusion_groupstringexpected_versionstringmax_matchesinteger · int32policy_idstringpriorityinteger · int32revision_idstringrolloutobjectExpand fields
customer_account_idsarraymodestringpercentageinteger · int32
stack_groupstringstack_modestring
cURL
curl --request PATCH 'https://nexus-api.rainlib.com/v1/policies/{policy_id}/revisions/{revision_id}' \
--header 'Authorization: Bearer <NEXUS_ACCESS_TOKEN>' \
--header 'Content-Type: application/json' \
--data '{
"bindings": [
{
"binding_priority": 0,
"environment_id": "<value>",
"resource_ref": "<value>",
"resource_type": "<value>",
"subject_ref": "<value>",
"subject_type": "<value>"
}
],
"condition_json": "<value>",
"effect_json": "<value>",
"effective_from": "<value>",
"effective_to": "<value>",
"exclusion_group": "<value>",
"expected_version": "<value>",
"max_matches": 0,
"priority": 0,
"rollout": {
"customer_account_ids": [
"<value>"
],
"mode": "<value>",
"percentage": 0
},
"stack_group": "<value>",
"stack_mode": "<value>"
}'Response contract
200 · OK
codestringcreated_atstringcurrent_revisionobjectExpand fields
bindingsarrayExpand fields
binding_priorityinteger · int32environment_idstringidstringresource_refstringresource_typestringsubject_refstringsubject_typestring
checksarrayExpand fields
codestringdetailstringlevelstringpassedbooleantitlestring
condition_jsonstringcreated_atstringeffect_jsonstringeffective_fromstringeffective_tostringexclusion_groupstringidstringmax_matchesinteger · int32priorityinteger · int32revision_nointeger · int32rolloutobjectExpand fields
customer_account_idsarraymodestringpercentageinteger · int32
stack_groupstringstack_modestringstatusstringupdated_atstringversionstring
descriptionstringdraft_revisionobjectExpand fields
bindingsarrayExpand fields
binding_priorityinteger · int32environment_idstringidstringresource_refstringresource_typestringsubject_refstringsubject_typestring
checksarrayExpand fields
codestringdetailstringlevelstringpassedbooleantitlestring
condition_jsonstringcreated_atstringeffect_jsonstringeffective_fromstringeffective_tostringexclusion_groupstringidstringmax_matchesinteger · int32priorityinteger · int32revision_nointeger · int32rolloutobjectExpand fields
customer_account_idsarraymodestringpercentageinteger · int32
stack_groupstringstack_modestringstatusstringupdated_atstringversionstring
history_revisionsarrayExpand fields
bindingsarrayExpand fields
binding_priorityinteger · int32environment_idstringidstringresource_refstringresource_typestringsubject_refstringsubject_typestring
checksarrayExpand fields
codestringdetailstringlevelstringpassedbooleantitlestring
condition_jsonstringcreated_atstringeffect_jsonstringeffective_fromstringeffective_tostringexclusion_groupstringidstringmax_matchesinteger · int32priorityinteger · int32revision_nointeger · int32rolloutobjectExpand fields
customer_account_idsarraymodestringpercentageinteger · int32
stack_groupstringstack_modestringstatusstringupdated_atstringversionstring
idstringnamestringpending_revisionobjectExpand fields
bindingsarrayExpand fields
binding_priorityinteger · int32environment_idstringidstringresource_refstringresource_typestringsubject_refstringsubject_typestring
checksarrayExpand fields
codestringdetailstringlevelstringpassedbooleantitlestring
condition_jsonstringcreated_atstringeffect_jsonstringeffective_fromstringeffective_tostringexclusion_groupstringidstringmax_matchesinteger · int32priorityinteger · int32revision_nointeger · int32rolloutobjectExpand fields
customer_account_idsarraymodestringpercentageinteger · int32
stack_groupstringstack_modestringstatusstringupdated_atstringversionstring
policy_typestringsource_template_fork_idstringsource_template_idstringsource_template_versioninteger · int32statusstringupdated_atstringversionstring
Generated responses do not enumerate every runtime error. See the integration guide for authentication, conflicts and retries.