POST Revoke Candidate Assessment Invite¶
This API revokes a candidate's invite for a specified Assessment.
Request URL¶
POST /assessments/invite/revoke
Body Parameters¶
{
"report_id": "integer",
"notify_candidate": "boolean"
}
Warning
Make sure to add your API key in Header of the request
Parameters¶
Parameter |
Type |
Description |
|---|---|---|
report_id |
integer |
The Report ID of the candidate invite that needs to be revoked. |
notify_candidate (optional) |
boolean |
|
Response¶
A JSON response indicating whether the revoke was successful or not.
Response Status Values¶
Status |
Description |
|---|---|
REVOKED |
Invite was revoked successfully. |
NOT_ALLOWED |
Invite cannot be revoked as it was sent before the latest plan change. Includes the relevant timestamp. |
ALREADY_REVOKED |
The invite has already been revoked. |
ERROR_REVOKING |
An error occurred while revoking the invite. The request should be retried later. |
Examples¶
Example 1: Successful Revoke
{
"status": "REVOKED",
"message": "Invite Revoked successfully."
}
Example 2: Not Allowed
{
"status": "NOT_ALLOWED",
"message": "Invite was sent before the latest plan change",
"timestamp": "2025-01-15 10:32:45"
}
Example 3: Error While Revoking
{
"status": "ERROR_REVOKING",
"message": "Unable to Revoke invite now, Please try again later."
}