AplasAplas API Reference

Publish a view

Publishing requires an author-level key and a view in the organization's DEFAULT workspace — sandbox workspaces never reach the shopfront.

The publication pins the view's active style at publish time, so changing a style in the studio afterwards never moves a live page.

POST
/publications

Authorization

BearerAuth
AuthorizationBearer <token>

API authentication via Authorization: Bearer <your-api-key>. Obtain your API key from Config → API in the Aplas web app.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://api.au.aplas.com/api/v3/publications" \  -H "Content-Type: application/json" \  -d '{    "id": "string",    "name": "string",    "view": {      "workspace": "string",      "id": "string"    }  }'
{
  "id": "string",
  "view": {
    "workspace": "string",
    "id": "string"
  },
  "name": "string",
  "description": "string",
  "enabled": true,
  "accessType": 0,
  "presentationMode": "standard",
  "redirects": [
    "string"
  ],
  "createdAt": "2019-08-24T14:15:22Z",
  "updatedAt": "2019-08-24T14:15:22Z"
}
{
  "statusCode": 403,
  "error": "Forbidden",
  "message": "The permissions of your API key only allow read-only/GET calls."
}
{
  "statusCode": 403,
  "error": "Forbidden",
  "message": "The permissions of your API key only allow read-only/GET calls."
}
{
  "statusCode": 403,
  "error": "Forbidden",
  "message": "The permissions of your API key only allow read-only/GET calls."
}
{
  "statusCode": 403,
  "error": "Forbidden",
  "message": "The permissions of your API key only allow read-only/GET calls."
}