Endpoint#
| Property | Value |
|---|
| Type | mutation |
| Method | POST |
| Path | /api/external/v1/add_key_resource |
| Handler | OperatelyWeb.Api.Mutations.AddKeyResource |
Authentication#
- Requires a valid API token.
- Requires a write-enabled token.
- Read-only tokens return
403.
| Field | Type | Required | Nullable | Default |
|---|
project_id | id primitive (encoded as string) | Yes | No | - |
title | string | Yes | No | - |
link | string | Yes | No | - |
resource_type | string | No | No | - |
Outputs#
| Field | Type | Required | Nullable |
|---|
key_resource | project_key_resource object | Yes | No |
cURL Example#
Copiedcurl --request POST \
--url "https://app.operately.com/api/external/v1/add_key_resource" \
--header "Authorization: Bearer ${OPERATELY_API_TOKEN}" \
--header "Content-Type: application/json" \
--data '{"link":"value", "project_id":"value", "resource_type":"value", "title":"value"}'
Response Example#
{
"key_resource": {
"id": "value",
"link": "value",
"project_id": "value",
"resource_type": "value",
"title": "value"
}
}