Endpoint#
| Property | Value |
|---|
| Type | mutation |
| Method | POST |
| Path | /api/external/v1/project_templates/update_file |
| Handler | OperatelyWeb.Api.ProjectTemplates.UpdateFile |
Authentication#
- Requires a valid API token.
- Requires a write-enabled token.
- Read-only tokens return
403.
| Field | Type | Required | Nullable | Default |
|---|
template_id | id primitive (encoded as string) | Yes | No | - |
file_id | id primitive (encoded as string) | Yes | No | - |
name | string | Yes | No | - |
description | json primitive (encoded as string) | No | Yes | - |
Outputs#
| Field | Type | Required | Nullable |
|---|
file | project_template_resource_file object | Yes | No |
cURL Example#
Copiedcurl --request POST \
--url "https://app.operately.com/api/external/v1/project_templates/update_file" \
--header "Authorization: Bearer ${OPERATELY_API_TOKEN}" \
--header "Content-Type: application/json" \
--data '{"description":"value", "file_id":"value", "name":"value", "template_id":"value"}'
Response Example#
{
"file": {
"__typename": "value",
"author": "<person>",
"blob": "<blob>",
"description": "value",
"id": "value",
"inserted_at": "2026-01-01T09:30:00Z",
"name": "value",
"node_id": "value",
"preview_blob": "<blob>",
"updated_at": "2026-01-01T09:30:00Z"
}
}