Skip to content

add_key_resource

Endpoint#

PropertyValue
Typemutation
MethodPOST
Path/api/external/v1/add_key_resource
HandlerOperatelyWeb.Api.Mutations.AddKeyResource

Authentication#

  • Requires a valid API token.
  • Requires a write-enabled token.
  • Read-only tokens return 403.

Inputs#

FieldTypeRequiredNullableDefault
project_idid primitive (encoded as string)YesNo-
titlestringYesNo-
linkstringYesNo-
resource_typestringNoNo-

Outputs#

FieldTypeRequiredNullable
key_resourceproject_key_resource objectYesNo

cURL Example#

Copied
curl --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"
  }
}