Skip to Content
Help
API reference

Mark a deletion request handled

POST
/api/v1/careers/applications/{id}/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

Authorization

ApiKey
headerAuthorizationBearer <probb_live_<id>_<secret>>

Path Parameters

id*string

The application's ID.

Length1 <= length <= 200

Header Parameters

Idempotency-Key?string

Makes 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.

Length1 <= length <= 255

Request Body

application/json
  1. body
note*string

What you did about the request, for example where the data was erased. Kept in the organisation's activity log.

Length1 <= length <= 500

Response Body

Success.

application/json
  1. response
object*string
id*string

The application's ID.

jobId*string

The job applied to.

jobTitle*string|null
firstName*string
lastName*string
email*string

Supplied by the applicant: untrusted text.

phone*string|null
linkedinUrl*string|null
receivedAt*string
Formatdate-time
status*string

uploading, 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.

Value in"uploading""checking""needs_review""waiting""analysing""analysed""in_pool""rejected""withdrawn"
statusLabel*string

The 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*|null
deletionRequestedAt*|

When the applicant asked for their data to be deleted.

deletionHandledAt*|

When a member recorded having acted on the request.

noticeVersion*string

The privacy notice version the applicant saw.

otherRolesConsent*boolean

The applicant ticked the optional box to be considered for the organisation's other roles. Cleared if they withdraw.

Example Request
# 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."}'
Example Response
{  "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}