Skip to content
Navigation

Publishes an entry's latest narration draft to its readers in place of the one they hear, or takes the published one back.

POST
https://api.sherpo.io/merchant/v1/stores/{store}/products/{product}/entries/{entry}/narration/publish

Authorization

  • bearer
    HTTP
    required

Path parameters

  • store
    string
    required

    The store's id.

  • product
    string
    required

    An id, or slug:<slug>.

    minLength: 1
  • entry
    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

  • published
    boolean
    required

    True publishes the latest draft to customers in place of what they hear; false takes the published one back.

Returns

200

Publishes an entry's latest narration draft to its readers in place of the one they hear, or takes the published one back.

JSON
  • entry_id
    string
    required
  • current
    required

    The latest run, its draft or its failure; the published version when there is none newer; null without any.

    One of the following:

    • object
    • null
  • published
    required

    The version customers hear; null while none is published.

    One of the following:

    • object
    • null
  • quote
    required

    What a generate would cost for the entry's latest saved text; null when it could not be read or speaks no body.

    One of the following:

    • object
    • null
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