Skip to main content
POST
Update

Body

application/json
id
string<snowflake>
required
Example:

"872815618512410358"

type
enum<string>
required

Activity type. Determines validation rules for other fields.

Available options:
duration,
range
Example:

"duration"

task_id
string<snowflake>
Example:

"872815618512410358"

billable
boolean
date
string<local-date> | null
Example:

"2019-11-11"

duration
string<duration> | null

Can be provided only for duration activity type and must be ≤ 24h.

Example:

"PT1H30M20S"

remark
string | null
start
string<local-date-time>

Can be provided only for range.

Example:

"2019-11-11T12:34:56"

end
string<local-date-time> | null

Can be provided only for range activity type. Set to null to leave the activity open.

Example:

"2019-11-11T12:34:56"

Response

204

Activity updated.