Skip to Content
Projects

Add a project guideline

POST
/api/projects/{projectId}/guidelines

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
Match^[A-Za-z0-9_-]+$
Length1 <= length <= 100

Request Body

  1. body
topic*unknown
Value in"language""tone""length""format""audience""channels""scheduling""workflow""other""emoji""vocabulary"
statement*string
Length1 <= length <= 1500
channelIds?array<>|null

Response Body

Response for status 201

application/json
  1. response
id*string
Match^[A-Za-z0-9_-]+$
Length1 <= length <= 100
projectId*string
Match^[A-Za-z0-9_-]+$
Length1 <= length <= 100
topic*unknown
Value in"language""tone""length""format""audience""channels""scheduling""workflow""other""emoji""vocabulary"
statement*string
Length1 <= length <= 1500
channelIds*array<>|null
source*string
Value in"studio""api""assistant"
createdBy*string|null
updatedBy*string|null
updatedByName*string|null
revision*integer
Range1 <= value
createdAt*integer
updatedAt*integer
Example Request
curl -X POST 'https://postdot.example/api/projects/string/guidelines' \
  -H 'Content-Type: application/json' \
  -d '{
  "topic": "language",
  "statement": "string"
}'
Example Response
{
  "id": "string",
  "projectId": "string",
  "topic": "language",
  "statement": "string",
  "channelIds": [
    "string"
  ],
  "source": "studio",
  "createdBy": "string",
  "updatedBy": "string",
  "updatedByName": "string",
  "revision": 1,
  "createdAt": 0,
  "updatedAt": 0
}

Was this page helpful?