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."
}Attaches given permission to a given 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."
}