/
Add/Remove Student from Program
Add/Remove Student from Program
Resource URI
Add
/programs/{id}?verb=assign
Remove
/programs/{id}?verb=deassign
HTTPS PUT
Add
/programs/{id}?verb=assign×tamp={TimeStamp}&accesskey={AccessKey}&tag={Token}
Remove
/programs/{id}?verb=deassign×tamp={TimeStamp}&accesskey={AccessKey}&tag={Token}
Parameters for Request URL
The following parameters should be included in the request URL of the HTTPS PUT call to add/remove a student from a program.
Parameter | Required? | Data Type | Description |
---|---|---|---|
id | Yes | INTEGER | the unique ID that identifies the program in the LinkIt! database. |
TimeStamp | Yes | DATETIME | the GMT time at which the call is generated. EXAMPLE: 5/1/2013+5:10:5+PM |
AccessKey | Yes | STRING (128) | a unique key associated with the API user. EXAMPLE: 123456789-987654321 |
Tag | Yes | STRING (128) | token generated for authorization and authentication. |
Parameters for Request Header
The following parameter should be included in the request header of the HTTPS PUT call to add/remove a student from a program.
Parameter | Required | Data Type | Description |
---|---|---|---|
StudentID | Yes | INTEGER | the ID of the student that you would like to add/remove from the program. |
Response
The following fields are included in the response following an HTTPS PUT call to add/remove a student from a program.
Field Name | Data Type | Description | Example |
---|---|---|---|
Result | STRING (10) | indicates whether the staff is added/removed successfully. | SUCCESS ERROR |
Data | JSON/XML | returns the following data is result is SUCCESS to indicate all the programs the student is currently enrolled in:
| See below for detailed examples. |
Error | STRING (100) | provides explanation if result is ERROR."Null" is returned if result is SUCCESS. | Click here for a list of error messages. |
Examples
Example 1
Add the student (StudentID: 151557) to the program (ProgramID: 19740).
Example 2
Remove the student (StudentID: 151557) from the program (ProgramID: 19740).
Navigation and Reference
, multiple selections available,