Custom headers
Retrieve details of tenant custom headers.
Authorizations
Responses
200
OK
application/json
4XX
Error
get
GET /api/tenant/custom_headers HTTP/1.1
Host: hostname:8887
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"add": [
{
"name": "text",
"value": "text",
"scope": "TRUNK"
}
],
"relay": [
{
"name": "text",
"scope": "TRUNK"
}
]
}
Update tenant custom headers.
Authorizations
Body
The added custom SIP headers and forwarded SIP headers in tenant scope.
Responses
200
OK
4XX
Error
post
POST /api/tenant/custom_headers HTTP/1.1
Host: hostname:8887
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 98
{
"add": [
{
"name": "text",
"value": "text",
"scope": "TRUNK"
}
],
"relay": [
{
"name": "text",
"scope": "TRUNK"
}
]
}
No content