Skip to main content
POST
/
api
/
authorization
/
v1
/
roles
Create Role
curl --request POST \
  --url https://{instance}.domo.com/api/authorization/v1/roles \
  --header 'Content-Type: application/json' \
  --header 'X-DOMO-Developer-Token: <api-key>' \
  --data '
{
  "name": "string",
  "description": "string",
  "fromRoleId": 123
}
'
{
  "id": 123,
  "name": "<string>",
  "description": "<string>"
}

Authorizations

X-DOMO-Developer-Token
string
header
required

Body

application/json
name
string
required

The name that will be displayed for the role

description
string
required

Description that will be displayed for the role

fromRoleId
integer
required

The ID of the role to fetch

Response

200 - application/json

HTTP/1.1 200 OK Content-Type: application/json;charset=UTF-8

id
integer
name
string
description
string