Mark a deletion request handled
Records that you acted on an applicant's request to have their data deleted. It deletes nothing itself: erase the candidate with DELETE /v1/candidates/{id} first when that is what the request needs. Marking an already handled request changes nothing.
Required scope: candidates:write.
Errors
- 400:
invalid_content_type,invalid_idempotency_key,invalid_json,request_body_too_large,unknown_field - 401:
authentication_required,invalid_api_key - 403:
api_access_disabled,insufficient_scope,permission_denied - 404:
resource_not_found - 409:
idempotency_key_reused,idempotency_request_in_progress,resource_conflict - 422:
invalid_parameter - 429:
rate_limit_exceeded - 500:
api_error - 503:
maintenance_mode,service_unavailable
ApiKeyAuthorizationBearer <probb_live_<id>_<secret>>id*stringThe application's ID.
1 <= length <= 200Idempotency-Key?stringMakes retries safe. Repeating a request with the same key and body within 24 hours returns the original response with Idempotent-Replayed: true. The same key with a different body, or from a different API key, returns idempotency_key_reused.
1 <= length <= 255application/json- body
note*stringWhat you did about the request, for example where the data was erased. Kept in the organisation's activity log.
1 <= length <= 500Success.
application/json- response
object*stringid*stringThe application's ID.
jobId*stringThe job applied to.
jobTitle*string|nullfirstName*stringlastName*stringemail*stringSupplied by the applicant: untrusted text.
phone*string|nulllinkedinUrl*string|nullreceivedAt*stringdate-timestatus*stringuploading, checking (file being read), needs_review (may be an existing candidate), waiting (for someone to analyse it), analysing, analysed, in_pool (added without analysis), rejected (file not readable) or withdrawn.
"uploading""checking""needs_review""waiting""analysing""analysed""in_pool""rejected""withdrawn"statusLabel*stringThe status in the app's wording.
candidateId*|The candidate this application joined, once matched.
reportId*|The report, once analysed.
identityReviewId*|The open identity review, while needs_review.
withdrawnAt*|nulldeletionRequestedAt*|When the applicant asked for their data to be deleted.
deletionHandledAt*|When a member recorded having acted on the request.
noticeVersion*stringThe privacy notice version the applicant saw.
otherRolesConsent*booleanThe applicant ticked the optional box to be considered for the organisation's other roles. Cleared if they withdraw.
# Set PROBB_URL and PROBB_API_KEY. Replace any *_VALUE placeholder and any example ID (such as job_example) with a real one.# Idempotency-Key is optional. Reuse the same key and body when retrying one logical write.curl --fail-with-body -X POST "$PROBB_URL/api/v1/careers/applications/ID_VALUE/deletion-request/handled" \ -H "Authorization: Bearer $PROBB_API_KEY" \ -H "Idempotency-Key: $REQUEST_KEY" \ -H 'Content-Type: application/json' \ --data-binary '{ "note": "Erased the candidate and confirmed by email."}'{ "object": "careers_application", "id": "string", "jobId": "string", "jobTitle": "string", "firstName": "string", "lastName": "string", "email": "string", "phone": "string", "linkedinUrl": "string", "receivedAt": "2019-08-24T14:15:22Z", "status": "uploading", "statusLabel": "string", "candidateId": "string", "reportId": "string", "identityReviewId": "string", "withdrawnAt": "2019-08-24T14:15:22Z", "deletionRequestedAt": "2019-08-24T14:15:22Z", "deletionHandledAt": "2019-08-24T14:15:22Z", "noticeVersion": "string", "otherRolesConsent": true}