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
header
AuthorizationBearer <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.
projectId*stringLength
1 <= length- body
editorsCanRemovePublishedPosts*booleanResponse for status 200
application/json- response
policy*curl -X PUT 'https://postdot.example/api/projects/string/policy' \
-H 'Content-Type: application/json' \
-d '{
"editorsCanRemovePublishedPosts": true
}'Example Response
{
"policy": {
"editorsCanRemovePublishedPosts": true
}
}