status
of a Time Tracking determines what is allowed to be updated.Administrator
.Worker
can only update a Time Tracking with the status draft
or rejected
.x-api-key: ********************
x-api-env: ********************
{
"start": "2019-08-24T14:15:22Z",
"end": "2019-08-24T14:15:22Z",
"duration": 0,
"status": "draft",
"locked": true,
"note": "string",
"card_id": "66f6e46c-f6a1-4af8-a1bd-49666bc01304",
"activity_id": "98dae057-958f-4b2f-9ed4-41f109afdc3f",
"user_id": "a169451c-8525-4352-b8ca-070dd449a1a5",
"external_note": "string",
"external_failed": true,
"synchronized_at": "2019-08-24T14:15:22Z"
}
curl --location --request PUT 'https://api.vplan.com/v1/time_tracking/' \
--header 'Content-Type: application/json' \
--header 'x-api-key;' \
--header 'x-api-env;' \
--data-raw '{
"start": "2019-08-24T14:15:22Z",
"end": "2019-08-24T14:15:22Z",
"duration": 0,
"status": "draft",
"locked": true,
"note": "string",
"card_id": "66f6e46c-f6a1-4af8-a1bd-49666bc01304",
"activity_id": "98dae057-958f-4b2f-9ed4-41f109afdc3f",
"user_id": "a169451c-8525-4352-b8ca-070dd449a1a5",
"external_note": "string",
"external_failed": true,
"synchronized_at": "2019-08-24T14:15:22Z"
}'