---
title: "POST /travel_profile/{user_id}/national_ids"
method: POST
path: "/travel_profile/{user_id}/national_ids"
tags: ["travel_profile"]
---

# POST /travel_profile/{user_id}/national_ids

`POST /travel_profile/{user_id}/national_ids`

## Request

- Base URL: `https://app.getgoing.com`
- URL: `https://app.getgoing.com/travel_profile/{user_id}/national_ids`
- Auth: API key in header `Authorization`

## Request body

- AddNationalIDParameters
  - `id` integer
  - `number` string
  - `country` object
  - `expiration_date` string, date
  - `foid` boolean, nullable

## Response `201`

National ID was created.

- BaseNationalIDSchema
  - `id` integer
  - `number` string, required
  - `country` object, required
  - `expiration_date` string, date, required
  - `foid` boolean, nullable

## Other responses

- `422`: Success

---

[API](https://skmtc.dev/getgoing/apis/getgoing-api.md) - [All operations](https://skmtc.dev/getgoing/apis/getgoing-api/llms.txt) - [OpenAPI document](https://skmtc.dev/getgoing/apis/getgoing-api/revisions/7546f102cf69?raw)
