POST api/v1/admin/clients

This method adds a new client. Returned is the client name, ID and secret. The client secret will not be available again, so it is very important that this information is saved and stored in a safe place.

Request Information

URI Parameters

None.

Body Parameters

New client to be added

ClientRequest
NameDescriptionTypeAdditional information
Name

Client name. Max 18 chars

string

Required

Secret

Client secret. Max 50 chars

string

Required

UserID

User ID

globally unique identifier

Required

Request Formats

application/json, text/json

Sample:
{
  "Name": "sample string 1",
  "Secret": "sample string 2",
  "UserID": "dc721719-a414-4969-acd9-1d9cf3b33e2a"
}

application/xml, text/xml

Sample:
<ClientRequest xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <ID>9dcb3ab9-79f0-46e3-8e6c-4b64919a44e3</ID>
  <AccountID>7b182cf4-e020-425e-b96a-bcdeb0c29981</AccountID>
  <Name>sample string 1</Name>
  <Secret>sample string 2</Secret>
  <UserID>dc721719-a414-4969-acd9-1d9cf3b33e2a</UserID>
</ClientRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ResponseOfClientResponse
NameDescriptionTypeAdditional information
Error

Error

None.

ResponseData

ResponseDataOfClientResponse

None.

Response Formats

application/json, text/json

Sample:
{
  "Error": {
    "ErrorCode": "sample string 1",
    "ErrorReason": "sample string 2"
  },
  "ResponseData": {
    "Identification": {
      "UserId": "sample string 1"
    },
    "Result": "sample string 1",
    "Detail": {
      "ID": "a8c93875-489f-4644-a374-328b4ddfc958",
      "Name": "sample string 2",
      "Secret": "sample string 3",
      "UserID": "ef0d14df-1161-44f4-bd1a-6b82851c9f2b"
    }
  }
}