POST
/
api
/
v1
/
workspaces
/
:workspace-slug
/
projects
/
:project_id
/
issues
/
:issue_id
/
worklogs
curl --request POST \
  --url https://api.plane.so/api/v1/workspaces/:workspace-slug/projects/:project_id/issues/:issue_id/worklogs/ \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "description": "<string>",
  "duration": 123
}'

Path parameters

workspace-slug
string
required

The workspace-slug represents the unique workspace identifier for a workspace in Plane. It can be found in the URL. For example, in the URL https://app.plane.so/my-team/projects/, the workspace slug is my-team.

project_id
string
required
The unique identifier of the project
issue_id
string
required
The unique identifier of the issue

Body

description
string
required
Description of the work done during the worklog
duration
integer
required
Time spent on the issue in minutes

Response

    {
        "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
        "created_at": "2025-01-29T21:27:54.197306+05:30",
        "updated_at": "2025-01-29T21:27:54.197320+05:30",
        "description": "Added user story",
        "duration": 2,
        "created_by": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
        "updated_by": null,
        "project_id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
        "workspace_id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
        "logged_by": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
    }