Add invigilators to schedule
  • 18 Oct 2024
  • 1 Minute to read
  • Contributors
  • Dark
    Light
  • PDF

Add invigilators to schedule

  • Dark
    Light
  • PDF

Article summary

Add invigilators to schedule

PUT /schedule/{externalId}/invigilators

NameData TypeDescription
Content-type:application/jsonfor all requests
Authorization:EAPI {token}for all requests

Request Parameters

Parameters indicated with a * are mandatory

ParameterTypeDescriptionmax length
externalId*StringThe external ID of the schedule

Request Parameters (for message body)

Parameters indicated with a * are mandatory

ParameterTypeDescriptionmax length
Array*StringExternal ids of invigilators

Sample Body Request

["userexternalidexample1","userexternalidexample2"]


Sample successfull Response

{
    "Content": {
        "SuccessfullyAdded": [
            "13081986",
            "14081986"
        ],
        "Errors": []
    },
    "Success": true,
    "Errors": null
}


Sample unsuccessfull Response

{
    "Content": {
        "SuccessfullyAdded": [],
        "Errors": [
            {
                "UserExtId": "89999",
                "Code": 318,
                "Error": "User does not have permissions to be invigilator"
            }
        ]
    },
    "Success": true,
    "Errors": null
}

Responses

CodeDescription
200Successful operation
400Possible errors:
100: Request body can not be null or empty
200: Request does not contains any valid user external ids
300: ScheduleExternalId can not be null or empty
301: Schedule has not been found
302: Schedule is archived
305: Schedule is finished
318: User does not have permissions to be invigilator
403Not allowed to use external API
500Internal server error


Was this article helpful?