POST
/
api
/
roles
Create a role
curl --request POST \
  --url https://{FUSION HOST}/api/roles \
  --header 'Content-Type: application/json' \
  --data '{
  "id": "<string>",
  "name": "<string>",
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z",
  "desc": "<string>",
  "permissions": [
    {
      "methods": [
        "GET"
      ],
      "path": "<string>",
      "params": {}
    }
  ],
  "uiPermissions": [
    "<string>"
  ]
}'
{
  "id": "<string>",
  "name": "<string>",
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z",
  "desc": "<string>",
  "permissions": [
    {
      "methods": [
        "GET"
      ],
      "path": "<string>",
      "params": {}
    }
  ],
  "uiPermissions": [
    "<string>"
  ]
}

Body

application/json

Response

201
*/*

Created

The response is of type object.