Skip to Content
Projects

Read the project policy

Reads the project policy settings and what the caller may do under them.

GET
/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

Response Body

Response for status 200

application/json
  1. response
policy*
permissions*
Example Request
curl -X GET 'https://postdot.example/api/projects/string/policy'
Example Response
{
  "policy": {
    "editorsCanRemovePublishedPosts": true
  },
  "permissions": {
    "canDeletePosts": true,
    "canRemovePublishedPosts": true,
    "canPurgePosts": true,
    "canChangePolicy": true
  }
}

Was this page helpful?