[{"label":"Latest (1.0)","version":"latest"}]
cloud-partner-navigator

Assign Roles To OAuth Client

Description

Assigns roles to the specified OAuth client in a given organization.

Request

Request

URL

URL


post
https://console.navigator.vmware.com/cphub/api/auth/v2/orgs/{orgId}/clients
Copy

Path Parameters

Path Parameters

string
orgId Required

Unique identifier (GUID) of the organization.


Query Parameters

Query Parameters

string
context Optional

context can be PROVIDER or TENANT


Request Body

Request Body

AssignRolesRequest of mimetype application/json Optional

Defines the request body to assign roles to the specified OAuth client

This request body class requires all of the following: BaseOrgRoleDto, InlineAssignRolesRequest1
Authentication

Authentication

This operation uses the following authentication methods.

Response

Response

Response Body

Response Body

200 OK

Returns FailureResponse of type application/json
{
	"failures": [
		{
			"id": "string",
			"message": "string"
		}
	]
}
array of FailureDto
failures Optional

The list of failures related to the operation.

Errors

Errors

400

Bad Request - The request is either incomplete or incorrect


401

Unauthorized - The user is not authorized to use the API


403

Forbidden - User does not have permission for this operation


500

Internal Server Error - An unexpected error has occurred while processing the request

Code Samples

Code Samples

cURL Command

curl -X POST -H "Content-Type: application/json" -d '{"ids":["string"],"orgRoleBindingOrgs":["string"],"organizationRoles":[{"name":"string"}],"serviceRoles":[{"serviceDefinitionId":"string","serviceRoles":[{"name":"string"}]}]}' https://console.navigator.vmware.com/cphub/api/auth/v2/orgs/{orgId}/clients


Feedback

Was this page helpful?