/
Delete a Staff

Delete a Staff

Using the LinkIt! REST API, you can delete a staff in your district.

Data Dependency Note

A staff cannot be deleted if it is associated with a class, test or test result. (You may want to deactivate rather than delete a staff if there are data associated with the staff.)

Resource URI
/staffs/{id}
HTTPS DELETE
/staffs/{id}?timestamp={TimeStamp}&accesskey={AccessKey}&tag={Token}
Parameters for Request URL

The following parameters should be included in the request URL of the HTTPS DELETE call to delete a staff.

Parameter
Required?
Data Type
Description
idYesINTEGER

the unique ID that identifies the staff in the LinkIt! database.

TimeStampYesDATETIMEthe GMT time at which the call is generated. EXAMPLE: 5/1/2013+5:10:5+PM
AccessKeyYesSTRING (128)a unique key associated with the API user. EXAMPLE: 123456789-987654321
TagYesSTRING (128)token generated for authorization and authentication.
Response

The following fields are included in the response following an HTTPS DELETE call to delete a staff .

Field NameData TypeDescriptionExample
ResultSTRING (10)indicates whether the staff is deleted successfully.

SUCCESS

ERROR

DataJSON/XMLreturns "null" following an HTTPS DELETE call. 
ErrorSTRING (100)

provides explanation if result is ERROR."Null" is returned if result is SUCCESS.

Click here for a list of error messages.
Example

Delete the staff (ID: 324024).
 


 

 JSON
Method

DELETE

Request URL
/staffs/324024?timestamp=6%2f1%2f2013+4%3a21%3a17+PM&accesskey=123456789-987654321&tag=0b9d7cc774af474db2563d0cef0a31b61ce6534a
Response Content
{"Result":"SUCCESS","Data":null,"Error":null}
 XML
Method

DELETE

Request URL
/staffs/324024?timestamp=6%2f1%2f2013+4%3a21%3a17+PM&accesskey=123456789-987654321&tag=0b9d7cc774af474db2563d0cef0a31b61ce6534a
Response Content
<Response xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><Result>SUCCESS</Result></Response>

Navigation and Reference