Workspaces

Attach workspace to website

Changed on

Links an existing unattached workspace (owned by the user) to a website the user owns. Verifies ownership of both and prevents duplicate attachment. Only records the publish link; it never changes the workspace authoring hostname.

post/api/workspaces/{id}/attach

Request

  • Base URL: / (relative, and the document was published on a file host, not at the API’s origin)
  • URL: /api/workspaces/{id}/attach
  • Auth: none declared

Path parameters

idstring required

Workspace ID

Request body

website_idinteger

Response

Attached workspace

createdstring date-time required
domainstring required
errorstring
idinteger required
labelstring required
statusstring required
updatedstring date-time required
website_idinteger

Changes