Api referenceNewsletters
Update a newsletter (Preview)
Preview · Available to selected organizations. Update named publishing settings. An enabled archive requires an opt-in topic and a hosted slug. Null clears the slug when the archive is disabled.
PATCH
Update named publishing settings. An enabled archive requires an opt-in topic and a hosted slug. Null clears the slug when the archive is disabled.
apiKeyheader
x-api-key<token>id*stringMatch
^nl_[0-9a-hjkmnp-tv-z]{16,24}$idempotency-key?|nullapplication/json- body
archiveEnabled?boolean|nullpublicationSlug?|null|nullNewsletter
application/json- response
id*NewsletterIdMatch
^nl_[0-9a-hjkmnp-tv-z]{16,24}$topicId*TopicIdMatch
^unsub_[0-9a-hjkmnp-tv-z]{16,24}$namespaceId*|nullname*stringdescription*string|nullissueProjectId*|nullarchiveEnabled*booleanpublicationSlug*|nullcreatedAt*stringupdatedAt*stringimport { createClient } from "samva";const samva = createClient({ apiKey: process.env.SAMVA_API_KEY! });const result = await samva.newsletters.update({ "id": "example"});Example Response
{ "id": "string", "topicId": "string", "namespaceId": "string", "name": "string", "description": "string", "issueProjectId": "string", "archiveEnabled": true, "publicationSlug": "string", "createdAt": "string", "updatedAt": "string"}