Add Users

Add Users

Add list of users

Request
URI
POST
https://{api_host}/v1/users
COPY
Request Body
Array of User of type(s) application/json
Optional
[
    {
        "id": "string",
        "name": "string",
        "domain": "string",
        "type": "One among: USER, GROUP, SERVICE",
        "apiKey": "string",
        "role": {
            "id": "string"
        },
        "creationTimestamp": "string"
    }
]
Responses
201

Created

Returns PageOfUser of type(s) application/json
"PageOfUser Object"
array of object
elements
Optional

The list of elements included in this page

object
pageMetadata
Optional

Represents pageable elements pagination metadata


400

Bad request

Returns ErrorResponse of type(s) application/json
"ErrorResponse Object"
string
errorCode
Optional

errorCode

array of string
arguments
Optional

arguments

object
context
Optional

context

string
message
Optional

message

string
remediationMessage
Optional

remediationMessage

array of object
cause
Optional

Describes a single error cause

nestedErrors
Optional

nestedErrors

string
referenceToken
Optional

referenceToken


401

Unauthorized Request

Returns ErrorResponse of type(s) application/json
"ErrorResponse Object"
string
errorCode
Optional

errorCode

array of string
arguments
Optional

arguments

object
context
Optional

context

string
message
Optional

message

string
remediationMessage
Optional

remediationMessage

array of object
cause
Optional

Describes a single error cause

nestedErrors
Optional

nestedErrors

string
referenceToken
Optional

referenceToken


500

Internal Server Error

Returns ErrorResponse of type(s) application/json
"ErrorResponse Object"
string
errorCode
Optional

errorCode

array of string
arguments
Optional

arguments

object
context
Optional

context

string
message
Optional

message

string
remediationMessage
Optional

remediationMessage

array of object
cause
Optional

Describes a single error cause

nestedErrors
Optional

nestedErrors

string
referenceToken
Optional

referenceToken


Code Samples
COPY
                    curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '[{}]' https://{api_host}/v1/users