Document toolboxDocument toolbox

This Confluence Space is no longer updated. If you want to read the most up-to-date documentation of Timetracker Cloud, click here: https://docs.everit.biz

Tags API


Get information about the configured Tags and their current status.

All requests need to be made to this base URL:

https://jttp-cloud.everit.biz/timetracker/api/latest/public

Get tags GET /tag

Header parameters

Header Parameter

Optional

Description

Header Parameter

Optional

Description

x-everit-jwt

false

JWT token, see: https://everit.atlassian.net/wiki/spaces/TCDL/pages/3461578779

 Query Parameters

The available query parameters for the request:

Query Parameter

Value type

Optional

Description

Query Parameter

Value type

Optional

Description

archived

boolean

true

Filter the tags based on the archived status. If this parameter is not provided all tags will be returned.

Example: /public/tag?archived=true

Examples 

GET URL: TIME_TRACKER_BASE_URL/timetracker/api/latest/public/tag

Example response:

200 Successful operation:

{ "worklogTags": [ { "archived": false, "colorIndex": null, "description": "Development activities.", "id": 1, "name": "development" }, { "archived": false, "colorIndex": null, "description": "Testing activities.", "id": 2, "name": "testing" }, { "archived": false, "colorIndex": null, "description": "Support activities.", "id": 3, "name": "support" }, { "archived": false, "colorIndex": null, "description": "Meeting activities.", "id": 4, "name": "meeting" }, { "archived": false, "colorIndex": 9, "description": "Administration activities.", "id": 5, "name": "administration" } ] }

401 Unauthorized

479 The user does not have one of the necessary Timetracker permissions that can be set in the Global Settings.

 

Create tag POST /tag

Header parameters

Header Parameter

Optional

Description

Header Parameter

Optional

Description

x-everit-jwt

false

JWT token, see: https://everit.atlassian.net/wiki/spaces/TCDL/pages/3461578779

x-requested-by

false

CSRF protection parameter.

Body

The POST body is a JSON object: WorklogTagRequest

The available fields of the WorklogTagRequest:

Parameter

Value type

Optional

Description

Parameter

Value type

Optional

Description

name

string

false

The name of the worklog tag.

Example: “name”: “test name“

description

string

false

The description of the worklog tag.

Example: “description”: “test description“

colorIndex

number

true

The index of the selected color. Null, if the default color is used.

Example: “colorIndex”: 1

Examples 

POST URL: TIME_TRACKER_BASE_URL/timetracker/api/latest/public/tag

Example post body:

{ "description": "test description", "name": "test name", "colorIndex": 3 }

Example response:

200 Successful operation:

{ "archived": false, "colorIndex": 3, "description": "test description", "id": 21, "name": "test name" }

401 Unauthorized

400 Invalid parameters:

An object that holds all field and non-field related errors:

479 The user does not have one of the necessary Timetracker permissions that can be set in the Global Settings.

Update tag PUT /tag/{worklogTagId}

Header parameters

Header Parameter

Optional

Description

Header Parameter

Optional

Description

x-everit-jwt

false

JWT token, see: https://everit.atlassian.net/wiki/spaces/TCDL/pages/3461578779

x-requested-by

false

CSRF protection parameter.

Path variables

The available path variables for the request:

Path Variable

Value type

Optional

Description

Path Variable

Value type

Optional

Description

worklogTagId

number

false

The ID of the worklog tag.

Example: /public/tag/19

Body

The POST body is a JSON object: WorklogTagRequest

The available fields of the WorklogTagRequest:

Parameter

Value type

Optional

Description

Parameter

Value type

Optional

Description

name

string

false

The name of the worklog tag.

Example: “name”: “test name“

description

string

false

The description of the worklog tag.

Example: “description”: “test description“

colorIndex

number

true

The index of the selected color. If not provided or the value is null the default color will be used.

Example: “colorIndex”: 1

Examples 

PUT URL: TIME_TRACKER_BASE_URL/timetracker/api/latest/public/tag/19

Example post body:

Example response:

204 Successful operation.

401 Unauthorized

404 Not found tag.

400 Invalid parameters:

An object that holds all field and non-field related errors:

479 The user does not have one of the necessary Timetracker permissions that can be set in the Global Settings.

Delete tag DELETE /tag/{worklogTagId}

Header parameters

Header Parameter

Optional

Description

Header Parameter

Optional

Description

x-everit-jwt

false

JWT token, see:

x-requested-by

false

CSRF protection parameter.

Path variables

The available path variables for the request:

Path Variable

Value type

Optional

Description

Path Variable

Value type

Optional

Description

worklogTagId

number

false

The ID of the worklog tag.

Example: /public/tag/19

Examples 

DELETE URL: TIME_TRACKER_BASE_URL/timetracker/api/latest/public/tag/19

204 Successful operation.

401 Unauthorized

400 Invalid parameters:

An object that holds all field and non-field related errors:

 

479 The user does not have one of the necessary Timetracker permissions that can be set in the Global Settings.

Archive tag POST /tag/{worklogTagId}/archive

Header parameters

Header Parameter

Optional

Description

Header Parameter

Optional

Description

x-everit-jwt

false

JWT token, see:

x-requested-by

false

CSRF protection parameter.

Path variables

The available path variables for the request:

Path Variable

Value type

Optional

Description

Path Variable

Value type

Optional

Description

worklogTagId

number

false

The ID of the worklog tag.

Example: /public/tag/19/archive

Body

POST body is not needed.

Examples 

POST URL: TIME_TRACKER_BASE_URL/timetracker/api/latest/public/tag/19/archive

Example response:

204 Successful operation.

401 Unauthorized

404 Not found tag.

400 Invalid parameters:

An object that holds all field and non-field related errors:

 

479 The user does not have one of the necessary Timetracker permissions that can be set in the Global Settings.

Restore tag POST /tag/{worklogTagId}/restore

Header parameters

Header Parameter

Optional

Description

Header Parameter

Optional

Description

x-everit-jwt

false

JWT token, see:

x-requested-by

false

CSRF protection parameter.

Path variables

The available path variables for the request:

Path Variable

Value type

Optional

Description

Path Variable

Value type

Optional

Description

worklogTagId

number

false

The ID of the worklog tag.

Example: /public/tag/19/restore

Body

POST body is not needed.

Examples 

POST URL: TIME_TRACKER_BASE_URL/timetracker/api/latest/public/tag/19/restore

Example response:

204 Successful operation.

401 Unauthorized

404 Not found tag.

400 Invalid parameters:

An object that holds all field and non-field related errors:

 

479 The user does not have one of the necessary Timetracker permissions that can be set in the Global Settings.