Example JSON Request & Response - POST BasicPage

https://...surpass.com/api/v2/BasicPage/

Header:

Content-length: 618
Content-type: application/json
Accept: application/json
Authorization: Basic Q1RMRGVtbzpQYXNzd29yZa==

Body:

{

  "type": "IntroductionPage",

  "subject": {

    "reference": "BTL1"

  },

  "name": "IntroPage1",

  "htmlText": "Welcome to the BTL Exam",

  "mathMl": null,

  "contentType": "RichText",

  "additionalHtmlText": "Please follow the instructions attached",

  "additionalMathMl": null,

  "additionalContentType": "RichText",

  "folder": {

    "id": 0,

    "position": 2

  },

  "status": "Draft",

  "comment": "First draft of introduction page",

  "mediaItems": [

    {

      "id": 4029

    },

  ],

  "sourceMaterials": [

    {

      "id": 4080

    },

  ],

  "allowOpenImageInPopup": false,

  "mediaLayout": "RightTitle"

}


Response:

{

  "id": 381775,

  "href": "https://...surpass.com/api/v2/BasicPage/381775",

  "errors": null

}

Feedback and Knowledge Base