POST
/
matters
/
{matterId}
/
roles
Add role to a matter
curl --request POST \
  --url https://api.smokeball.com/matters/{matterId}/roles \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json-patch+json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "name": "Provider",
  "displayName": "Medical Provider",
  "description": "Client",
  "contactId": "c85d28cb-a760-4627-aa59-0a853c2e65ed",
  "representativeIds": [
    "776e778f-83df-454a-b344-768a862a7e67"
  ],
  "isMatterItemRequired": true,
  "relationships": [
    {
      "name": "Provider",
      "displayName": "Medical Provider",
      "contactId": "c85d28cb-a760-4627-aa59-0a853c2e65ed",
      "representativeIds": [
        "776e778f-83df-454a-b344-768a862a7e67"
      ],
      "isMatterItemRequired": true
    }
  ]
}'
{
  "id": "<string>",
  "href": "<string>",
  "relation": "<string>",
  "method": "GET"
}

Authorizations

x-api-key
string
header
required
Authorization
string
header
required

Headers

Version
integer

Path Parameters

matterId
string
required

Body

name
string | null

Name of the role.

Example:

"Provider"

displayName
string | null

Display Name of the role.

Example:

"Medical Provider"

description
string | null

Description of the role.

Example:

"Client"

contactId
string | null

Unique identifier of the contact.

Example:

"c85d28cb-a760-4627-aa59-0a853c2e65ed"

representativeIds
string[] | null

List of associated representative contact ids.

Example:
["776e778f-83df-454a-b344-768a862a7e67"]
isMatterItemRequired
boolean

Boolean flag indicating if matter item is required.

relationships
object[] | null

List if relationships associated with the role.

Response

202
application/json

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

id
string | null
href
string | null
relation
string | null
method
string | null
default:GET