Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Endpoint/AssetTrackApi/api/login
HTTP method

POST

JSON argument
{
"Password": string
"UserName": string
}
ReturnsResponse

Successful Auth:

HTTP Status200
Cookie (in response headers).ASPXAUTH
JSON (in response body)
{
 "Status": "Authenticated",
"Cookie": {
  "Name": ".ASPXAUTH",
  "Path": "/",
 "Expires": "2015-06-17T23:41:19.3019067+00:00",
 "Value": "[cookie value]"
}
}

 

Unsuccessful Auth:

HTTP Status401
JSON (in response body)
{
"Status":"InvalidCredentials",
"Message":"The user name and/or password provided is incorrect."
}

...

Endpoint/AssetTrackApi/api/TaskData/DelimitedData
HTTP method

POST

JSON argument
{
// A client-defined unique ID for the submittal.
// This gets used by the AssetTrack server to create a System Log entry for the data
// submission to help uniquely identify the upload request in case there are errors
// encountered while processing of the data.
"SubmittalId" : "UploadFormPosting_2015-06-17T17:05:00.021Z",

// The ID of the task for which you are uploading data
// 1) You can use the form display name, but this could change out from under you by an
// AssetTrack administrator during form design (customizable)
// 2) You can use the form unique GUID, found by viewing the Upload Form page's frame URL
// when you are on in the AssetTrack web application.
// 3) You can save a bit of data transmission overhead by base-64 encoding the GUID
// e.g. Convert.ToBase64String(new Guid(txtOutput.Text).ToByteArray());
"TaskId" : "6f091c81-ce8d-478c-99b8-633a195d4a40",
 // An array of string values specifying the column headers contained in the
// data that is being submitted. These values should correspond to the
// columns specified in the Upload form's file template.
"Columns" : ["Asset Tag", "Status"],
 // An array of string arrays representing the row data. One string array for each row,
// with the values aligning in position with the columns specified above.
"Rows" : [
["A00000001", "Received"],
["A00000002", "Received"]
]
}
ReturnsResponse

Successful Auth:

HTTP Status200
JSON (in response body)
{
// The submittal id you provided in the original request
"SubmittalId": "UploadFormPosting_2015-06-17T17:05:00.021Z"
}

...