Skip to Content
Projects

Update the project policy

Changes the project policy settings. editorsCanRemovePublishedPosts lets project editors delete and restore posts with a published channel; it is off by default and the platform copy always stays. Project owners, and workspace owners or administrators, only. Each change is recorded in the audit journal. API keys need project:access_manage.

PUT
/api/projects/{projectId}/policy

Authorization

headerAuthorizationBearer <Postdot API key>

A user-owned Postdot API key sent as Authorization: Bearer <token>. Its project scope is limited by the creator’s current access.

Path Parameters

projectId*string
Length1 <= length

Request Body

  1. body
editorsCanRemovePublishedPosts*boolean

Response Body

Response for status 200

application/json
  1. response
policy*
Example Request
curl -X PUT 'https://postdot.example/api/projects/string/policy' \
  -H 'Content-Type: application/json' \
  -d '{
  "editorsCanRemovePublishedPosts": true
}'
Example Response
{
  "policy": {
    "editorsCanRemovePublishedPosts": true
  }
}

Was this page helpful?