Namespaces

Move a resource into a namespace

Moves a resource from organization level or another namespace into this one. A domain brings its senders; a sender on a domain cannot move alone (assign the domain); a contact brings its identities; a template brings every template in its project. A moved resource stops being a default. An address or external id the namespace already holds conflicts. Keys scoped to the old namespace stop reaching the resource at once. Mailboxes, API keys, and webhook endpoints keep the namespace they were created in.

post/v1/namespaces/{id}/resources

Request

  • Base URL: https://api.samva.dev
  • URL: https://api.samva.dev/v1/namespaces/{id}/resources
  • Auth: API key in header x-api-key

Path parameters

idstring required

Request body

type'domain' | 'sender' | 'contact' | 'template' required
resourceIdstring required

The resource's id, such as dom_... for a domain.

Response

NamespaceResource

type'domain' | 'sender' | 'contact' | 'template' required
idstring required
namespaceIdstring required

Changes

No recorded changes to this operation across all 1 revision of this API.