Project Templates API: Update person
Endpoint#
Section titled “Endpoint#”| Property | Value |
|---|---|
| Type | mutation |
| Method | POST |
| Path | /api/external/v1/project_templates/update_person |
| Handler | OperatelyWeb.Api.ProjectTemplates.UpdatePerson |
Authentication#
Section titled “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 | - |
template_person_id | id primitive (encoded as string) | Yes | No | - |
person_id | id primitive (encoded as string) | No | No | - |
role | project_template_person_role enum (champion, reviewer, contributor) | No | No | - |
responsibility | string | No | Yes | - |
access_level | access_options_int enum (0, 10, 40, 70, 100) | No | No | - |
Outputs#
Section titled “Outputs#”| Field | Type | Required | Nullable |
|---|---|---|---|
person | project_template_person object | Yes | No |
cURL Example#
Section titled “cURL Example#”Copied
curl --request POST \
--url "https://app.operately.com/api/external/v1/project_templates/update_person" \
--header "Authorization: Bearer ${OPERATELY_API_TOKEN}" \
--header "Content-Type: application/json" \
--data '{"access_level":"<access_options_int>", "person_id":"value", "responsibility":"value", "role":"champion", "template_id":"value", "template_person_id":"value"}'Response Example#
Section titled “Response Example#”{ "person": { "__typename": "value", "access_level": "<access_options_int>", "active": true, "id": "value", "person": "<person>", "responsibility": "value", "role": "champion" }}