POST /v1/goals
Service: content · operationId: (none)
Required scopes
(no scope declared — review service config)
Request body
{
"type": "object",
"properties": {
"name": {
"type": "string"
},
"slug": {
"type": "string"
},
"brandId": {
"type": "string"
},
"summary": {
"type": "string"
},
"status": {
"type": "string",
"enum": [
"draft",
"published",
"archived"
]
}
},
"required": [
"name",
"slug"
]
}Responses
201 Created goal
{
"type": "object",
"properties": {
"id": {
"anyOf": [
{
"type": "string"
},
{
"type": "number"
}
]
},
"name": {
"type": "string"
},
"slug": {
"type": "string"
},
"brandId": {
"type": "string"
},
"status": {
"type": "string"
},
"summary": {
"type": [
"string",
"null"
]
},
"createdAt": {
"type": "string"
},
"updatedAt": {
"type": "string"
}
},
"required": [
"id",
"name",
"slug",
"brandId",
"status",
"createdAt",
"updatedAt"
]
}Example
curl -X POST https://content.platform.loop.health/v1/goals \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{ ... }'Related
services/content— service overview- All endpoints — directory across services
- Auth model — how scopes are enforced