Replace a Reseller

In this article

    You can change parameters of a specific reseller by replacing it in Veeam Service Provider Console configuration.

    Request

    To replace a reseller in Veeam Service Provider Console, send the PUT HTTPS request to the URL of the /resellers/{ID} resource.

    HTTP Request

    PUT https://<hostname>:1281/v2/resellers/{ID}

    Request Headers

    The request header must contain the authorization token.

    Request Body

    In the request body, the client must send the following properties for the reseller that must be added into Veeam Service Provider Console configuration:

    • enabled
    • description
    • workstationAgents
    • serverAgents
    • dataTransferGb
    • firstName
    • lastName
    • title
    • userName
    • password
    • notes
    • companyId
    • name
    • country
    • taxId
    • usState
    • zipCode
    • domain
    • city
    • street
    • telephone
    • emailAddress
    • isUnlimitedWorkstationAgent
    • isUnlimitedServerAgents

    Response

    The server returns the following response to the client.

    Response Code

    A successfully completed operation returns response code 201 Created.

    Response Headers

    The response to this request contains the following headers. The response may also include additional standard HTTP headers.

    Header

    Description

    Content-length

    The length of the response body.

    Content-type

    The media type and syntax of the request body message: application/json; charset=utf-8

    Response Body

    In the response body, Veeam Service Provider Console returns a status and a message for an action.

    Example Replace a Reseller

    The following example replaces a reseller with ID 2.

    Request:

    PUT https://localhost:1281/v2/resellers/2

     

    Request Header:

    Content-Type: application/json

    Authorization: Bearer <Access-Token>

     

    Request Body:

    {

     "enabled": true,

     "description": "Alpha Reseller Company",

     "workstationAgents": 150,

     "serverAgents": 35,

     "dataTransferGb": 100,

     "firstName": "Alan",

     "lastName": "Smith",

     "title": "Mr",

     "userName": "Alpha",

     "password": "Alpha123",

     "notes": "",

     "companyId": "69874",

     "name": "Alpha Company",

     "country": 1,

     "taxId": "7498434",

     "usState": 1,

     "zipCode": "10009",

     "domain": "alpha.com",

     "city": "Birmingham",

     "street": "Aston st.",

     "telephone": "+1879143158",

     "emailAddress": "alansmith@alpha.com",

     "isUnlimitedWorkstationAgents": false,

     "isUnlimitedServerAgents": false

    }

     

    Response Code:

    201 Created

     

    Response Body:

    "Reseller has been modified."