Skip to navigation

Set project content policy

Replaces the project content policy and creates a new immutable revision. Graphs that already exist keep the revision they bound. An empty policy (no categories and no rules) removes the content policy for new graphs.

Authentication

AuthorizationApi-Key

Type "Api-Key" followed by a space and the project API key.

Request

The complete policy
categorieslist of objectsOptional
The categories of the policy. Maximum 16. An empty list with no rules means no content policy.
ruleslist of objectsOptional
The rules of the policy. Maximum 32.

Response

OK
categorieslist of objectsOptional
The categories of the policy.
created_atstringOptional
When this policy set was created.
revisionintegerOptional
The project revision number. 0 is the empty policy of a new project.
ruleslist of objectsOptional
The rules of the policy.
uuidstringOptional
The identifier of this policy set. A project revision and every graph that binds it without additions share one uuid.

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error