Documents API: List drafts
Endpoint#
Section titled “Endpoint#”| Property | Value |
|---|---|
| Type | query |
| Method | GET |
| Path | /api/external/v1/documents/list_drafts |
| Handler | OperatelyWeb.Api.ResourceHubs.ListDrafts |
Authentication#
Section titled “Authentication#”- Requires a valid API token.
- Read-only and full-access tokens can execute this query.
| Field | Type | Required | Nullable | Default |
|---|---|---|---|---|
resource_hub_id | id primitive (encoded as string) | Yes | No | - |
Outputs#
Section titled “Outputs#”| Field | Type | Required | Nullable |
|---|---|---|---|
draft_nodes | array of resource_hub_node object | Yes | No |
cURL Example#
Section titled “cURL Example#”Copied
curl --request GET \
--url "https://app.operately.com/api/external/v1/documents/list_drafts?resource_hub_id=value" \
--header "Authorization: Bearer ${OPERATELY_API_TOKEN}"Response Example#
Section titled “Response Example#”{ "draft_nodes": [ { "__typename": "value", "document": "<resource_hub_document>", "file": "<resource_hub_file>", "folder": "<resource_hub_folder>", "id": "value", "inserted_at": "value", "link": "<resource_hub_link>", "name": "value", "path_to_node": [ "<resource_hub_folder>" ], "type": "value", "updated_at": "value" } ]}