I would like to know how to close a specific ticket using an API.

I would like to know how to close a specific ticket using an API.

I would like to know how to close a specific ticket using an API.

[Background and Objective]
Ultimately, I would like to use PowerAutomate to automatically close a ticket when a specific phrase is written in an email body. As a first step, I am trying to use curl to close a specific request by implementing a certain request. However, it is not possible to achieve this because both of the following items have not been done:

Search by subject to retrieve a specific request
Close the specific request obtained in step 1
I hope that both issues can be resolved with this question. Currently, I am unable to proceed due to an error in item 1.

[Tried]
I tried to obtain data with curl based on the modified content described in the changes section of the OAuth 2.0 example in the Get Started section. However, the data for the searched condition does not appear.

[Issue/Error Message]
When I tried the search criteria, only the search results were returned.

[Relevant Source Code]
I would like to know how to find a request whose "subject" is "Request_Close_test".

-X GET
-H "Accept: application/vnd.manageengine.sdp.v3+json"
-H "Authorization: Zoho-Oauthtoken 1000.03xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
-H "Content-Type: application/x-www-form-urlencoded"
'{{
"field": "requests.subject",
"condition": "is",
"value": "Request_Close_test"
}}'

[Questions]
I have two questions:

How can I modify the sample code?
Is my writing style correct?

                  New to ADSelfService Plus?