---
title: "Set Contact Roles"
method: PUT
path: "/api/orgs/contacts/{contact_id}/roles"
tags: ["orgs"]
---

# Set Contact Roles

`PUT /api/orgs/contacts/{contact_id}/roles`

## Request

- Base URL: `https://api.pigeonly.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.pigeonly.com/api/orgs/contacts/{contact_id}/roles`
- Auth: none declared

The COMPLETE set of roles a human says this contact holds.

409 (PrimaryAlreadyTaken) naming the colleague already in the To line
for that tag, rather than silently demoting them -- one primary per tag
per organisation is a fact about the agency, and taking it off someone
is a decision, not a side effect of saving a form.

## Path parameters

- `contact_id` string, uuid, required

## Request body

- SetContactRolesRequest
  - `roles` ContactRoleRequest[], required
    - `role_tag` string, required
    - `role_rank` string, nullable
    - `note` string, nullable

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/pigeonly/apis/roost-v2-pigeonly-company-os.md) - [All operations](https://skmtc.dev/pigeonly/apis/roost-v2-pigeonly-company-os/llms.txt) - [OpenAPI document](https://skmtc.dev/pigeonly/apis/roost-v2-pigeonly-company-os/revisions/14571c4b7007?raw)
