Mailboxes
Update a mailbox policy
Updates the fields you name and keeps the rest. Set `enabled` to `false` to stop a policy applying without deleting it.
PATCH
Updates the fields you name and keeps the rest. Set enabled to false to stop a policy applying without deleting it.
apiKeyheader
x-api-key<token>id*stringMatch
^mbx_[0-9a-hjkmnp-tv-z]{16,24}$policyId*stringMatch
^mbxpol_[0-9a-hjkmnp-tv-z]{16,24}$application/json- body
name?|nulloutcome?|nullreason?|null|nullenabled?boolean|nullMailboxPolicy
application/json- response
id*MailboxPolicyIdMatch
^mbxpol_[0-9a-hjkmnp-tv-z]{16,24}$name*stringoutcome*MailboxPolicyOutcomeKindValue in
"requireApproval""deny"reason*string|nullenabled*booleancreatedAt*stringupdatedAt*stringimport { createClient } from "samva";const samva = createClient({ apiKey: process.env.SAMVA_API_KEY! });const result = await samva.mailboxes.updatePolicy({ "id": "example", "policyId": "example"});Example Response
{ "id": "string", "name": "string", "outcome": "requireApproval", "reason": "string", "enabled": true, "createdAt": "string", "updatedAt": "string"}Related documentation
Update a mailbox note
Updates the fields you name and keeps the rest. Only the note's author may. Use this endpoint to update a mailbox note through the Samva email API.
Update a mailbox thread
Updates the fields you name and keeps the rest. View request and response details for this Samva email API endpoint.