Skip to content

Documents API: Create link

PropertyValue
Typemutation
MethodPOST
Path/api/external/v1/documents/create_link
HandlerOperatelyWeb.Api.Wrappers.DocsAndFiles.CreateLink
  • Requires a valid API token.
  • Requires a write-enabled token.
  • Read-only tokens return 403.
FieldTypeRequiredNullableDefault
space_idid primitive (encoded as string)NoYes-
project_idid primitive (encoded as string)NoYes-
goal_idid primitive (encoded as string)NoYes-
folder_idid primitive (encoded as string)NoYes-
namestringYesNo-
urlstringYesNo-
descriptionjson primitive (encoded as string)NoNo-
typeresource_hub_link_type enum (airtable, dropbox, figma, google, google_doc, google_sheet, google_slides, notion, other)YesNo-
send_notifications_to_everyonebooleanNoNotrue
subscriber_idsarray of id primitive (encoded as string)NoNo[]
FieldTypeRequiredNullable
linkresource_hub_link objectYesNo
Copied
curl --request POST \
  --url "https://app.operately.com/api/external/v1/documents/create_link" \
  --header "Authorization: Bearer ${OPERATELY_API_TOKEN}" \
  --header "Content-Type: application/json" \
  --data '{"description":"value", "folder_id":"value", "goal_id":"value", "name":"value", "project_id":"value", "send_notifications_to_everyone":true, "space_id":"value", "subscriber_ids":["value"], "type":"airtable", "url":"value"}'
{
"link": {
"__typename": "value",
"author": "<person>",
"comments_count": 123,
"description": "value",
"goal": "<goal>",
"id": "value",
"inserted_at": "value",
"name": "value",
"notifications": [
"<notification>"
],
"page_url": "value",
"parent_folder": "<resource_hub_folder>",
"parent_folder_id": "value",
"path_to_link": [
"<resource_hub_folder>"
],
"permissions": "<resource_hub_permissions>",
"potential_subscribers": [
"<subscriber>"
],
"project": "<project>",
"reactions": [
"<reaction>"
],
"resource_hub": "<resource_hub>",
"resource_hub_id": "value",
"space": "<space>",
"subscription_list": "<subscription_list>",
"type": "airtable",
"url": "value"
}
}