About iMochaHelpBook a demo
About iMochaHelpBook a demo
  1. Test Invitations
  • Introduction
  • Skills Assessment API
    • API Reference
      • Getting started
      • API Environment
      • Authentication Mechanism
      • Error Code
      • List timezones
    • Test
      • List all tests
      • Retrieve a test
      • Retrieve test settings
      • Update Test Settings
    • Test Invitations
      • Callback notification
      • Invite candidate
        POST
      • Invite candidate by test link
        POST
      • Reattempt Test
        POST
      • Cancel Invitation
        POST
    • Test Link
      • List all test links
    • Report
      • Retrieve candidate test report
      • Retrieve candidate test report in PDF
    • Callback API
      • Process Callbacks
      • Retrieve Invites
    • GDPR
      • GDPR Data Masking Service
    • Users
      • Get all business units
      • Create New User
      • Update User
      • Active/ Inactive User
  • Skills Intelligence API
    • Introduction
    • Authentication
    • Employee
      • List employees
      • Get Employee Skills by employeeId
      • Employee Enrollment
      • Update Employee Status
    • JobProfiles
      • Get All JobProfiles
      • Get JobProfile with Skills By JobProfileId
      • Create JobCode
    • Taxonomy
      • Get all Taxonomy Skills
    • CareerPath
      • Get Employee Career Path by employeeId
    • Account
      • Get Multichannel Validation Weightages
  1. Test Invitations

Cancel Invitation

POST
/v3/invitations/{testInvitationId}/cancel
🔶 Cancel test invitation send to candidate
API Behavior
Invitation can only be canceled when it is in one of the below states:
  • Pending
Invitation can not be canceled when it is in one of the below states:
  • Inprogress
  • Complete
  • Expired
  • Canceled
  • Test Left
  • Terminated

Request

Path Params

Header Params

Body Params application/json

Examples

Responses

🟢200OK
application/json
Body

Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request POST 'https://apiv3.imocha.io/v3/invitations/{testInvitationId}/cancel' \
--header 'x-api-key;' \
--header 'Content-Type: application/json' \
--data-raw '{}'
Response Response Example
{
    "testInvitationId": 0,
    "status": "string"
}
Modified at 2025-08-19 13:32:43
Previous
Reattempt Test
Next
List all test links
Built with