POST /api/public/v1/consent/set

Changed on

Records the visitor's grant or refusal per optional category under the current policy version, then sets the consent cookie. Answers stored only after the server read the state back. Refused with FORBIDDEN for a cross-origin request or refusal notConfigured, categoryNotOffered, captureOff, gpcActive or stale (a newer choice is stored than the expectedVersion the save was made on), and TOO_MANY_REQUESTS past the budget. A refusal of a category asks the capture deletion contract; deletion says whether it was taken (requested), is not wired (notAvailable) or failed (failed, the choice is still stored; submit it again). A stored grant can always be withdrawn, even while capture is off.

Request

  • Base URL
    https://app.fortuneos.ai
  • Auth
    none declared

Request body

object required
choices, object[] required
source, 'banner' | 'preferences' required
expectedVersion, string required

Response

OK

object required
stored, unknown required
view, object required
deletion, 'none' | 'requested' | 'notAvailable' | 'failed' required

Changes