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."
}Create a new 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."
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
OK