---
title: "PUT /travel_profile/{user_id}/rail_card/{card_id}"
method: PUT
path: "/travel_profile/{user_id}/rail_card/{card_id}"
tags: ["travel_profile"]
---

# PUT /travel_profile/{user_id}/rail_card/{card_id}

`PUT /travel_profile/{user_id}/rail_card/{card_id}`

## Request

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

## Request body

- AddTravelerRailCardParameters
  - `id` string, uuid
  - `user_id` integer
  - `card_type_id` string, uuid, nullable
  - `card_number` '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9'
  - `expiration_date` string, date, nullable
  - `is_preferred` boolean
  - `card_type_name` 'BAHN_CARD' | 'BAHN_BONUS_BUSINESS' | 'SNCF'

## Response `202`

Rail card info was updated

- DetailedTravelerRailCardSchema
  - `id` string, uuid
  - `user_id` integer
  - `card_type_id` string, uuid, nullable
  - `card_number` '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9'
  - `expiration_date` string, date, nullable
  - `is_preferred` boolean, required
  - `card_type` RailCardListResponse (unresolved $ref)
  - `card_type_name` 'BAHN_CARD' | 'BAHN_BONUS_BUSINESS' | 'SNCF'

## 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)
