- French
- German
- Portuguese (Brazil)
- Spanish
- Spanish (XL)
Assignment Web APIs
Assignment Web APIs are available to perform the following tasks:
- Create APIs that retrieve information about a variety of the tasks assigned to technicians in the ticket management process.
- Create APIs that perform operations on specific assignments.
Using Get calls, Assignment Web APIs enable you to retrieve all:
- Active assignment templates
- Not null values
- Notes
- Note fields
- Successors
- Predecessors
Using Post calls, Assignment Web APIs can:
- Update a specific assignment with provided values
- Create a specific assignment with provided values
- Add user notes to an assignment
- Delete an assignment
- Change the status of a specific assignment
- Close the status of a specific assignment
The following topics provide details about the Assignment Web APIs:
GET /assignments/Templates
Click here for a description.
Description | Returns all active assignment Templates in JSON format |
---|---|
Type of call | GET |
Request Authorization Header | Bearer access_token received through the Token API call. |
URL Syntax | http(s)://<servernameOrIP>/<trackitvirtuadirectory>/WebApi/assignments/Templates |
Request Parameters | None |
Request Body | None |
Execution response | The following values of active templates are retrieved:
|
Important considerations |
|
Click here to view an example.
http(s)://<servernameOrIP>/<trackitvirtuadirectory>/WebApi/assignments/Templates
Request Authorization Header:
Bearer access_token:"ExPqpLF79Zi+vHZJIXZOGBSQVPKXlFVOfmQzMyfS7SGYJolrDAf3/LZR1qm9X+2OVY60OlEuUYOYaflcIjj7ytZ336b50mu4ieuPnx2AU2vCFgO3eqUe22Up"
Response:
{
"AssignmentTemplates": [
{
"1": {
"DisplayName": "Sequence",
"Value": 3
},
"3": {
"DisplayName": "Name",
"Value": "Configure the New Hire Workstation"
},
"4": {
"DisplayName": "Description",
"Value": "Configure New Hire Workstation for <Username>"
},
"6": {
"DisplayName": "Template Data",
"Value": "<TemplateData>\r\n <RowData>\r\n <sequence>81</sequence>\r\n <datatype>nvarchar</datatype>\r\n <fkcolumn>80</fkcolumn>\r\n <fkvalue>1</fkvalue>\r\n <fieldname>Status</fieldname>\r\n <value>Open</value>\r\n </RowData>\r\n <RowData>\r\n <sequence>114</sequence>\r\n <datatype>nvarchar</datatype>\r\n <fkcolumn>113</fkcolumn>\r\n <fkvalue>3</fkvalue>\r\n <fieldname>Priority</fieldname>\r\n <value>3 - Medium</value>\r\n ……..</TemplateData>"
},
"10": {
"DisplayName": "Is Used in Self Service",
"Value": false
}
}….
}
GET /assignments/{id}
Click here for a description.
Description | Returns sequence, display names, and values of all fields for the specified assignment in JSON format | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Type of call | GET | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Request Authorization Header | Bearer access_token received through the Token API call. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
URL Syntax | http(s)://<servernameOrIP>/<trackitvirtuadirectory>/WebApi/assignments/{id} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Request Parameters | Specify the Assignment ID | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Request Body | None | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Execution response | Click here to see a table of the execution response values.The following table lists the sequence number and Display Names of the fields that are returned by the GET assignments/{id} Web API:
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Important considerations |
|
Click here to view an example.
http(s)://<servernameOrIP>/<trackitvirtuadirectory>/WebApi/assignments/101
Request Authorization Header:
Bearer access_token:"ExPqpLF79Zi+vHZJIXZOGBSQVPKXlFVOfmQzMyfS7SGYJolrDAf3/LZR1qm9X+2OVY60OlEuUYOYaflcIjj7ytZ336b50mu4ieuPnx2AU2vCFgO3eqUe22Up"
Response:
{
"Assignments": {
"1": {
"DisplayName": "Assignment ID",
"Value": 101
},
"2": {
"DisplayName": "Last Modified",
"Value": "2019-01-21T09:12:06.1730000Z"
},
"3": {
"DisplayName": "Last User",
"Value": "dbo"
},…..
}
}
POST /assignments/{id}
Click here for a description.
Description | Modifies and returns the specified assignment in JSON format | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Type of call | POST | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Request Authorization Header | Bearer access_token received through the Token API call. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
URL Syntax | http(s)://<servernameOrIP>/<trackitvirtuadirectory>/WebApi/assignments/{id} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Request Parameters |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Request Body | { Click here to see a table of the fields you can update.For the specified Assignment, you can update the following fields:
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Execution response | Click here to see a table of the execution response values.The POST /assignments Web API can update the following fields for the specified assignment:
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Important considerations |
|
Click here to view an example.
http(s)://<servernameOrIP>/<trackitvirtuadirectory>/WebApi/assignments/101
Request Authorization Header:
Bearer access_token:"ExPqpLF79Zi+vHZJIXZOGBSQVPKXlFVOfmQzMyfS7SGYJolrDAf3/LZR1qm9X+2OVY60OlEuUYOYaflcIjj7ytZ336b50mu4ieuPnx2AU2vCFgO3eqUe22Up"
Request Body:
{
"Properties": {
"Category" :"Applications",
"Additional Information" : "Additional Information field is updated. "
},
"OptionalParams": {
"Param1": {},
"Param2": {}
}
}
Response:
{
"Assignments": {
"1": {
"DisplayName": "Assignment ID",
"Value": 101
},
"2": {
"DisplayName": "Last Modified",
"Value": "2019-01-23T11:27:09.7970000Z"
},
"3": {
"DisplayName": "Last User",
"Value": "TECH1"
},
"4": {
"DisplayName": "Seq_Group",
"Value": 2
},
"7": {
"DisplayName": "Additional Information",
"Value": "Additional Information field is updated. "
}….
"22": {
"DisplayName": "Ticket ID",
"Value": 101
}….
"65": {
"DisplayName": "Category",
"Value": "Applications"
}….
}}
GET /assignments/{id}/Attachments/{pageSize}/{pageNumber}
Click here for a description.
Description | Returns all attachments linked to the specified assignment in JSON format |
---|---|
Type of call | GET |
Request Authorization Header | Bearer access_token received through the Token API call. |
URL Syntax | http(s)://<servernameOrIP>/<trackitvirtuadirectory>/WebApi/assignments/{id}/Attachments/{pageSize}/{pageNumber} |
Request Parameters |
|
Request Body | None |
Execution response | For a specific assignment, the following values for the attachments are retrieved:
|
Important considerations |
|
Click here to view an example.
http(s)://<servernameOrIP>/<trackitvirtuadirectory>/WebApi/assignments/101/Attachments/1/1/
Request Authorization Header:
Bearer access_token:"ExPqpLF79Zi+vHZJIXZOGBSQVPKXlFVOfmQzMyfS7SGYJolrDAf3/LZR1qm9X+2OVY60OlEuUYOYaflcIjj7ytZ336b50mu4ieuPnx2AU2vCFgO3eqUe22Up"
Response:
{
"Count": 10,
"AssignmentAttachments": [
{
"1": {
"DisplayName": "Sequence",
"Value": 1002
},
"6": {
"DisplayName": "File Size",
"Value": 120743
},
"7": {
"DisplayName": "File Name",
"Value": "Serengeti_National_Park_070.jpg"
}
},...
]}
GET /assignments/{id}/Notes/{pageSize}/{pageNumber}
Click here for a description.
Description | Returns all notes linked to specified assignment in JSON format |
---|---|
Type of call | GET |
Request Authorization Header | Bearer access_token received through the Token API call. |
URL Syntax | http(s)://<servernameOrIP>/<trackitvirtuadirectory>/WebApi/assignments/{id}/Notes/{pageSize}/{pageNumber} |
Request Parameters |
|
Request Body | None |
Execution response | Returns all notes linked to a specific assignment |
Important considerations |
|
Click here to view an example.
http(s)://<servernameOrIP>/<trackitvirtuadirectory>/WebApi/assignments/101/Notes/0/0/?maxContentLength=-1&SystemNote=true
Request Authorization Header:
Bearer access_token:"ExPqpLF79Zi+vHZJIXZOGBSQVPKXlFVOfmQzMyfS7SGYJolrDAf3/LZR1qm9X+2OVY60OlEuUYOYaflcIjj7ytZ336b50mu4ieuPnx2AU2vCFgO3eqUe22Up"
Response:
{
"Count": 3,
"AssignmentNotes": [
{
"1": {
"DisplayName": "Sequence",
"Value": 1003
},
"2": {
"DisplayName": "Last Modified",
"Value": "2019-01-23T08:20:43.3030000Z"
},
"3": {
"DisplayName": "Last User",
"Value": "TECH1"
},
"4": {
"DisplayName": "Seq_Group",
"Value": 2
},….
}
}
GET /assignments/Note/{noteId}
Click here for a description.
Description | Returns sequence, display names, and values of all fields for the specified assignment note in JSON Format | ||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Type of call | GET | ||||||||||||||||||||||||||||||||||||||||||||||||
Request Authorization Header | Bearer access_token received through the Token API call. | ||||||||||||||||||||||||||||||||||||||||||||||||
URL Syntax | http(s)://<servernameOrIP>/<trackitvirtuadirectory>/WebApi/assignments/Note/{NoteId} | ||||||||||||||||||||||||||||||||||||||||||||||||
Request Parameters | Specify the Assignment Note ID. | ||||||||||||||||||||||||||||||||||||||||||||||||
Request Body | None | ||||||||||||||||||||||||||||||||||||||||||||||||
Execution response | Click here to see a table of the execution response values.For the specified assignment note, the following fields can be returned:
| ||||||||||||||||||||||||||||||||||||||||||||||||
Important considerations |
|
Click here to view an example.
http(s)://<servernameOrIP>/<trackitvirtuadirectory>/WebApi/assignments/Note/1001
Request Authorization Header:
Bearer access_token:"ExPqpLF79Zi+vHZJIXZOGBSQVPKXlFVOfmQzMyfS7SGYJolrDAf3/LZR1qm9X+2OVY60OlEuUYOYaflcIjj7ytZ336b50mu4ieuPnx2AU2vCFgO3eqUe22Up"
Response:
{
"AssignmentNote": [
{
"1": {
"DisplayName": "Sequence",
"Value": 1001
},
"2": {
"DisplayName": "Last Modified",
"Value": "2019-01-23T08:20:43.1530000Z"
},
"3": {
"DisplayName": "Last User",
"Value": "TECH1"
},
"4": {
"DisplayName": "Seq_Group",
"Value": 2
},....
}
}
GET /assignments/{id}/Successors/{pageSize}/{pageNumber}
Click here for a description.
Description | Returns all successors linked to a specified assignment in JSON format |
---|---|
Type of call | GET |
Request Authorization Header | Bearer access_token received through the Token API call. |
URL Syntax | http(s)://<servernameOrIP>/<trackitvirtuadirectory>/WebApi/assignments/{id}//Successors/{pageSize}/{pageNumber} |
Request Parameters |
|
Request Body | None |
Execution response | Returns all successors and their count linked to a specified assignment |
Important considerations |
|
Click here to view an example.
http(s)://<servernameOrIP>/<trackitvirtuadirectory>/WebApi/assignments/101/Successors/1/1
Request Authorization Header:
Bearer access_token:"ExPqpLF79Zi+vHZJIXZOGBSQVPKXlFVOfmQzMyfS7SGYJolrDAf3/LZR1qm9X+2OVY60OlEuUYOYaflcIjj7ytZ336b50mu4ieuPnx2AU2vCFgO3eqUe22Up"
Response:
{
"Count": 3,
"AssignmentDependencies": [
{
"1": {
"DisplayName": "Sequence",
"Value": 1003
},
"2": {
"DisplayName": "Last Modified",
"Value": "2019-01-23T08:20:43.3030000Z"
},
"3": {
"DisplayName": "Last User",
"Value": "TECH1"
},
"4": {
"DisplayName": "Seq_Group",
"Value": 2
},….
}
}
GET /assignments/{id}/Predecessors/{pageSize}/{pageNumber}
Click here for a description.
Description | Returns all predecessors linked to a specified assignment in JSON format |
---|---|
Type of call | GET |
Request Authorization Header | Bearer access_token received through the Token API call. |
URL Syntax | http(s)://<servernameOrIP>/<trackitvirtuadirectory>/WebApi/assignments/{id}/Predecessors/{pageSize}/{pageNumber} |
Request Parameters |
|
Request Body | None |
Execution response | Returns all predecessors and their count linked to a specified assignment |
Important considerations |
|
Click here to view an example.
http(s)://<servernameOrIP>/<trackitvirtuadirectory>/WebApi/assignments/101/Predecessors/1/1
Request Authorization Header:
Bearer access_token:"ExPqpLF79Zi+vHZJIXZOGBSQVPKXlFVOfmQzMyfS7SGYJolrDAf3/LZR1qm9X+2OVY60OlEuUYOYaflcIjj7ytZ336b50mu4ieuPnx2AU2vCFgO3eqUe22Up"
Response:
{
"Count": 3,
"AssignmentDependencies": [
{
"1": {
"DisplayName": "Sequence",
"Value": 1003
},
"2": {
"DisplayName": "Last Modified",
"Value": "2019-01-23T08:20:43.3030000Z"
},
"3": {
"DisplayName": "Last User",
"Value": "TECH1"
},
"4": {
"DisplayName": "Seq_Group",
"Value": 2
},….
}
}
POST /assignments
Click here for a description.
Description | Creates and returns the specified Assignment in JSON format | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Type of call | POST | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Request Authorization Header | Bearer access_token received through the Token API call. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
URL Syntax | http(s)://<servernameOrIP>/<trackitvirtuadirectory>/WebApi/assignments | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Request Parameters | None | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Request Body | Specify createInput as follows:
{ "Properties": {}, Click here to see a table of the fields you can update.For the specified assignment, you can update the following fields:
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Execution response | Creates and returns the assignment with Field Sequence and Display Names. Click here to see a table of the execution response values.For the created assignment, you can return the following fields:
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Important considerations |
|
Click here to view an example.
http(s)://<servernameOrIP>/<trackitvirtuadirectory>/WebApi/assignments
Request Authorization Header:
Bearer access_token:"ExPqpLF79Zi+vHZJIXZOGBSQVPKXlFVOfmQzMyfS7SGYJolrDAf3/LZR1qm9X+2OVY60OlEuUYOYaflcIjj7ytZ336b50mu4ieuPnx2AU2vCFgO3eqUe22Up"
Request body:
{
"Properties": {
"Ticket ID":101,
"Category" :"Applications",
"Additional Information" : "Additional Information field is updated. "},
"OptionalParams": {
"Param1": {},
"Param2": {}
}
}
Response:
{
"Assignments": {
"1": {
"DisplayName": "Assignment ID",
"Value": 101
},
"2": {
"DisplayName": "Last Modified",
"Value": "2019-01-23T11:27:09.7970000Z"
},
"3": {
"DisplayName": "Last User",
"Value": "TECH1"
},
"4": {
"DisplayName": "Seq_Group",
"Value": 2
},
"7": {
"DisplayName": "Additional Information",
"Value": "Additional Information field is updated. "
}….
"65": {
"DisplayName": "Category",
"Value": "Applications"
},
}}
POST /assignments/{id}/AddNote
Click here for a description.
Description | Creates and returns a user note linked to the specified assignment in JSON format | ||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Type of call | POST | ||||||||||||||||||||||||||||||||||||||||||||||||
Request Authorization Header | Bearer access_token received through the Token API call. | ||||||||||||||||||||||||||||||||||||||||||||||||
URL Syntax | http(s)://<servernameOrIP>/<trackitvirtuadirectory>/WebApi/assignments/{id}/AddNote | ||||||||||||||||||||||||||||||||||||||||||||||||
Request Parameters | (required) id Specify the Assignment ID. | ||||||||||||||||||||||||||||||||||||||||||||||||
Request Body | (required) note Specify as follows:
{ | ||||||||||||||||||||||||||||||||||||||||||||||||
Execution response | Creates and returns a user note linked to a specified assignment Click here to see a table of the execution response values.For the specified assignment note, the following fields can be returned:
| ||||||||||||||||||||||||||||||||||||||||||||||||
Important considerations |
|
Click here to view an example.
http(s)://<servernameOrIP>/<trackitvirtuadirectory>/WebApi/assignments/101/AddNote
Request Authorization Header:
Bearer access_token:"ExPqpLF79Zi+vHZJIXZOGBSQVPKXlFVOfmQzMyfS7SGYJolrDAf3/LZR1qm9X+2OVY60OlEuUYOYaflcIjj7ytZ336b50mu4ieuPnx2AU2vCFgO3eqUe22Up"
Request Body:
{
"Note Type": "Assignment Description",
"Activity Code": "Install",
"Note": "This is an Assignment Note added by API",
"Duration": "00:10:00",
"OptionalParams": {
"Param1": {},
"Param2": {}
}
}
Response:
{
"Assignment": {
"1": {
"DisplayName": "Assignment ID",
"Value": 101
},
"2": {
"DisplayName": "Last Modified",
"Value": "2019-01-23T11:27:09.7970000Z"
},
"3": {
"DisplayName": "Last User",
"Value": "TECH1"
},
"4": {
"DisplayName": "Seq_Group",
"Value": 2
},…
}
"Note": {
"1": {
"DisplayName": "Sequence",
"Value": 1008
},
"2": {
"DisplayName": "Last Modified",
"Value": "2019-01-23T12:40:46.6130000Z"
},
"3": {
"DisplayName": "Last User",
"Value": "SAK2"
},
"4": {
"DisplayName": "Seq_Group",
"Value": 2
},
"5": {
"DisplayName": "Note",
"Value": "This is an Assignment Note added by API"
},
"6": {
"DisplayName": "Assignment ID",
"Value": 101
},
"8": {
"DisplayName": "Seq_Technician",
"Value": 1035
},
"9": {
"DisplayName": "Date",
"Value": "2019-01-23T12:40:46.6130000Z"
},
"10": {
"DisplayName": "Duration",
"Value": 600
},…..
}}
POST /assignments/{id}/Delete
Click here for a description.
Description | Deletes the specified assignment and returns the status in JSON format |
---|---|
Type of call | POST |
Request Authorization Header | Bearer access_token received through the Token API call. |
Request Body | None |
URL Syntax | http(s)://<servernameOrIP>/<trackitvirtuadirectory>/WebApi/assignments/{id}/Delete |
Request Parameters | (required) id Specify the Assignment ID. |
Request Body | None |
Execution response | Deletes the specified assignment and returns the status The following response is generated, either true or false: { "success": true } |
Important considerations |
|
Click here to view an example.
http(s)://<servernameOrIP>/<trackitvirtuadirectory>/WebApi/assignments/101/Delete
Request Authorization Header:
Bearer access_token:"ExPqpLF79Zi+vHZJIXZOGBSQVPKXlFVOfmQzMyfS7SGYJolrDAf3/LZR1qm9X+2OVY60OlEuUYOYaflcIjj7ytZ336b50mu4ieuPnx2AU2vCFgO3eqUe22Up"
Response:
{
"success": true
}
POST /assignments/{id}/ChangeStatus
Click here for a description.
Description | Changes and returns the status of the specified assignment in JSON format. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Type of call | POST | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Request Authorization Header | Bearer access_token received through the Token API call. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
URL Syntax | http(s)://<servernameOrIP>/<trackitvirtuadirectory>/WebApi/assignments/{id}/ChangeStatus | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Request Parameters | (required) id Specify the Assignment ID. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Request Body | Specify the changeStatusInput as follows:
{ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Execution response | Changes and returns the status of a specific assignment Click here to see a table of the execution response values.For the specified assignment, the following fields are returned:
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Important considerations |
|
Click here to view an example.
http(s)://<servernameOrIP>/<trackitvirtuadirectory>/WebApi/assignments/101/ChangeStatus
Request Authorization Header:
Bearer access_token:"ExPqpLF79Zi+vHZJIXZOGBSQVPKXlFVOfmQzMyfS7SGYJolrDAf3/LZR1qm9X+2OVY60OlEuUYOYaflcIjj7ytZ336b50mu4ieuPnx2AU2vCFgO3eqUe22Up"
Request Body:
changeStatusInput:
{
"StatusName": "Escalated",
"Note": {
"Note Type": "Assignment Description",
"Activity Code": "Install",
"Note": " This is an Assignment Note added by API to change Status ",
"OptionalParams": {
"Param1": {},
"Param2": {}
}
}
}
Response:
{
"Assignment": {
"1": {
"DisplayName": "Assignment ID",
"Value": 101
},
"2": {
"DisplayName": "Last Modified",
"Value": "2019-01-23T13:06:08.7500000Z"
},
"3": {
"DisplayName": "Last User",
"Value": "TECH1"
},
"4": {
"DisplayName": "Seq_Group",
"Value": 2
},….
"81": {
"DisplayName": "Status",
"Value": "Escalated"
},…..
}
}
"Note": {
"1": {
"DisplayName": "Sequence",
"Value": 1010
},
"2": {
"DisplayName": "Last Modified",
"Value": "2019-01-23T13:06:09.3370000Z"
},
"3": {
"DisplayName": "Last User",
"Value": "TECH1"
},
"4": {
"DisplayName": "Seq_Group",
"Value": 2
},
"5": {
"DisplayName": "This is an Assignment Note added by API to change Status.",
"Value": "note"
},
"6": {
"DisplayName": "Assignment ID",
"Value": 101
}….
}
}
POST /assignments/{id}/Close
Click here for a description.
Description | Changes and returns the status of the specified assignment to the default status type of Closed in JSON format. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Type of call | POST | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Request Authorization Header | Bearer access_token received through the Token API call. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
URL Syntax | http(s)://<servernameOrIP>/<trackitvirtuadirectory>/WebApi/assignments/{id}/Close | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Request Parameters | (required) id Specify the Assignment ID. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Request Body | (required) closeInput Specify as follows:
{ "Note": { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Execution response | Returns the assignment with Default Closed status and adds the respective Note. Click here to see a table of the execution response values.For the specified assignment, the following fields are returned:
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Important considerations |
|
Click here to view an example.
http(s)://<servernameOrIP>/<trackitvirtuadirectory>/WebApi/assignments/101/Close
Request Authorization Header:
Bearer access_token:"ExPqpLF79Zi+vHZJIXZOGBSQVPKXlFVOfmQzMyfS7SGYJolrDAf3/LZR1qm9X+2OVY60OlEuUYOYaflcIjj7ytZ336b50mu4ieuPnx2AU2vCFgO3eqUe22Up"
Response:
{
"Assignment": {
"1": {
"DisplayName": "Assignment ID",
"Value": 101
},
"2": {
"DisplayName": "Last Modified",
"Value": "2019-01-23T13:06:08.7500000Z"
},
"3": {
"DisplayName": "Last User",
"Value": "TECH1"
},
"4": {
"DisplayName": "Seq_Group",
"Value": 2
},….
"81": {
"DisplayName": "Status",
"Value": "Closed"
},…..
}
}
"Note": {
"1": {
"DisplayName": "Sequence",
"Value": 1010
},
"2": {
"DisplayName": "Last Modified",
"Value": "2019-01-23T13:06:09.3370000Z"
},
"3": {
"DisplayName": "Last User",
"Value": "SAK2"
},
"4": {
"DisplayName": "Seq_Group",
"Value": 2
},
"5": {
"DisplayName": "This is an Assignment Note added by API to close the Assignment.",
"Value": "note"
},
"6": {
"DisplayName": "Assignment ID",
"Value": 101
}….
}
}