Skip to main content
PUT
/
api
/
v2
/
backoffice
/
permissions
/
{id}
Update a permission
curl --request PUT \
  --url https://sandbox.killb.app/api/v2/backoffice/permissions/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "user:create",
  "resource": "user",
  "action": "create",
  "description": "Permission to create users",
  "active": true
}
'
{
  "id": "<string>",
  "name": "<string>",
  "resource": "<string>",
  "action": "<string>",
  "description": "<string>",
  "active": true,
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

id
string
required

Body

application/json
name
string
Example:

"user:create"

resource
string
Example:

"user"

action
string
Example:

"create"

description
string
Example:

"Permission to create users"

active
boolean
Example:

true

Response

id
string
required
name
string
required
resource
string
required
action
string
required
description
string
required
active
boolean
required
createdAt
string<date-time>
required
updatedAt
string<date-time>
required