Zoho DESK , Unsupported Media Type

Zoho DESK , Unsupported Media Type

  1. z_data = {
  2.     'subject': 'this is a subject',
  3.     'description': 'this is a description that follows the subject.',
  4.     'departmentId': '538218000081',
  5.     'assigneeId': '6710442',
  6.     'contact': 'Kenzon'
  7. }

  8. ticket = requests.post(
  9.     'https://desk.zoho.com/api/v1/tickets',
  10.     data=json.dumps(z_data),
  11.     headers={
  12.         'content-type': 'application/json',
  13.         'Authorization':'Zoho-oauthtoken 1000.e49e62e117d26304b897e2a34012e3703e8390d719761'
  14.     })