Create a Reseller User
POST
/v1/reseller/{resellerId}/users
Creates a new User with the provided UserViewModel. Available to the roles: csp, reseller
Headers
-
X-Tenant string Required
This header identifies which tenant to access with this request. This value should be an existent domain for the specified tenant.
-
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
-
groups array[object] | null Required
View model that represents a group.
POST /v1/reseller/{resellerId}/users
curl \
-X POST https://app-cloudcockpitapi-prod-01.azurewebsites.net/v1/reseller/{resellerId}/users \
-H "Content-Type: application/json" \
-H "X-Tenant: string" \
-H "Authorization: Bearer eyJ0eXAiO..." \
-H "X-Correlation-Id: string" \
-d '{"id":"string","firstName":"string","lastName":"string","email":"string","role":{},"groups":[{"id":"string","name":"string"}]}'
Request example
# Headers
X-Tenant: string
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"
]
}
]
}