---
title: "Updates the given contact id"
method: PUT
path: "/v1/resourceowner/contacts2/{contactId}"
tags: ["ResourceOwnerContact2"]
---

# Updates the given contact id

`PUT /v1/resourceowner/contacts2/{contactId}`

## Request

- Base URL: `https://api.automile.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.automile.com/v1/resourceowner/contacts2/{contactId}`
- Auth: OAuth 2
  - Implicit: `https://api.automile.com/login/`

This will update the contact with the new model.

## Path parameters

- `contactId` integer, required

## Request body

- Contact2EditModel
  - `FirstName` string
  - `LastName` string
  - `EmailAddress` string
  - `Description` string
  - `CultureName` string
  - `CountryCodeIso1366` string
  - `DefaultVehicleId` integer
  - `UnitType` 0 | 1 | 2
  - `SubscribeToNewsLetter` boolean
  - `MobilePhoneNumber` string
  - `MapType` 0 | 1 | 2
  - `CheckOutDateTimeUtc` string, date-time
  - `CheckedInTripType` 0 | 1 | 2 | 3
  - `CheckedInCustomTripTypeName` string
  - `CurrencyCode` string: ISO 4217 Currency code

## Response `200`

The contact was saved

## Other responses

- `403`: Request is forbidden, this could occur if you are not associated with the contact
- `404`: The contact that you tried to update doesn't exist
- `500`: Internal server error

---

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