removeContacts
post
/ccstore/v1/organizations/removeContacts
Remove Contacts. This operation is used to remove a contact from the organization by delegatedAdmin. The delegated Admin cannot remove the contact if the contact is the last approval in the organization.
This endPoint accepts the organization Id in the header. If the organization Id is passed in the header, that organization becomes the current id for delegated Admin.Optionally takes the X-CCOrganization header to specify current Organization id of logged in user.
Request
Supported Media Types
- application/json
Header Parameters
-
X-CCOrganization(optional): string
the organization Id to which delegated Admin Belongs to
Root Schema : removeContacts_request
Type:
Show Source
object
-
members:
array members
profileId of member to be removed from organization
Example:
POST{"members":["bb-110014"]}
Response
Supported Media Types
- application/json
200 Response
Following model is returned when operation succeeds.
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|
|------------------|------------------|
|1002019|Due to user type mismatch, cannot unassign user id from Organization|
|23042|You cannot remove yourself from this account|
|100020|Invalid Input|
|22007|please provide valid input|
|100019|Internal Error|
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