cURL
curl --request POST \ --url https://lancepilot.com/api/v3/workspaces/{workspace}/roles \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "name": "<string>" } '
{ "status": 201, "message": "Resource created successfully.", "data": {} }
Create a new role in the specified workspace.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
ID of the workspace.
Unique name for the role.
255
201
"Resource created successfully."
Created resource data.