When to use this
Use delete only when you need to permanently remove a position.GraphQL Request
Please make sure to replace the position ID. Reminder: Deleting a position deletes all data related to it, including all interviews. Don’t forget to update the Hireflix API Key in theheaders.
Explanation
- input.positionId – the position you want to remove.
- deletePosition (union) – returns one of two possible types. Check
__typenameto determine which one you got:MutationDeletePositionSuccess: the deletion succeeded. Data returns a boolean-like result (implementation dependent).PositionNotFoundError: the position couldn’t be found. Code and message describe the error.
Treat any GraphQL
errors, as well as a PositionNotFoundError response, as a failed delete.Example Response
Learn next?
Let’s learn how to create and use webhooks.

