Sign in

Update contact

documented

Update a contact.

PUT /Contacts/{ContactID}Contactsno implementation yet0 runs
No implementation yet. Run it to have the agent write one, or open a pull request with your own.

Seed example (keychains curl)

npx -y keychains@latest curl "https://api.xero.com/api.xro/2.0/Contacts/{{$contact_id}}" \
  -X PUT \
  -H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -H "xero-tenant-id: {{XERO_TENANT_ID}}" \
  -H "Idempotency-Key: {{IDEMPOTENCY_KEY}}" \
  -d '{"contacts":[{"Name":"{{$name}}","ContactID":"{{$contact_id}}","EmailAddress":"{{$email}}","Addresses":[{"AddressType":"STREET","AddressLine1":"{{$address_line1}}","City":"{{$city}}","PostalCode":"{{$postal_code}}"}]}]}'