Patch Org Roles

Patch Org Roles

Edit roles.

Request
URI
PATCH
https://sc2-10-185-6-200.eng.vmware.com//csp/gateway/am/api/orgs/{orgId}/roles
COPY
Path Parameters
string
orgId
Required

orgId


Request Body
UsersRolesPatchRequest of type(s) application/json
Optional
{
    "userList": [
        {
            "userName": "string",
            "orgRolesUpdateRequest": {
                "roleNamesToAdd": [
                    "string"
                ],
                "roleNamesToRemove": [
                    "string"
                ]
            },
            "empty": false
        }
    ],
    "servicesRolesPatchRequest": {
        "serviceRolesPatchRequest": [
            {
                "serviceId": "string",
                "roleNamesToAdd": [
                    "string"
                ],
                "roleNamesToRemove": [
                    "string"
                ]
            }
        ]
    }
}
userList
Optional

userList

servicesRolesPatchRequest
Optional

servicesRolesPatchRequest

Responses
200

default response

Returns UserRolePatchResponse of type(s) */*
{
    "successOrgRolesUsernames": [
        "string"
    ],
    "failedOrgRolesUsernames": [
        "string"
    ],
    "successServiceRolesUsernames": [
        "string"
    ],
    "failedServicesRolesUsernames": [
        "string"
    ]
}
array of string
successOrgRolesUsernames
Optional

successOrgRolesUsernames

array of string
failedOrgRolesUsernames
Optional

failedOrgRolesUsernames

array of string
successServiceRolesUsernames
Optional

successServiceRolesUsernames

array of string
failedServicesRolesUsernames
Optional

failedServicesRolesUsernames