Campaigns

Autosave a campaign draft

Autosave for the draft editor. If someone else edited in the meantime you'll get a 409, so nobody's work gets quietly overwritten.

API key scopes: campaigns:write. You also need an Idempotency-Key header.

patch/api/campaigns/{id}/draft

Request

  • Base URL: https://api.setluca.com
  • URL: https://api.setluca.com/api/campaigns/{id}/draft
  • Auth: one of:
    • API key in cookie luca.session_token
    • API key in header x-api-key
    • HTTP bearer

Path parameters

idstring uuid required

Identifier of the campaign this operation targets.

Headers

Luca-API-Version'1'

The major version of the API this client was built against. Omit it and the request is served by the current major version. Any other value is refused with 400 unsupported_api_version.

Request body

namestring
descriptionstring nullable
expectedDraftUpdatedAtstring date-time

Response

ok

idstring uuid required
namestring required
descriptionstring nullable required
status'draft' | 'published' | 'paused' | 'archived' required
latestVersionNumberinteger nullable required
createdAtstring required
updatedAtstring required
pausedForAccountHealthboolean required

Changes

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