Skip to navigation

Update Policy

Update a Policy.

Restrictions

  • Only data policies can be updated; requests targeting other policy types are rejected.
  • Only name and description may be modified.
  • name must be unique among the tenant’s data policies.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Path parameters

policy_idstringRequired
ID of the Policy.

Request

This endpoint expects an object.
descriptionstring or nullOptional
The description of the Policy. Pass null to clear the description.
namestringOptional
The name of the Policy
reasonForChangeobjectOptional

Reason for change applied to the entire request. Only relevant to tenants with Data Modifications enabled, where it may be required to update or delete items and is validated against the tenant’s configured reasons. Tenants without Data Modifications enabled can omit it; if supplied, it is not validated.

Response

OK
__typenamestringOptional
createdAtstringOptionalformat: "datetime"
descriptionstring or nullOptional
idstringOptional
modifiedAtstringOptionalformat: "datetime"
namestringOptional
policyStatementslist of objectsOptional
policyTypeenumOptional
Allowed values:

Errors

400
Bad Request Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error
429
Too Many Requests Error
500
Internal Server Error