Skip to navigation

Add DataPolicy statements

Add policy statements to a DataPolicy. Acts as an upsert keyed on (itemType, action): for each incoming statement, any existing statement with the same item type and action is overwritten with the provided condition, and statements for other (itemType, action) pairs are left unchanged. Only DataPolicy objects can be edited.

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.
statementslist of objectsRequired

Policy statements to add. Any existing statement with the same item type and action is overwritten with the provided condition; other statements are left unchanged.

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