Assign Role to Application
Endpoint: POST /api/applications/{applicationId}/roles/{role}
Assigns roles to an already created application in your Conductor cluster.
Path parameters
| Parameter | Description | Type | Required/ Optional |
|---|---|---|---|
| applicationId | The unique ID of the application to which the role will be assigned. | string | Required. |
| role | The role to assign for application. Supported values: The following roles are available to any user with access to applications:
| string | Required. |
Response
- Returns 200 OK, indicating that the role is assigned to the application.
- Returns 404 if an invalid application ID is provided.
- Returns 403 Forbidden if a non-admin user attempts to assign an unrestricted role.
Examples
Assign a role to an application
Request
curl -X 'POST' \
'https://<YOUR-SERVER-URL>/api/applications/243a8a88-9f77-48b2-9429-76793a123344/roles/METADATA_API' \
-H 'accept: application/json' \
-H 'X-Authorization: <TOKEN>' \
-d ''
Response
Returns 200 OK, indicating that the role is assigned to the application.