---
id: set-email-whitelist-for-a-resource-this-will-replace-all-existing-emails
title: "Set email whitelist for a resource. This will replace all existing emails."
description: "Set email whitelist for a resource. This will replace all existing emails."
sidebar_label: "Set email whitelist for a resource. This will replace all existing emails."
hide_title: true
hide_table_of_contents: true
api: eJytVMtu2zAQ/BVh0UMftN0U6EWnOEUPPsVI3EtlFVhLa4sJRSok5UcF/nuxlF9C2p5yEShyudyZndkOSnKFlY2XRkMKj+QTqlGqZFdJT0o6n6yNTTCx5ExrCxoni0q6ZCeVSiw1CgtKUKmE9tJ5qTf9dTcGAR43DtIMHo5XIRfgqGit9AdIsw7uCC3ZZNr6CtIsD7mABi3W5Mm6GOGKimqEtAN/aAhScN5KvYEgwNJLKy2VkHrbkgCNNQec6pyVIEAypgZ9BZybb5Dzd6Y8cMbCaE/a8xKbRskCmYTJk2Mm/vK0WT1R4UFAY01D1ktyfNrjvYpDa/HAj3uq4z7qw/06whmCELA2tkYPaZ8Egngd0qD3ZBnHr+Xy4222XO7Go/zTcjnOcPR7OvqZd19EeAchDwJq3M/6V79+DgOOslOduQAsS8lQUc2vkKxROQqhv+Yao13Ex1nJV6ZkJo3zfUkVpDA5UT3pLqSHyVk4wN2221MrW6v40vYm9uKkg0dmuSdyoIYzEZX3DWeKcZDCKkYBl8mderj09Pse60bRdU8yaB3ZW+pPxoWpOVVPLfMl9dpwPBfZG2B7w8KVnvPAHPXGKKmTmfa0sVEfyXQ+Y/kxFzVGpRyV96beGdjySqtv7NCeY097P2kUSs3IYqO6Y5ezs6FAQDow16XRuYCKpZFm0HUrdPTDqhB4+6Uly17PBWzRSlwxr1kHpXS8Lo+y+w/e9w9HDX9I/lXwyXeaXbdF1fIfCHimw3AgRI9UhCXZWEUf8K1/a7TgNJcEr2YCy/Zshfn94wIErI6zpDZlHD64AxG/sQAT8URxx70OFOpNixuO7XOyjnGo+KPCxWlxNTiGELuuj1iYZ9IhnBF7/mewIfwB25sG4g==
sidebar_class_name: "post api-method"
info_path: 03-Pangolin/07-API/pangolin-integration-api
custom_edit_url: null
---

import MethodEndpoint from "@theme/ApiExplorer/MethodEndpoint";
import ParamsDetails from "@theme/ParamsDetails";
import RequestSchema from "@theme/RequestSchema";
import StatusCodes from "@theme/StatusCodes";
import OperationTabs from "@theme/OperationTabs";
import TabItem from "@theme/TabItem";
import Heading from "@theme/Heading";

<Heading
  as={"h1"}
  className={"openapi__heading"}
  children={"Set email whitelist for a resource. This will replace all existing emails."}
>
</Heading>

<MethodEndpoint
  method={"post"}
  path={"/resource/{resourceId}/whitelist"}
  context={"endpoint"}
>
  
</MethodEndpoint>



Set email whitelist for a resource. This will replace all existing emails.

<Heading
  id={"request"}
  as={"h2"}
  className={"openapi-tabs__heading"}
  children={"Request"}
>
</Heading>

<ParamsDetails
  parameters={[{"schema":{"type":"string"},"required":true,"name":"resourceId","in":"path"}]}
>
  
</ParamsDetails>

<RequestSchema
  title={"Body"}
  body={{"content":{"application/json":{"schema":{"type":"object","properties":{"emails":{"type":"array","items":{"anyOf":[{"type":"string","format":"email"},{"type":"string","pattern":"^\\*@[\\w.-]+\\.[a-zA-Z]{2,}$"}]},"maxItems":50}},"required":["emails"],"additionalProperties":false}}}}}
>
  
</RequestSchema>

<StatusCodes
  id={undefined}
  label={undefined}
  responses={{}}
>
  
</StatusCodes>


      