GuidesAPI Reference
API Reference

Share permissions to an application

Share permissions to an application.
This API works only with tokens that are not scoped to a project.

Access Control:

  • Requires the calling principal to have the following permission:
    • action: share
    • serviceId: authorization
    • resource: {resourceHrn}
Path Params
string
required

The app identifier

Body Params
permissions
array of objects
required

List of permissions.

permissions*
Responses

400
  • 400299 - Invalid permission format
  • 400322 - Not enough privileges for the requesting client to share the requested resources
  • 400409 - Service definition requires Contract Id to be provided
  • 404610 - No service descriptor record exists for given Id
  • 404700 - No contract exists with the given Id
401
  • 401420 - Not enough privileges for the requesting client to share the requested resources
403
  • 403102 - Sharing is not enabled
  • 403103 - This action cannot be shared
404
  • 404660 - No app exists with that given id
422

A defined system limit would be violated if this action was completed.

Example: 'MaxPermissionsPerEntity limit reached. Current value: 1000. Maximum value: 1000'

  • 422000 - LimitReached

Language
Credentials
Bearer
JWT
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json