Example JSON Request & Response - POST CentreSubjectAssociation

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

Header:

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

Body:

{

  "centre": {

    "reference": "JTC1"

  },

  "subject": {

    "reference": "JLTS"

  },

  "primary": false,

  "permissions": [

    {

      "id": 12,

      "assignable": true

    },

     ]

}

 

Response:

{

  "id": 3244,

  "href": "https://...surpass.com/api/v2/CentreSubjectAssociation/3243",

  "errors": null,

  "serverTimeZone": null

}

Feedback and Knowledge Base