Cadastro de Clientes DNK
POST
http://{HOST:PORT}/v1/api/client
Basic Authentication
Cadastro de clientes
Objeto Client
{
"title": "Client",
"type": "object",
"properties": {
"id": {
"type": "long",
"minimum": 0
},
"name": {
"type": "string"
},
"created": {
"type": "timestamp"
},
"clientkey": {
"type": "string",
"uniqueItems": true
},
"ipasterisk": {
"type": "string",
"description": "Uso interno telefonia portanto não precisa ser
informado, a equipe de implantação irá definir"
},
"active": {
"type": "boolean",
"description": "Valores true ou false"
}
},
"required": ["id", "clientkey", "name"]
}
Request / Response
-
{
"created": "2021-02-26T03:00:00.000+0000",
"clientkey": "123",
"ipasterisk": "172.17.0.3",
"active": true,
"name" : "DNK 2"
}
-
{
"Id": 1,
"created": "2021-02-26T03:00:00.000+0000",
"clientkey": "123",
"ipasterisk": "172.17.0.3",
"active": true,
"name" : "DNK 2"
}
-
POST: https://api.dnk.com.br/v1/api/client