Skip to main content
POST
http://localhost:3000
/
scope-types
curl -X POST 'https://api.example.com/scope-types' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{
    "name": "Department",
    "description": "Department within an organization"
  }'
{
  "id": "type_dept",
  "name": "Department",
  "description": "Department within an organization"
}

Request Body

name
string
required
Display name for the scope type
description
string
Description of the scope type

Response

Returns the created scope type object.
curl -X POST 'https://api.example.com/scope-types' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{
    "name": "Department",
    "description": "Department within an organization"
  }'
{
  "id": "type_dept",
  "name": "Department",
  "description": "Department within an organization"
}