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

    The domain used to access the portal.

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

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

    Hide groups attributes Show groups attributes object
    • id string(uuid) Required

      The id of the group.

    • name string | null

      The group name

Responses

  • OK

  • Created

  • Bad Request

    Hide response attributes Show response attributes object
    • statusCode integer(int32)

      The HTTP status code that represents a specific error scenario.

    • type string | null

      The type of error that occurred.

    • description string | null

      Describes the error scenario that occurred.

    • correlationId string | null

      The correlationId of the request that originated the error.

    • errors array[object] | null

      A list containing the detail of the errors that occurred in this error scenario.

      This class is used to represent the details of an error and specifies the name of the property and the description of each of the errors associated with that property.

      Hide errors attributes Show errors attributes object
      • propertyName string | null

        The name of the property involved in the error.

      • description array[string] | null

        A description of each error associated with the given property.

  • Unauthorized

  • Forbidden

  • Internal Server Error

    Hide response attributes Show response attributes object
    • statusCode integer(int32)

      The HTTP status code that represents a specific error scenario.

    • type string | null

      The type of error that occurred.

    • description string | null

      Describes the error scenario that occurred.

    • correlationId string | null

      The correlationId of the request that originated the error.

    • errors array[object] | null

      A list containing the detail of the errors that occurred in this error scenario.

      This class is used to represent the details of an error and specifies the name of the property and the description of each of the errors associated with that property.

      Hide errors attributes Show errors attributes object
      • propertyName string | null

        The name of the property involved in the error.

      • description array[string] | null

        A description of each error associated with the given property.

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