Get an application's publish state

View as Markdown

Returns whether the application is live, when it first went live, and when its publish state last changed.

Full description

Returns the application's publish state: whether it is live at urls.publish, when it first went live and when the publish state was last updated. This resource is offered for products that have no build or deploy step, today MHWP. Node.js applications go live through POST /apps/{appId}/deployments, so NODEJS- ids return 501 with details[].issue NOT_APPLICABLE.

GET
/apps/{appId}/publish-state

Authorization

bearerAuth
AuthorizationBearer <token>

Personal Access Token (PAT). Generate one from the developer dashboard. Pass as: Authorization: Bearer <token>.

In: header

Path Parameters

appId*string

Application identifier in {PRODUCT}-{id} form. The prefix is the application type in upper case — an upper-case letter followed by any number of upper-case letters, digits, or underscores — then a hyphen, then the identifier. For NODEJS, the suffix is a 10-character nanoid. Example: NODEJS-aBcDeFgHiJ. For MHWP, the suffix is a 10-character nanoid of lower-case letters and digits only. Example: MHWP-a1b2c3d4e5.

Match^[A-Z][A-Z0-9_]*-[A-Za-z0-9_-]+$

Header Parameters

traceparent?string

W3C Trace Context identifier for this request. Clients should send a traceparent on every request so the trace can be correlated across services. See https://www.w3.org/TR/trace-context/ for the format.

Match^[0-9a-f]{2}-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/apps/string/publish-state"
{  "published": true,  "firstPublishedAt": "stringstringstringst",  "updatedAt": "stringstringstringst",  "links": [    {      "href": "http://example.com",      "rel": "string",      "title": "string",      "targetMediaType": "string",      "targetSchema": null,      "method": "string",      "submissionMediaType": "application/json",      "submissionSchema": null    }  ]}

Agent & Automation Notes

Scopeshosting.application:read
Rate limit600 req/min per customer
IdempotentYes
DestructiveNo
On failureRead-only and safe to retry. Applies to WordPress sites (MHWP- ids); a NODEJS- id returns 501 NOT_APPLICABLE. firstPublishedAt and updatedAt are omitted until the first publish-state change.

Last updated on

How is this guide?