Mark a task as complete
You can mark a task as complete using the API.
To mark a task as complete:
Find the task ID when you get data about the profile.
If there is more than one task with the same alias, which happens when a task has more than one version, use the task with
"is_expired": "false". Note that the task ID is different to the task variant ID, which will not be used for the request.Note
If you're completing a task yourself via the API, you might choose to pass the task when the check result is
Passand fail the task when the check result returnsFailthree times.Request endpoint:
Complete a task as passed, make a request to the following endpoint and send the task
statefield asCOMPLETED_PASS.Alternatively, complete the task as failed and make the same request but send the
statefield asCOMPLETED_FAIL.Request endpoint:
POST https://{api_region}/4.0/profiles/{profile_id}/tasks/{task_id}Replace
{api_region}with the API URL specific to your region. Useapi.us.maxsight.comfor the US region,api.eu.maxsight.comfor the EU region, orapi.ae.maxsight.comfor the UAE region.Note
If you've configured your smart policy to mark the task as complete automatically when the check passes, you don't need to mark the task as complete using the API. Contact support to change your smart policy configuration.
Alternatively, you can leave a task as incomplete and let your users complete it manually.
If needed, approve the profile's product application when all tasks are completed as passed. When a task is completed as failed, you may want to reject the profile's product application.