Hello Goutham Reddy Edunuri,
Intune security tasks on Intune portal have only 3 options: Accept/Reject. Once accepted, complete.
Once you accept the task, status would be active. If this is what you are trying to achieve, the graph call to update the status is: https://graph.microsoft.com/beta/deviceAppManagement/deviceAppManagementTasks/{deviceAppManagementTaskId}/updateStatus
An example of the request would be:
POST https://graph.microsoft.com/beta/deviceAppManagement/deviceAppManagementTasks/{deviceAppManagementTaskId}/updateStatus
Content-type: application/json
Content-length: 52
{
"status": "pending",
"note": "Note value"
}
Hope this helps!
If you found the information above helpful, please Click Yes. This will assist others in the community who encounter a similar issue, enabling them to quickly find the solution and benefit from the guidance provided.