Create a user account

post

/hcmRestApi/resources/11.13.18.05/userAccounts

Request

Supported Media Types
Body ()
The following table describes the body parameters in the request for this task.
Root Schema : userAccounts-item
Type: object
Show Source
Nested Schema : User Account Roles
Type: array
Title: User Account Roles
The userAccounts resource includes all the user accounts as of the specified date. By default, the current date is retained.
Show Source
Nested Schema : userAccounts-userAccountRoles-item
Type: object
Show Source
Back to Top

Response

Supported Media Types

Default Response

The following table describes the default response for this task.
Body ()
Root Schema : userAccounts-item
Type: object
Show Source
Nested Schema : User Account Roles
Type: array
Title: User Account Roles
The userAccounts resource includes all the user accounts as of the specified date. By default, the current date is retained.
Show Source
Nested Schema : userAccounts-userAccountRoles-item
Type: object
Show Source
Back to Top

Examples

The following example shows how to create a user account by submitting a POST request on the REST resource using cURL.

curl -i -u "<username>:<password>" -H "Content-Type: application/vnd.oracle.adf.resourceitem+json" -X POST -d <payload> "https://<host>:<port>/hcmRestApi/resources/11.13.18.05/userAccounts"

Example of Payload

The following is an example of the payload.

{
  "PersonId": 300100182158891
}

Example of Response Header

The following is an example of the response header.

Status: HTTP/1.1 201 Created
Content-Type: application/vnd.oracle.adf.resourceitem+json

Example of Response Body

The following example shows the contents of the response body in JSON format.

{
  "UserId" : 300100185541354,
  "Username" : "no-reply@example.com",
  "SuspendedFlag" : false,
  "PersonId" : 300100182158891,
  "PersonNumber" : "955160008191624",
  "CredentialsEmailSentFlag" : false,
  "GUID" : "8A8D68E5E062BAFCE050F50A9C4E9A63",
  "CreatedBy" : "HR_SPEC_ALL",
  "CreationDate" : "2019-06-10T19:31:32+00:00",
  "LastUpdatedBy" : "HR_SPEC_ALL",
  "LastUpdateDate" : "2019-06-10T19:31:33.452+00:00",
  "links": [
      {
        ...}
  	]
}
Back to Top