I am trying to join a user to a queue using the api https://api.{{environment}}/api/v2/users/:userId/queues/:queueId
with the correct useId and queueId data, it returns a 400:
"message": "The request could not be understood by the server due to malformed syntax.",
"code": "bad.request",
"status": 400,
"contextId": "9f41a310-a858-4ab1-9763-695b6008778a"
this is the content of the dumps:
payload = json.dumps({
"name": "",
"division": {
"name": ""
},
"description": "",
"dateCreated": "",
"dateModified": "",
"modifiedBy": "",
"createdBy": "",
"routingRules": [
{
"operator": "ANY",
"threshold": 0,
"waitSeconds": 0
}
],
"bullseye": {
"rings": [
{
"expansionCriteria": [
{
"type": "TIMEOUT_SECONDS",
"threshold": 0
}
],
"actions": {
"skillsToRemove": [
{
"name": "",
"id": "",
"selfUri": ""
}
]
}
}
]
},
"acwSettings": {
"wrapupPrompt": "MANDATORY_TIMEOUT",
"timeoutMs": 0
},
"skillEvaluationMethod": "ALL",
"queueFlow": {
"id": "",
"name": "",
"selfUri": ""
},
"whisperPrompt": {
"id": "",
"name": "",
"selfUri": ""
},
"enableTranscription": False,
"enableManualAssignment": False,
"callingPartyName": "",
"callingPartyNumber": "",
"outboundMessagingAddresses": {
"smsAddress": {
"id": "",
"name": "",
"selfUri": ""
}
},
"outboundEmailAddress": {
"domain": {
"id": "",
"name": "",
"selfUri": ""
},
"route": {
"id": {
"type": "string",
"description": "The globally unique identifier for the object.",
"readOnly": True
},
"name": {
"type": "string"
},
"pattern": {
"type": "string",
"description": "The search pattern that the mailbox name should match."
},
"queue": {
"description": "The queue to route the emails to.",
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"selfUri": {
"type": "string",
"format": "uri"
}
}
},
"priority": {
"type": "integer",
"format": "int32",
"description": "The priority to use for routing."
},
"skills": {
"type": "array",
"description": "The skills to use for routing.",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"selfUri": {
"type": "string",
"format": "uri"
}
}
}
},
"language": {
"description": "The language to use for routing.",
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"selfUri": {
"type": "string",
"format": "uri"
}
}
},
"fromName": {
"type": "string",
"description": "The sender name to use for outgoing replies."
},
"fromEmail": {
"type": "string",
"description": "The sender email to use for outgoing replies."
},
"flow": {
"description": "The flow to use for processing the email.",
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"selfUri": {
"type": "string",
"format": "uri"
}
}
},
"replyEmailAddress": {
"description": "The route to use for email replies.",
"type": "object",
"properties": "[Circular]"
},
"autoBcc": {
"type": "array",
"description": "The recipients that should be automatically blind copied on outbound emails associated with this InboundRoute.",
"items": {
"type": "object",
"properties": {
"email": {
"type": "string"
},
"name": {
"type": "string"
}
}
}
},
"spamFlow": {
"description": "The flow to use for processing inbound emails that have been marked as spam.",
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"selfUri": {
"type": "string",
"format": "uri"
}
}
},
"selfUri": {
"type": "string",
"format": "uri",
"description": "The URI for this object",
"readOnly": True
},
"type": "string"
}
},
"joined": False
})
Any ideas????