/{app_slug}/v1/me/contacts/{id}/promoteAuthPromote a verified contact to primary
Demotes the previous primary of the same type. Refused (409) when the target contact is unverified — promoting an unverified contact would let an attacker who registered the contact bypass verification by routing reset codes through it.
Path parameters
id*stringId of the contact.
app_slug*stringSlug of the app.
Response · 204
Contact promoted.
Example
Request
POST https://api.auth.productcraft.co/{app_slug}/v1/me/contacts/{id}/promote
Authorization: Bearer YOUR_TOKEN