Public Method Author API

setStatus()

Set the status of the Item being edited.

Returns status (string), the new Item status, if successful, or false (boolean) if unable to set the Item status (e.g. when not editing an Item, the passed status is not valid or is the same as the current status).

Examples

authorApp.setStatus(status);

Arguments

  • status string

    Item status (case-sensitive)

    Possible values:
    • "published"
    • "unpublished"
    • "archived"

Return value

boolean | string