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": "8f00de52-b635-4235-9059-e4a1b0da74fa"
}

application/xml, text/xml

Sample:
<ClientRequest xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <ID>a1eee6cc-175a-4d70-967f-57641e37b1a3</ID>
  <AccountID>39fdea33-9868-41c6-b646-ae9ee7d46326</AccountID>
  <Name>sample string 1</Name>
  <Secret>sample string 2</Secret>
  <UserID>8f00de52-b635-4235-9059-e4a1b0da74fa</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": "484d3327-1aa9-4c68-a4e8-979c16dec157",
      "Name": "sample string 2",
      "Secret": "sample string 3",
      "UserID": "030c9832-bdd7-4013-83bb-d1c5ee958f94"
    }
  }
}