Skip to content

Documents API: Create hub

PropertyValue
Typemutation
MethodPOST
Path/api/external/v1/documents/create_hub
HandlerOperatelyWeb.Api.ResourceHubs.Create
  • Requires a valid API token.
  • Requires a write-enabled token.
  • Read-only tokens return 403.
FieldTypeRequiredNullableDefault
space_idid primitive (encoded as string)YesNo-
namestringYesNo-
FieldTypeRequiredNullable
hubresource_hub_summary objectYesNo
Copied
curl --request POST \
  --url "https://app.operately.com/api/external/v1/documents/create_hub" \
  --header "Authorization: Bearer ${OPERATELY_API_TOKEN}" \
  --header "Content-Type: application/json" \
  --data '{"name":"value", "space_id":"value"}'
{
"hub": {
"__typename": "value",
"id": "value",
"is_default": true,
"name": "value",
"position": 123
}
}