Create WhatsApp Gateway
This request adds a WhatsApp gateway to the database.
Resource
POST /whatsappgateways
Parameters
Payload
Response
Object Response < WhatsAppGateway > The created object.
Context
Authorization |
Administration |
Errors
Example
Request
POST https://xelion.nl/api/v1/master/whatsappgateways
Payload
{
"commonName": "WhatsApp gateway 3",
"whatsAppGatewayType": "CM",
"productToken": "123",
"active": true,
"traceIncoming": true,
"traceOutgoing": false,
"phoneLine": {
"oid": "2063015"
},
"xelionAuthToken": "1234",
"objectType": "WhatsAppGateway"
}
Response
{
"object": {
"productToken": "123",
"whatsAppGatewayType": "CM",
"active": true,
"traceIncoming": true,
"traceOutgoing": false,
"traces": [],
"phoneLine": {
"permissions": "ReadWriteRemove",
"commonName": "Test",
"oid": "2063015",
"objectType": "XCCPhoneLine"
},
"xelionAuthToken": "1234",
"permissions": "ReadWriteRemove",
"commonName": "WhatsApp gateway 3",
"oid": "2064650",
"objectType": "WhatsAppGateway"
},
"links": [
{
"rel": "self",
"method": "GET"
}
]
}