Contacts
Update Contact.
Changed onUpdates a contact.
:::info account_membership_attributes are only available to Fleetio partners with an Organization Token or Partner Token. Additionally, you cannot modify the email, username, or password of an already existing user using the user_attributes in this endpoint. :::
patch/contacts/{id}
Request
- Base URLhttps://secure.fleetio.com/api
- AuthAPI key in header Authorization and API key in header Account-Token
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
idstring required
The id of the relevant record
Headers
Partner-Tokenstring
Used by Fleetio Partners to manage integrations.
Organization-Tokenstring
Used by organizations to manage multiple accounts.
Request body
Example request
{
"birth_date": "1950-05-05",
"group_hierarchy": "Group 1|Group 2|Group 3",
"start_date": "2023-09-09",
"leave_date": "2023-12-12",
"license_expiration": "2024-03-14"
}Response
OK
Example response
{
"created_at": "2023-03-14T13:46:27-06:00",
"updated_at": "2023-03-14T13:46:27-06:00",
"birth_date": "2023-03-14",
"license_expiration": "2023-03-14",
"archived_at": "2023-03-14T13:46:27-06:00"
}Changes
- breaking
removed the enum value
falseof the request property - breaking
removed the enum value
trueof the request property - breaking
the
request property type changed fromstringtoboolean - warning
removed the request property
/ - warning
removed the request property
/ - warning
removed the request property
- warning
removed the request property
- info
added the new optional request property
//
- breaking