Node.js SDK
Update Contact
Update a contact’s details. Requires API key with audience:write.
PATCH
Node.js SDK
Authorizations
API key authentication. Use 'Authorization: Bearer YOUR_API_KEY' where YOUR_API_KEY is obtained from the Migma dashboard under Settings → API Integration.
Path Parameters
Contact ID (MongoDB ObjectId)
Pattern:
^[0-9a-fA-F]{24}$Body
application/json
Phone number (free-form, max 30 chars). Null clears the field.
Maximum string length:
30ISO 3166-1 alpha-2 country code
Language code (ISO 639-1 or BCP 47)
Tag names (tags will be auto-created if they don't exist)
Available options:
subscribed, unsubscribed, bounced, non-subscribed