Pages API

Endpoints

Get Pages

GET /core/v1/pages

200 OK

{
  "pages": [
    {
      "id": "65ac9cd5ffbb0054ec62a7a7",
      "path": "st/Custom_Page_1",
      "layout": "Custom_Page_1",
      "scenario": {
        "__version__": 1,
        "steps": []
      }
    },
    ...
  ]
}

Create Page

POST /core/v1/pages
{
  "id": "65ac9cd5ffbb0054ec62a7a7",
  "path": "st/Custom_Page_1",
  "layout": "Custom_Page_1",
  "scenario": {
    "__version__": 1,
    "steps": []
  }
}

200 OK

{
  "page": {
    "id": "65ac9cd5ffbb0054ec62a7a7",
    "path": "st/Custom_Page_1",
    "layout": "Custom_Page_1",
    "scenario": {
      "__version__": 1,
      "steps": []
    }
  }
}

Get Page

GET /core/v1/pages/65ac9cd5ffbb0054ec62a7a7

200 OK

{
  "page": {
    "id": "65ac9cd5ffbb0054ec62a7a7",
    "path": "st/Custom_Page_1",
    "layout": "Custom_Page_1",
    "scenario": {
      "__version__": 1,
      "steps": []
    }
  }
}

Update Page

PUT /core/v1/pages/65ac9cd5ffbb0054ec62a7a7
{
  "id": "65ac9cd5ffbb0054ec62a7a7",
  "path": "path/to/custom/page/1",
  "layout": "Generic_Custom_Page_Layout",
  "scenario": {
    "__version__": 1,
    "steps": [
      {
        "$assign": {
          "custom_page_no": 1
        }
      }
    ]
  }
}

200 OK

{
  "page": {
    "id": "65ac9cd5ffbb0054ec62a7a7",
    "path": "path/to/custom/page/1",
    "layout": "Generic_Custom_Page_Layout",
    "scenario": {
      "__version__": 1,
      "steps": [
        {
          "$assign": {
            "custom_page_no": 1
          }
        }
      ]
    }
  }
}

Remove Page

DELETE /core/v1/pages/remove/65ac9cd5ffbb0054ec62a7a7

200 OK

{}