Documents API: Update link
Endpoint#
Section titled “Endpoint#”| Property | Value |
|---|---|
| Type | mutation |
| Method | POST |
| Path | /api/external/v1/documents/update_link |
| Handler | OperatelyWeb.Api.Links.Update |
Authentication#
Section titled “Authentication#”- Requires a valid API token.
- Requires a write-enabled token.
- Read-only tokens return
403.
| Field | Type | Required | Nullable | Default |
|---|---|---|---|---|
link_id | id primitive (encoded as string) | Yes | No | - |
name | string | Yes | No | - |
type | resource_hub_link_type enum (airtable, dropbox, figma, google, google_doc, google_sheet, google_slides, notion, other) | Yes | No | - |
url | string | Yes | No | - |
description | json primitive (encoded as string) | No | No | - |
Outputs#
Section titled “Outputs#”| Field | Type | Required | Nullable |
|---|---|---|---|
link | resource_hub_link object | Yes | No |
cURL Example#
Section titled “cURL Example#”Copied
curl --request POST \
--url "https://app.operately.com/api/external/v1/documents/update_link" \
--header "Authorization: Bearer ${OPERATELY_API_TOKEN}" \
--header "Content-Type: application/json" \
--data '{"description":"value", "link_id":"value", "name":"value", "type":"airtable", "url":"value"}'Response Example#
Section titled “Response Example#”{ "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" }}