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
- application/json
Path Parameters
Header Parameters
-
X-CCAsset-Language(optional): string
The asset language of the request
Root Schema : addMemberRoles_request
Type:
Show Source
object
-
roles:
array roles
List of roles that need to be added to the organization member.
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
Response
Supported Media Types
- application/json
200 Response
Following model is returned when operation succeeds.
Root Schema : addMemberRoles_response
Type:
Show Source
object
-
success(optional):
boolean
Returns true if the operation succeeded without throwing an exception.
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.|
Root Schema : errorModel
Type:
Show Source
object
-
devMessage(optional):
string
An optional non-localized message containing technical information for developers
-
errorCode(optional):
string
The numerical code identifying the error
-
errors(optional):
array errors
An optional list of errors if multiple errors were encountered
-
message(optional):
string
The localized message describing the error
-
moreInfo(optional):
string
An optional non-localized message with more information
-
o:errorPath(optional):
string
An optional machine readable description of where the error occurred
-
status(optional):
string
The HTTP status code
-
type(optional):
string
The URI to the HTTP state code definition
Nested Schema : errors
Type:
array
An optional list of errors if multiple errors were encountered
Show Source
Nested Schema : items
Type:
Show Source
object
-
devMessage(optional):
string
An optional non-localized message containing technical information for developers
-
errorCode(optional):
string
The numerical code identifying the error
-
message(optional):
string
The localized message describing the error
-
moreInfo(optional):
string
An optional non-localized message with more information
-
o:errorPath(optional):
string
An optional machine readable description of where the error occurred
-
status(optional):
string
The HTTP status code