3.5.10.2 SIP
Získání seznamu SIP zařízení
URL: | https://{{ip_addr}}/api/v1/hipmo/devices/sip |
HTTP Metoda: | GET |
Response code: | Standardní HTTP response code, ošetřuje syntaktické chyby. |
Response data: | {
"data": {
"devices": []
}
}
|
Vytvoření SIP zařízení
URL: | https://{{ip_addr}}/api/v1/hipmo/devices/sip |
HTTP Metoda: | PUT |
Response code: | Standardní HTTP response code, ošetřuje syntaktické chyby. |
| Request body: | {
"id": "<integer>",
"name": "<string>",
"isActive": "<boolean>",
"isMy2n": "<boolean>",
"sipLine": "<string>",
"dtmf1": "<string>",
"dtmf2": "<string>",
"dtmf3": "<string>",
"dtmf4": "<string>"
}
|
Response data: | {
"data":{
"devices":[
"device": {
"id":"<integer>",
"name":"<string>",
"isActive":"<boolean>",
"isMy2n":"<boolean>",
"sipLine":"<string>",
"dtmf1":"<string>",
"dtmf2":"<string>",
"dtmf3":"<string>",
"dtmf4":"<string>"
}
]
}
}
|
Aktualizave SIP zařízení
URL: | https://{{ip_addr}}/api/v1/hipmo/devices/sip/{{id}} |
HTTP Metoda: | PUT |
| Path variable: | id – id zařízení |
| Request body: | {
"id": "<integer>",
"name": "<string>",
"isActive": "<boolean>",
"isMy2n": "<boolean>",
"sipLine": "<string>",
"dtmf1": "<string>",
"dtmf2": "<string>",
"dtmf3": "<string>",
"dtmf4": "<string>"
}
|
Response code: | Standardní HTTP response code, ošetřuje syntaktické chyby. |
Response data: | {
"data":{
"devices":[
"device": {
"id":"<integer>",
"name":"<string>",
"isActive":"<boolean>",
"isMy2n":"<boolean>",
"sipLine":"<string>",
"dtmf1":"<string>",
"dtmf2":"<string>",
"dtmf3":"<string>",
"dtmf4":"<string>"
}
]
}
}
|
Smazání zařízení
URL: | https://{{ip_addr}}/api/v1//hipmo/devices/sip/{{id}} |
HTTP Metoda: | DELETE |
| Path variable: | id – id zařízení |
Response code: | Standardní HTTP response code, ošetřuje syntaktické chyby. |
| Request body: | {
"id": "<integer>",
"name": "<string>",
"isActive": "<boolean>",
"isMy2n": "<boolean>",
"sipLine": "<string>",
"dtmf1": "<string>",
"dtmf2": "<string>",
"dtmf3": "<string>",
"dtmf4": "<string>"
}
|
