Patch API v1 permission by ID

Changed on
patch/api/v1/permission/{id}

Request

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

Path parameters

idstring required

Request body

$schemastring uri

A URL to the JSON Schema for this object.

actionstring

Action for the permission

resourcestring

Resource for the permission

Example request

{
  "$schema": "https://example.com/schemas/UpdatePermissionRequest.json",
  "action": "update",
  "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