/v1/apps/{app_id}/end-users/{user_id}/contacts/{contact_id}/promoteAuthPromote a verified contact to primary.
Path parameters
app_id*stringId of the app.
user_id*stringId of the user.
contact_id*stringId of the contact.
Response · 204
Contact promoted.
Example
Request
POST https://api.auth.productcraft.co/v1/apps/{app_id}/end-users/{user_id}/contacts/{contact_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.admin.app("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").endUsers.contacts.promote("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", "3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f");auth.admin.app(…).endUsers.contacts.promote(userId, contactId, options?): void