Post API v1 permission

Changed on
post/api/v1/permission/

Request

  • The document declares no server URL.
  • Auth: HTTP bearer

Request body

$schemastring uri

A URL to the JSON Schema for this object.

actionstring required

Action for the permission

resourcestring required

Resource for the permission

Example request

{
  "$schema": "https://example.com/schemas/CreatePermissionRequest.json",
  "action": "create",
  "resource": "user"
}

Response

OK

$schemastring uri

A URL to the JSON Schema for this object.

actionstring required

Action for the permission

idstring required

ID of the permission

resourcestring required

Resource for the permission

Example response

{
  "$schema": "https://example.com/schemas/PermissionResponse.json",
  "action": "create",
  "id": "1",
  "resource": "user"
}

Changes