> Portal Navigation: > > - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version. > - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages). > - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`). > - Top-level index of all portals: https://dev.wix.com/docs/llms.txt > - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt # MarkSenderDetailsAsDefault # Package: emails # Namespace: SenderDetailsService # Method link: https://dev.wix.com/docs/api-reference/business-management/marketing/emails/sender-details/mark-sender-details-as-default.md ## Permission Scopes: Access Verticals by Automations: SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS ## Introduction Marks a sender as default. --- ## REST API ### Schema ``` Method: markSenderDetailsAsDefault Description: Marks a sender as default. URL: https://www.wixapis.com/sender-details/v1/sender-details/{senderDetailsId}/mark-as-default Method: POST Return type: MarkSenderDetailsAsDefaultResponse EMPTY-OBJECT {} ``` ### Examples ### MarkSenderDetailsAsDefault ```curl ~~~cURL curl -X POST 'https://www.wixapis.com/sender-details/v1/sender-details/a6351a69-f4cb-411c-9853-26634468b03d/mark-as-default' \ -H 'Authorization: ' ~~~ ``` --- ## JavaScript SDK ### Schema ``` Method: wixClientAdmin.emails.SenderDetailsService.markSenderDetailsAsDefault(senderDetailsId) Description: Marks a sender as default. # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present. Required parameters: senderDetailsId Method parameters: param name: senderDetailsId | type: string | description: GUID of the sender to mark as default. | required: true Return type: PROMISE EMPTY-OBJECT {} ``` ### Examples ### markSenderDetailsAsDefault ```javascript import { senderDetails } from '@wix/sender-details'; async function markSenderDetailsAsDefault(senderDetailsId) { const response = await senderDetails.markSenderDetailsAsDefault(senderDetailsId); }; ``` ### markSenderDetailsAsDefault (with elevated permissions) ```javascript import { senderDetails } from '@wix/sender-details'; import { auth } from '@wix/essentials'; async function myMarkSenderDetailsAsDefaultMethod(senderDetailsId) { const elevatedMarkSenderDetailsAsDefault = auth.elevate(senderDetails.markSenderDetailsAsDefault); const response = await elevatedMarkSenderDetailsAsDefault(senderDetailsId); } ``` ### markSenderDetailsAsDefault (self-hosted) Self-hosted SDK calls require you to [create a client](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/about-the-wix-client.md). ```javascript import { createClient } from '@wix/sdk'; import { senderDetails } from '@wix/sender-details'; // Import the auth strategy for the relevant access type // Import the relevant host module if needed const myWixClient = createClient ({ modules: { senderDetails }, // Include the auth strategy and host as relevant }); async function markSenderDetailsAsDefault(senderDetailsId) { const response = await myWixClient.senderDetails.markSenderDetailsAsDefault(senderDetailsId); }; ``` ---