Skip to main content
POST
/
admin
/
permissions
Create a permission
curl --request POST \
  --url https://api-dev.narrative.io/admin/permissions \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "resource": "test_resource",
  "status": {
    "type": "active"
  },
  "verb": {
    "type": "admin"
  }
}
'
{
  "error": "Unauthorized",
  "error_description": "You are not authorized to use this endpoint."
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
resource
string
required

Resource type associated with a permissions

status
object
required

Status of a permission

verb
object
required

Verb (action) associated with a permissions

Response

OK