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": "0d88c919-1de1-4ae1-9763-7111eec877b2"
}

application/xml, text/xml

Sample:
<ClientRequest xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <ID>af5ae406-1f50-480c-bbb2-ba9310f48d29</ID>
  <AccountID>47e35a52-26af-4fde-bcc4-9535545929b0</AccountID>
  <Name>sample string 1</Name>
  <Secret>sample string 2</Secret>
  <UserID>0d88c919-1de1-4ae1-9763-7111eec877b2</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": "2c1e9bdf-53be-4236-8c9f-7a73e7b308a1",
      "Name": "sample string 2",
      "Secret": "sample string 3",
      "UserID": "60c6a1ce-b7e0-45c4-bccb-f2de4904f97d"
    }
  }
}