---
title: "Replaces a contact numbers entry for the candidate"
method: PUT
path: "/candidate/{candidate_id}/contact-numbers/{contact_number_id}"
tags: ["Candidate Contact Numbers"]
---

# Replaces a contact numbers entry for the candidate

`PUT /candidate/{candidate_id}/contact-numbers/{contact_number_id}`

## Request

- Base URL: `http://localhost:3010/v1`
- URL: `http://localhost:3010/v1/candidate/{candidate_id}/contact-numbers/{contact_number_id}`
- Auth: HTTP basic

## Request body

- ContactNumberDef: contact number
  - `type` 'mobile' | 'home' | 'work' | 'work_fax' | 'home_fax' | 'additional' | 'whatsapp', required
  - `number` string, required

## Response `200`

Candidate contact numbers data that was replaced

- ContactNumberResponseDef: contact number
  - `type` 'mobile' | 'home' | 'work' | 'work_fax' | 'home_fax' | 'additional' | 'whatsapp', required
  - `number` string, required
  - `_id` string, required
  - `updated_at` string, date-time, required
  - `created_at` string, date-time, required
  - `__v` integer, required
  - `candidate_id` string, required

## Other responses

- `400`: Validation errors caused by missing or invalid header / path or payloads
- `401`: Failed to authenticate the user making the request
- `404`: Resource not found
- `default`: Server error occurred

---

[API](https://skmtc.dev/staffshift/apis/staffshift-api-gateway.md) - [All operations](https://skmtc.dev/staffshift/apis/staffshift-api-gateway/llms.txt) - [OpenAPI document](https://skmtc.dev/staffshift/apis/staffshift-api-gateway/revisions/1f079f6b65f5?raw)
