CentreSubjectAssociation API

In Surpass, you can manage a centre’s associated subjects and centre-level users’ access to these subjects.

The CentreSubjectAssociation API resource is used to list, retrieve, create, update, and delete centre and subject associations.

This article explains what calls can be made to the Surpass API using the CentreSubjectAssociation resource.

Import this API into your Postman Workspace

In This Article

Listing centre and subject associations

get /api/v2/CentreSubjectAssociation

Send a request to the endpoint to list centre and subject associations. Refer to the available parameters to influence the response. No request body is required.

Retrieving centre and subject association information

get /api/v2/CentreSubjectAssociation/{id}

Send a request to the endpoint to retrieve information for a specific centre and subject association using its ID. No request body is required.

Creating a centre and subject association

post /api/v2/CentreSubjectAssociation

Send a request to the endpoint to create a centre and subject association.

NOTE: This is the same as sharing a subject with a centre. Tests in a shared subject can also be delivered at the specified centre and not just the subject's primary centre.

Updating a centre and subject association

put /api/v2/CentreSubjectAssociation/{id}

Send a request to the endpoint to update a specific centre and subject association.

Deleting a centre and subject association

delete /api/v2/CentreSubjectAssociation/{id}

Send a request to the endpoint to delete a specific centre and subject association. No request body is required.

Error Codes

Refer to the following table for information on error codes that may be encountered when using this resource.

Further reading

Read the following articles to learn more about similar APIs, how to get started with the Surpass API v2, and how to get the best out of this reference documentation:

NOTE: This form is to provide feedback to help improve the Surpass Help documentation only. If you need live support, contact support@surpass.com.