Error in creating the ticket.

Error in creating the ticket.

import requests
import json

auth_token = "#####"
org_id = "####"
OAuth="Desk.tickets.CREATE"
ticket_data = {
    "subject": "Testing",
    "contactId": "2575624000007985016",
    "departmentId": "741236985"
}

headers = {
    "Authorization": auth_token,
    "orgId": org_id,
}

request = requests.post('https://desk.zoho.com/api/v1/tickets', headers=headers, data=json.dumps(ticket_data))
if request.status_code == 200:
    print("Request Successful,Response:")
    print(request.content)
else:
    print("Request not successful,Response code ", request.status_code, " \nResponse : ", request.content)


I have entered the all the feilds like authtoken,orgid,contactid correctly.
I have tried to create a Ticket but it was showing the below error.
Request not successful,Response code  422
Response :  b'{"errorCode":"INVALID_DATA","message":"The data is invalid due to validation restrictions","errors":[{"fieldName":"/contactId","errorType":"invalid","errorMessage":""}]}'

I don't understand what the error is.
Could you please check this and get back to me ASAP.
    Zoho Desk Resources

    • Desk Community Learning Series


    • Digest


    • Functions


    • Meetups


    • Kbase


    • Resources


    • Glossary


    • Desk Marketplace


    • MVP Corner


    • Word of the Day


      Zoho CRM Plus Resources

        Zoho Books Resources


          Zoho Subscriptions Resources

            Zoho Projects Resources


              Zoho Sprints Resources


                Zoho Orchestly Resources


                  Zoho Creator Resources


                    Zoho WorkDrive Resources



                      Zoho Campaigns Resources

                        Zoho CRM Resources

                        • CRM Community Learning Series

                          CRM Community Learning Series


                        • Tips

                          Tips

                        • Functions

                          Functions

                        • Meetups

                          Meetups

                        • Kbase

                          Kbase

                        • Resources

                          Resources

                        • Digest

                          Digest

                        • CRM Marketplace

                          CRM Marketplace

                        • MVP Corner

                          MVP Corner




                          Zoho Writer Writer

                          Get Started. Write Away!

                          Writer is a powerful online word processor, designed for collaborative work.

                            Zoho CRM コンテンツ




                              ご検討中の方