Skip to content
Navigation

Discards the staged body, keeping the published one.

POST
https://api.sherpo.io/merchant/v1/stores/{store}/{kind}/{id}/body/discard

Authorization

  • bearer
    HTTP
    required

Path parameters

  • store
    string
    required

    The store's id.

  • kind
    string
    required

    The target's kind, in the plural.

    minLength: 1
  • id
    string
    required
    minLength: 1

Header parameters

  • Idempotency-Key
    optional
    string

    Repeats within 24 hours answer the first result; the same key with other arguments is a conflict.

    maxLength: 255 · minLength: 1 · pattern: ^[\x21-\x7E]+$

Request body JSON required

  • from
    object
    required

    The staged body's asset.id the caller saw, never its attachment.id.

    • id
      string
      required
      maxLength: 512 · minLength: 1

Returns

200

Discards the staged body, keeping the published one.

JSON
  • id
    string
    required
  • deleted
    boolean
    required
JSON
  • type
    string
    required
    format: uri
  • title
    string
    required
  • status
    integer
    required
  • detail
    string
    required
  • code
    optional
    string
  • context
    optional
    object
  • reached_core
    optional
    boolean
  • core_answer
    optional
    string

Type to search…

↑↓ navigate↵ selectEsc close