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

Update Org Roles With Binding

Description

Update org roles with org bindings for a user in an organization

Request

Request

URL

URL


patch
https://{api_host}/v1/users/{userId}/orgs/{orgId}/org-roles-with-binding
Copy

Path Parameters

Path Parameters

string
orgId Required

Unique identifier (GUID) of the organization.


string
userId Required

The userId or user account identifier.


Query Parameters

Query Parameters

string
context Optional

context can be OPERATOR, PROVIDER or TENANT.


Request Body

Request Body

OrgRoleItemsV2 of mimetype application/json Optional
{
    "OrgRoleItemsV2": {
        "orgItems": {
            "orgsToAdd": [
                "...",
                "..."
            ],
            "orgsToRemove": [
                "...",
                "..."
            ]
        },
        "orgRoleItems": {
            "roleNamesToAdd": [
                "...",
                "..."
            ],
            "roleNamesToRemove": [
                "...",
                "..."
            ]
        },
        "roleId": "..."
    },
    "orgItems": {
        "orgsToAdd": [
            "...",
            "..."
        ],
        "orgsToRemove": [
            "...",
            "..."
        ]
    },
    "orgRoleItems": {
        "roleNamesToAdd": [
            "...",
            "..."
        ],
        "roleNamesToRemove": [
            "...",
            "..."
        ]
    },
    "roleId": "..."
}
orgItems Optional

Defines the properties for the organizations to be updated.


orgRoleItems Optional

Request body to update organization roles.


string
roleId Optional

The unique identifier of the role.

Authentication

Authentication

This operation uses the following authentication methods.

Response

Response

Response Body

Response Body

200 OK

Returns OrgRoles of type application/json
{
    "OrgRoles": {
        "orgRoles": [
            {
                "displayName": "...",
                "id": "...",
                "memberType": "DIRECT",
                "name": "...",
                "orgId": "..."
            },
            {
                "displayName": "...",
                "id": "...",
                "memberType": "DIRECT",
                "name": "...",
                "orgId": "..."
            }
        ]
    },
    "orgRoles": [
        {
            "displayName": "...",
            "id": "...",
            "memberType": "DIRECT",
            "name": "...",
            "orgId": "..."
        },
        {
            "displayName": "...",
            "id": "...",
            "memberType": "DIRECT",
            "name": "...",
            "orgId": "..."
        }
    ]
}
array of Role
orgRoles Optional

The list of organization role objects.

Errors

Errors

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 PATCH -H "Content-Type: application/json" -d '{"OrgRoleItemsV2":{"orgItems":{"orgsToAdd":["...","..."],"orgsToRemove":["...","..."]},"orgRoleItems":{"roleNamesToAdd":["...","..."],"roleNamesToRemove":["...","..."]},"roleId":"..."},"orgItems":{"orgsToAdd":["...","..."],"orgsToRemove":["...","..."]},"orgRoleItems":{"roleNamesToAdd":["...","..."],"roleNamesToRemove":["...","..."]},"roleId":"..."}' https://{api_host}/v1/users/{userId}/orgs/{orgId}/org-roles-with-binding
Vendor Extensions

Vendor Extensions

This operation contains the following vendor extensions defined in the spec:
x-codegen-request-body-name: body


Feedback

Was this page helpful?