Skip to content

create_resource_hub_document

Endpoint#

PropertyValue
Typemutation
MethodPOST
Path/api/external/v1/create_resource_hub_document
HandlerOperatelyWeb.Api.Mutations.CreateResourceHubDocument

Authentication#

  • Requires a valid API token.
  • Requires a write-enabled token.
  • Read-only tokens return 403.

Inputs#

FieldTypeRequiredNullableDefault
resource_hub_idid primitive (encoded as string)NoYes-
folder_idid primitive (encoded as string)NoYes-
namestringNoYes-
contentstringNoYes-
post_as_draftbooleanNoYes-
send_notifications_to_everyonebooleanNoYes-
subscriber_idsarray of id primitive (encoded as string)NoYes-
copied_document_idid primitive (encoded as string)NoYes-

Outputs#

FieldTypeRequiredNullable
documentdocumentNoYes

cURL Example#

Copied
curl --request POST \
  --url "https://app.operately.com/api/external/v1/create_resource_hub_document" \
  --header "Authorization: Bearer ${OPERATELY_API_TOKEN}" \
  --header "Content-Type: application/json" \
  --data '{"content":"value", "copied_document_id":"value", "folder_id":"value", "name":"value", "post_as_draft":true, "resource_hub_id":"value", "send_notifications_to_everyone":true, "subscriber_ids":["value"]}'

Response Example#

{
  "document": "<document>"
}