Projects
Edit a project guideline
PATCH
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*stringMatch
^[A-Za-z0-9_-]+$Length
1 <= length <= 100guidelineId*stringMatch
^[A-Za-z0-9_-]+$Length
1 <= length <= 100- body
topic?unknownValue in
"language""tone""length""format""audience""channels""scheduling""workflow""other""emoji""vocabulary"statement?stringLength
1 <= length <= 1500channelIds?array<>|nullrevision*integerRange
1 <= valueResponse for status 200
application/json- response
id*stringMatch
^[A-Za-z0-9_-]+$Length
1 <= length <= 100projectId*stringMatch
^[A-Za-z0-9_-]+$Length
1 <= length <= 100topic*unknownValue in
"language""tone""length""format""audience""channels""scheduling""workflow""other""emoji""vocabulary"statement*stringLength
1 <= length <= 1500channelIds*array<>|nullsource*stringValue in
"studio""api""assistant"createdBy*string|nullupdatedBy*string|nullupdatedByName*string|nullrevision*integerRange
1 <= valuecreatedAt*integerupdatedAt*integercurl -X PATCH 'https://postdot.example/api/projects/string/guidelines/string' \
-H 'Content-Type: application/json' \
-d '{
"revision": 1
}'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
}