registerAdmin

post

/ccadmin/v1/adminRegister

Register Admin. Endpoint to initiate and confirm regisration of admin users.Auth token should be set in Authorization header

Request

Supported Media Types
Body ()
Root Schema : registerAdmin_request
Type: object
Show Source
Example:
{
    "op":"validateToken",
    "token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE0Mzk0NDIxNzAsInN1YiI6ImFkbWluIiwiaXNzIjoicmVnaXN0ZXJBZG1pbiIsImlhdCI6MTQzODgzNzM3MH0%253D.I5DjhUEgvKiWYjEHWTiax3QRGt7er%252BkqrJHW%252F1w9Z5I%253D"
}
Back to Top

Response

Supported Media Types

200 Response

Following model is returned when operation succeeds.
Body ()
Root Schema : registerAdmin_response
Type: object
Show Source
Example Response (application/json)
{
    "success":"true"
}

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| |------------------|------------------| |83008|Invalid operation.| |83009|Invalid token| |83004|Error in input parameters. (Required parameters are missing)| |83003|Internal error| |83000|Register admin initiate error.| |83011|Token expired| |83010|User already registered| |83002|Error occurred while confirming user| |83013|User name provided is invalid| |83012|New password and confirm password did not match|
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