Endpoint#
| Property | Value |
|---|
| Type | mutation |
| Method | POST |
| Path | /api/external/v1/publish_discussion |
| Handler | OperatelyWeb.Api.Mutations.PublishDiscussion |
Authentication#
- Requires a valid API token.
- Requires a write-enabled token.
- Read-only tokens return
403.
| Field | Type | Required | Nullable | Default |
|---|
id | id primitive (encoded as string) | No | Yes | - |
Outputs#
| Field | Type | Required | Nullable |
|---|
discussion | discussion object | No | Yes |
cURL Example#
Copiedcurl --request POST \
--url "https://app.operately.com/api/external/v1/publish_discussion" \
--header "Authorization: Bearer ${OPERATELY_API_TOKEN}" \
--header "Content-Type: application/json" \
--data '{"id":"value"}'
Response Example#
{
"discussion": {
"author": "<person>",
"body": "value",
"comments": [
"<comment>"
],
"comments_count": 123,
"id": "value",
"inserted_at": "2026-01-01",
"name": "value",
"notifications": [
"<notification>"
],
"permissions": "<space_permissions>",
"potential_subscribers": [
"<subscriber>"
],
"published_at": "2026-01-01",
"reactions": [
"<reaction>"
],
"space": "<space>",
"state": "value",
"subscription_list": "<subscription_list>",
"title": "value",
"updated_at": "2026-01-01"
}
}