PATCH /v1/drafts/\{id\}
Service: community · operationId: (none)
Required scopes
(no scope declared — review service config)
Path parameters
id(string) required —
Request body
{
"type": "object",
"properties": {
"body": {
"type": "string"
},
"target_community_slug": {
"type": "string"
},
"attachments_jsonb": {}
}
}Responses
200 Draft updated
{
"type": "object",
"properties": {
"id": {
"type": "string"
},
"user_id": {
"type": "string"
},
"target_community_slug": {
"type": [
"string",
"null"
]
},
"body": {
"type": [
"string",
"null"
]
},
"attachments_jsonb": {},
"updated_at": {
"type": "string"
}
},
"required": [
"id",
"user_id",
"target_community_slug",
"body",
"updated_at"
]
}404 Draft not found
{
"type": "object",
"properties": {
"error": {
"type": "string"
},
"message": {
"type": "string"
}
},
"required": [
"error",
"message"
]
}Example
curl -X PATCH https://community.platform.loop.health/v1/drafts/{id} \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{ ... }'Related
services/community— service overview- All endpoints — directory across services
- Auth model — how scopes are enforced