The "Close Request" API call is used to close a request. But to fill the mandatory fields if any and close a request simultaneously, the "Update Request" API call can be utilized.
Example: To fill the mandatory fields like "Resolution" and "Priority" and to close the request.
{
"request": {
"resolution": {
"content": "(any resolution content)"
},
"priority": {
"name": "(priority)",
},
"status": {
"name": "Closed"
},
"closure_info": {
"requester_ack_resolution": true,
"requester_ack_comments": "(any comment)",
"closure_comments": "(any comment)",
"closure_code": {
"name": "success"
}
}
}
}