---
title: "Upserts an Agency Candidate Other Names"
method: PUT
path: "/agency/{agency_id}/candidate/{candidate_id}/other-names"
tags: ["Agency Candidate Other Names"]
---

# Upserts an Agency Candidate Other Names

`PUT /agency/{agency_id}/candidate/{candidate_id}/other-names`

## Request

- Base URL: `http://localhost:3010/v1`
- URL: `http://localhost:3010/v1/agency/{agency_id}/candidate/{candidate_id}/other-names`
- Auth: HTTP basic and HTTP basic and HTTP basic

## Request body

- OtherNamesPutBodyDef
  - `known_as` string
  - `middle_name` string
  - `maiden_name` string

## Response `200`

The other names of a candidate will be returned

- AgencyOtherNamesResponseBodyDef
  - `_id` string, required
  - `updated_at` string, date-time, required
  - `created_at` string, date-time, required
  - `__v` integer, required
  - `known_as` string
  - `middle_name` string
  - `maiden_name` string
  - `candidate_id` string, required
  - `agency_id` string, required

## Other responses

- `400`: Validation error on put
- `401`: Failed to authenticate the user making the request
- `403`: Permission denied error
- `405`: Method not supported. Returned if an unsupported http method is used.
- `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)
