Create a User

post

http://{host}:{port}/veridata/v1/services/admin/users

Required Role: Administrator, CommandLineOperator

Create a User

Request

There are no request parameters for this operation.

Supported Media Types
Request Body - application/json ()
Root Schema : schema
Type: object
Show Source
Example:
{ "name":"User1", "password":"Abc@123", "emailId":"user1@oracle.com", "description":"user1", "groupIds":[ 0 ] }
Nested Schema : groupIds
Type: array
Array of group ID to be mapped to user.
Show Source
Back to Top

Response

Supported Media Types

201 Response

User created successfully.
Body ()
Root Schema : UserDetailsPostResponse
Type: object
Show Source
Example:
{ "id":1001, "name":"User1", "emailId":"abc@oracle.com", "createdOn":"2024-02-03T10:15:30Z", "description":"description" }

400 Response

Bad Request.
Body ()
Root Schema : Error
Type: object
Show Source
Example:
{ "errCode":"OGGV-00001", "errMsg":"Error message" }

401 Response

Unauthorized.
Body ()
Root Schema : Error
Type: object
Show Source
Example:
{ "errCode":"OGGV-00001", "errMsg":"Error message" }

404 Response

Not Found.
Body ()
Root Schema : Error
Type: object
Show Source
Example:
{ "errCode":"OGGV-00001", "errMsg":"Error message" }

500 Response

Server Error.
Body ()
Root Schema : Error
Type: object
Show Source
Example:
{ "errCode":"OGGV-00001", "errMsg":"Error message" }
Back to Top