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.

  • Authorization string Required

    JWT Authorization header using the Bearer scheme. Example: "Authorization: Bearer {token}"

    Default value is Bearer eyJ0eXAiO....

  • 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.

application/json

Body

The user info to create the user.

Responses

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"
      ]
    }
  ]
}