Time Segments

Provides access to Task Force time segment management functions for third-party applications.

Methods:

General Notes: All Scaffold web methods require that the Content Type of your request is "application/scaffold+json". The Host and Content-Length headers are not required. Scaffold's response Content-Type will always be "application/json". The formatting of JSON shown in the examples on this page is not enforced in requests or necessarily followed in responses--it is only shown as such to enhance human readability--assume that you can send (and may receive) any legal JSON that has the same object, property, and array structures.


CreateTimeSegment

Creates a Task Force time segment with the specified parameters.

Parameters:

Example Request:

POST /API/TimeSegments.aspx/CreateTimeSegment HTTP/1.1
Host: taskforce.epiforge.com
Content-Type: application/scaffold+json
Content-Length: 179

{
  "accountLogin": "string",
  "userLogin": "string",
  "password": "string",
  "userId": 0,
  "taskId": 0,
  "start": "string",
  "end": "string",
  "notes": "string"
}

Example Response:

HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 43

{
  "Response": 0,
  "Error": "string"
}

DeleteTimeSegment

Deletes a Task Force time segment with the specified ID.

Parameters:

Example Request:

POST /API/TimeSegments.aspx/DeleteTimeSegment HTTP/1.1
Host: taskforce.epiforge.com
Content-Type: application/scaffold+json
Content-Length: 95

{
  "accountLogin": "string",
  "userLogin": "string",
  "password": "string",
  "id": 0
}

Example Response:

HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 25

{
  "Error": "string"
}

ListTimeSegments

Returns a list of Task Force time segments.

Parameters:

Example Request:

POST /API/TimeSegments.aspx/ListTimeSegments HTTP/1.1
Host: taskforce.epiforge.com
Content-Type: application/scaffold+json
Content-Length: 306

{
  "accountLogin": "string",
  "userLogin": "string",
  "password": "string",
  "limit": 0,
  "taskNameFilter": "string",
  "customFieldFilters": [
    {
      "customFieldId": 0,
      "filter": "string"
    }
  ],
  "dateFrom": "string",
  "dateTo": "string",
  "userIds": [
    0
  ]
}

Example Response:

HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 434

{
  "Response": [
    {
      "Id": 0,
      "Start": "string",
      "End": "string",
      "Duration": 0,
      "Notes": "string",
      "TaskId": 0,
      "TaskName": "string",
      "TaskCustomValues": [
        {
          "CustomFieldId": 0,
          "CustomFieldName": "string",
          "Value": "string"
        }
      ],
      "UserId": 0,
      "UserName": "string"
    }
  ],
  "Error": "string"
}

ListUninvoicedTimeSegments

Returns a list of uninvoiced Task Force time segments.

Parameters:

Example Request:

POST /API/TimeSegments.aspx/ListUninvoicedTimeSegments HTTP/1.1
Host: taskforce.epiforge.com
Content-Type: application/scaffold+json
Content-Length: 306

{
  "accountLogin": "string",
  "userLogin": "string",
  "password": "string",
  "limit": 0,
  "taskNameFilter": "string",
  "customFieldFilters": [
    {
      "customFieldId": 0,
      "filter": "string"
    }
  ],
  "dateFrom": "string",
  "dateTo": "string",
  "userIds": [
    0
  ]
}

Example Response:

HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 434

{
  "Response": [
    {
      "Id": 0,
      "Start": "string",
      "End": "string",
      "Duration": 0,
      "Notes": "string",
      "TaskId": 0,
      "TaskName": "string",
      "TaskCustomValues": [
        {
          "CustomFieldId": 0,
          "CustomFieldName": "string",
          "Value": "string"
        }
      ],
      "UserId": 0,
      "UserName": "string"
    }
  ],
  "Error": "string"
}

UpdateTimeSegment

Updates a Task Force time segment with the specified parameters.

Parameters:

Example Request:

POST /API/TimeSegments.aspx/UpdateTimeSegment HTTP/1.1
Host: taskforce.epiforge.com
Content-Type: application/scaffold+json
Content-Length: 175

{
  "accountLogin": "string",
  "userLogin": "string",
  "password": "string",
  "id": 0,
  "taskId": 0,
  "start": "string",
  "end": "string",
  "notes": "string"
}

Example Response:

HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 25

{
  "Error": "string"
}