Skip to main content
PATCH
/
{team_id}
/
time
/
categories
/
{time_category_id}
Update a time category
curl --request PATCH \
  --url https://api.superthread.com/v1/{team_id}/time/categories/{time_category_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "billable_default": true,
  "color": "<string>",
  "archived": true
}
'
{
  "time_category": {
    "id": "tc_01HQK6Z9YJZ4M9JX8FVB6QXYAB",
    "type": "time_category",
    "team_id": "tDsu0j19",
    "name": "Internal meetings",
    "billable_default": false,
    "color": "fog",
    "archived_at": 1608742037016
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

team_id
string
required

Team ID is an alphanumerical string that identifies a Team. This is externally referred to as a "Workspace".

time_category_id
string
required

Time Category ID.

Body

application/json
name
string | null
billable_default
boolean | null
color
string | null
archived
boolean | null

Pass true to archive (soft-delete) this category.

Response

Updated time category

time_category
object