Create a Reseller User
Creates a new User with the provided UserViewModel. Available to the roles: csp, reseller
Headers
-
X-Tenant
string Required The domain used to access the portal.
-
X-Correlation-Id
string(UUID) This header is optional and by setting it you can correlate the audit logs made by this request.
Path parameters
-
resellerId
string(uuid) Required GUID Unique identifier for the reseller. The reseller context that the customer will be created under.
Body
The user info to create the user.
-
id
string(uuid) The id of the user.
-
firstName
string | null Required The first name of the user. This may be up to 255 characters.
-
lastName
string | null Required The last name of the user. This may be up to 255 characters.
-
email
string | null Required The email. This may be up to 255 characters.
-
role
object Additional properties are NOT allowed.
-
groups
array[object] | null Required The user groups.
View model that represents a group.
POST
/v1/reseller/{resellerId}/users
curl \
--request POST 'https://app-cloudcockpitapi-prod-01.azurewebsites.net/v1/reseller/{resellerId}/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 (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"
]
}
]
}