Public Resource
Role

Add a single role to a resource. When the resource has an inline policy defined (no shared resource policy assigned), the role is added to the inline policy instead of directly to the resource.

post/public-resource/{resourceId}/roles/add

Request

  • Base URL: https://api.pangolin.net/v1
  • URL: https://api.pangolin.net/v1/public-resource/{resourceId}/roles/add
  • Auth: HTTP bearer

Path parameters

resourceIdstring required

Request body

roleIdinteger required

Response

Successful response

dataobject nullable required
successboolean required
errorboolean required
messagestring required
statusnumber required

Changes

No recorded changes to this operation across all 1 revision of this API.