Create a Customer User
Creates a new User with the provided UserViewModel.
Headers
-
The domain used to access the portal.
-
This header is optional and by setting it you can correlate the audit logs made by this request.
Query parameters
-
GUID Unique identifier for the reseller. The reseller context that the customer will be created under.
Body
The user info to create the user.
-
The id of the user.
-
The first name of the user. This may be up to 255 characters.
-
The last name of the user. This may be up to 255 characters.
-
The email. This may be up to 255 characters.
-
Additional properties are NOT allowed.
-
The user groups.
View model that represents a group.
POST
/v1/customer/{customerId}/users
curl \
--request POST 'https://api.cloudcockpit.com/v1/customer/{customerId}/users' \
--header "Content-Type: application/json" \
--header "X-Tenant: portal.cloudcockpit.com" \
--header "Authorization: Bearer eyJ0eXAiO..." \
--header "X-Correlation-Id: string" \
--data '{"id":"string","firstName":"string","lastName":"string","email":"string","role":{},"groups":[{"id":"string","name":"string"}]}'
Request examples
# Headers
X-Tenant: portal.cloudcockpit.com
Authorization: Bearer eyJ0eXAiO...
X-Correlation-Id: string
# Payload
{
"id": "string",
"firstName": "string",
"lastName": "string",
"email": "string",
"role": {},
"groups": [
{
"id": "string",
"name": "string"
}
]
}
Response examples (200)
string
Response examples (200)
string
Response examples (201)
string
Response examples (201)
string
Response examples (400)
{
"statusCode": 42,
"type": "string",
"description": "string",
"correlationId": "string",
"errors": [
{
"propertyName": "string",
"description": [
"string"
]
}
]
}
Response examples (400)
{
"statusCode": 42,
"type": "string",
"description": "string",
"correlationId": "string",
"errors": [
{
"propertyName": "string",
"description": [
"string"
]
}
]
}
Response examples (404)
{
"statusCode": 42,
"type": "string",
"description": "string",
"correlationId": "string",
"errors": [
{
"propertyName": "string",
"description": [
"string"
]
}
]
}
Response examples (404)
{
"statusCode": 42,
"type": "string",
"description": "string",
"correlationId": "string",
"errors": [
{
"propertyName": "string",
"description": [
"string"
]
}
]
}
Response examples (500)
{
"statusCode": 42,
"type": "string",
"description": "string",
"correlationId": "string",
"errors": [
{
"propertyName": "string",
"description": [
"string"
]
}
]
}
Response examples (500)
{
"statusCode": 42,
"type": "string",
"description": "string",
"correlationId": "string",
"errors": [
{
"propertyName": "string",
"description": [
"string"
]
}
]
}