Summary
The create ticket endpoint does not allow to set collaborators in a flexible way. It only allows us to do so per collaborator_ids.
@collaborators.setter
def collaborators(self, collaborators):
if collaborators:
self.collaborator_ids = [o.id for o in collaborators]
self._collaborators = collaborators
In zendesk documentation, it is stated that:
- When creating or updating a ticket, you can set collaborators on a ticket using one of three properties: collaborator_ids, collaborators or additional_collaborators. The collaborators property provides more flexibility, as outlined below.
with example:
{
"ticket": {
"collaborators": [ 562, "someone@example.com", { "name": "Someone Else", "email": "else@example.com" } ]
}
}
Summary
The create ticket endpoint does not allow to set collaborators in a flexible way. It only allows us to do so per collaborator_ids.
In zendesk documentation, it is stated that:
with example: