/{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_TOKENimport { Auth } from "@productcraft/auth";
// Admin routes read PRODUCTCRAFT_API_KEY; consumer routes need no key
const auth = new Auth();
await auth.consumer("my-app").me.contacts.promote("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f");auth.consumer(…).me.contacts.promote(id, options?): void