---
title: "Add role to a matter"
method: POST
path: "/matters/{matterId}/roles"
tags: ["Roles"]
---

# Add role to a matter

`POST /matters/{matterId}/roles`

Appends a new role in the specified matter.

## Path parameters

- `matterId` string, uuid, required

## Headers

- `Version` integer

## Request body

- RoleDto
  - `name` string, nullable — Name of the role.
  - `displayName` string, nullable — Display Name of the role.
  - `description` string, nullable — Description of the role.
  - `contactId` string, nullable — Unique identifier of the contact.
  - `representativeIds` string[], nullable — List of associated representative contact ids.
  - `isMatterItemRequired` boolean — Boolean flag indicating if matter item is required.
  - `relationships` RelationshipDto[], nullable — List if relationships associated with the role.
    - `name` string, nullable — Name of the relationship.
    - `displayName` string, nullable — Display Name of the relationship.
    - `contactId` string, nullable — Unique identifier of the contact.
    - `representativeIds` string[], nullable — List of associated representative contact ids.
    - `isMatterItemRequired` boolean — Boolean flag indicating if a matter item is required.

## Response `202`

When request is accepted. Returns a hypermedia 'Link' object of the role to be created.

- Link
  - `id` string, nullable
  - `href` string, nullable
  - `relation` string, nullable
  - `method` string, nullable

## Other responses

- `400` — When an invalid role is provided for the specified matter.
- `404` — When the specified matter does not exist.

---

[API](https://skmtc.net/smokeball/apis/api.md) · [All operations](https://skmtc.net/smokeball/apis/api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/smokeball/api/revisions/ffc7fffa0d5c/schema)
