Delete a record of time spent
Written by
Use this request to delete a record of the time spent on an issue.
Request format
To delete records of time spent on issues, use an HTTP DELETE
request:
DELETE /v2/issues/<issue-id>/worklog/<worklog-id>
Host: https://api.tracker.yandex.net
Authorization: OAuth <token>
X-Org-ID: <organization ID>
Headers
-
Host
API host address:
https://api.tracker.yandex.net
-
Authorization
OAuth token in
OAuth <token value>
format. For example:OAuth 0c4181a7c2cf4521964a72ff57a34a07
-
X-Org-ID
Organization ID.
Resource
Parameter | Description | Data type |
---|---|---|
<issues-id> | Issue ID or key. | String |
<worklog-id> | ID of the record of time spent. | String |
Response format
Request executed successfully
Request failed
If the request is successful, the API returns a response with code 204
.
The response body is missing.
If a request fails, the response message contains details of the errors encountered:
- 403
- Insufficient rights to perform this action. You can check what rights you have in the Tracker interface. The same rights are required to perform an action via the API and interface.
- 404
- The requested object was not found. You may have specified an invalid object ID or key.
- 500
- Internal service error. Try resending your request in a few minutes.
- 503
- The API service is temporarily unavailable.