AI
Create or update a specialist routing mapping
POST
/
v1
/
specialist-mappings
Create or update a specialist routing mapping
curl --request POST \
--url https://api.wazapin.com/v1/specialist-mappings \
--header 'Content-Type: application/json' \
--data '
{
"agent_id": "<string>",
"specialist_type": "<string>",
"enabled": true,
"keywords": [
"<string>"
],
"priority": 123
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
agent_id: '<string>',
specialist_type: '<string>',
enabled: true,
keywords: ['<string>'],
priority: 123
})
};
fetch('https://api.wazapin.com/v1/specialist-mappings', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wazapin.com/v1/specialist-mappings"
payload = {
"agent_id": "<string>",
"specialist_type": "<string>",
"enabled": True,
"keywords": ["<string>"],
"priority": 123
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"agent_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"enabled": true,
"id": "<string>",
"keywords": [
"<string>"
],
"organization_id": "<string>",
"priority": 123,
"specialist_type": "<string>",
"updated_at": "2023-11-07T05:31:56Z"
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}Body
application/json
⌘I
Create or update a specialist routing mapping
curl --request POST \
--url https://api.wazapin.com/v1/specialist-mappings \
--header 'Content-Type: application/json' \
--data '
{
"agent_id": "<string>",
"specialist_type": "<string>",
"enabled": true,
"keywords": [
"<string>"
],
"priority": 123
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
agent_id: '<string>',
specialist_type: '<string>',
enabled: true,
keywords: ['<string>'],
priority: 123
})
};
fetch('https://api.wazapin.com/v1/specialist-mappings', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wazapin.com/v1/specialist-mappings"
payload = {
"agent_id": "<string>",
"specialist_type": "<string>",
"enabled": True,
"keywords": ["<string>"],
"priority": 123
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"agent_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"enabled": true,
"id": "<string>",
"keywords": [
"<string>"
],
"organization_id": "<string>",
"priority": 123,
"specialist_type": "<string>",
"updated_at": "2023-11-07T05:31:56Z"
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}