publication-status resource endpoint

URL: /assets/<id>/publication-status.<format>

Supported Methods

GET Get the publication status of the selected asset.
PUT Set the publication status of the selected asset.

Resource Type

This endpoint returns an object of type PublicationStatus.

draft (boolean)
true if this asset is private (not yet published), or false if it has been published.
publicationDate (string)
The time at which the related asset was (or will be) published, as a W3CDTF timestamp. If the related asset has been scheduled to be posted later, this property's timestamp will be in the future.

Client Library Methods for PHP

Get the publication status of the selected asset.
$tp->assets->getPublicationStatus(array(

    # Required Parameters
    "id" => $id,

))
Set the publication status of the selected asset.
$tp->assets->putPublicationStatus(array(

    # Required Parameters
    "id" => $id,
    "payload" => $payload,

))