Create a Reseller User
Creates a new User with the provided UserViewModel. Available to the roles: csp, reseller
Headers
-
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
-
GUID Unique identifier for the reseller. The reseller context that the customer will be created under.
Body
The user info to create the user.
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: portal.cloudcockpit.com" \
-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 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"
]
}
]
}