Skip to main content
POST
/
admin
/
products
/
add-permission
Attach permission to product
curl --request POST \
  --url https://api-dev.narrative.io/admin/products/add-permission \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "product_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "permission_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'
{
  "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
product_id
string<uuid>
required

UUID

permission_id
string<uuid>
required

UUID

Response

OK