addMemberRoles

post

/ccstore/v1/organizationMembers/{id}/addRoles

Add Member Roles. This operation is used to add roles to the Organization Member. Optionally takes the x-ccasset-language header to get translated content in another language.

Request

Supported Media Types
Path Parameters
Header Parameters
Body ()
Root Schema : addMemberRoles_request
Type: object
Show Source
Example:
{
    "roles":[
        {
            "id":"role1"
        },
        {
            "id":"role2"
        }
    ]
}
Nested Schema : roles
Type: array
List of roles that need to be added to the organization member.
Show Source
Nested Schema : items
Type: object
Show Source
Back to Top

Response

Supported Media Types

200 Response

Following model is returned when operation succeeds.
Body ()
Root Schema : addMemberRoles_response
Type: object
Show Source
Example Response (application/json)
{
    "success":true,
    "links":[
        {
            "rel":"self",
            "href":"http://localhost:8080/ccstoreui/v1/organizationMembers/bb-110000/addRoles"
        }
    ]
}

Default Response

The error response. The following are the internal error codes thrown by this API when the request processing fails in Oracle Commerce Cloud: |Error Code|Description| |------------------|------------------| |64100|If the current profile is transient.| |221000|If the current user is not Delegated Admin.| |22020|If roles provided is empty or null.| |22055|If the roles input provided is invalid.| |22007|If roles input provided is null.|
Body ()
Root Schema : errorModel
Type: object
Show Source
Nested Schema : errors
Type: array
An optional list of errors if multiple errors were encountered
Show Source
Nested Schema : items
Type: object
Show Source
Back to Top