{
'description': 'Validation failed',
'errors': [
{
'field': 'subject',
'message': 'It should be a/an String',
'code': 'missing_field'
},
{
'field': 'description',
'message': 'It should be a/an String',
'code': 'missing_field'
},
{
'field': 'status',
'message': "It should be one of these values: '2,3,4,5,8,6,7'",
'code': 'missing_field'
},
{
'field': 'priority',
'message': "It should be one of these values: '1,2,3,4'",
'code': 'missing_field'
},
{
'field': 'requester_id',
'message': 'Please fill at least 1 of requester_id, phone, email, twitter_id, facebook_id, unique_external_id fields',
'code': 'missing_field'
}
]
}
I've just solved the problem by replacing the empty string ''params in the tuple to None
before:
('subject', ('', 'Ticket Title')),
after:
('subject', (None, 'Ticket Title')),
I have a problem with creating a FreshDesk ticket with attachments. I've used a code from this repository but it's not working for me.
My setup:
My python code:
an the response is:
response headers:
Also I tried to use
('subject', ('Ticket Title')),
instead of('subject', ('', 'Ticket Title')),
but getting another error:response headers:
Could you provide a working example of Python3 code for creating tickets with attachments? Thank you in advance :)