Skip to main content
PUT
/
v1
/
roles
/
{role_id}
Update Role
curl --request PUT \
  --url https://api.eqho.ai/v1/roles/{role_id} \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <api-key>' \
  --data '{
  "name": "Customer Support",
  "description": "Help customers with their problems and concerns.",
  "markdown": {
    "sections": [
      {
        "level": 3,
        "title": "<string>",
        "content": "<string>",
        "subsections": [
          {
            "level": 3,
            "title": "<string>",
            "content": "<string>"
          }
        ]
      }
    ]
  }
}'
{
  "description": "Help customers with their problems and concerns.",
  "name": "Customer Support"
}

Authorizations

X-API-KEY
string
header
required

Path Parameters

role_id
string
required
Required string length: 24

Body

application/json
name
string | null
Examples:

"Customer Support"

description
string | null
Examples:

"Help customers with their problems and concerns."

markdown
object | null

Response

Successful Response

name
string
required
description
string
required
_id
string | null
account_id
string | null
enabled
boolean | null
default:true
history
object