※ 現在APIはベータ版です。仕様が変更になる可能性がありますのでご了承ください。

Supported Formats

json

Examples

PATCH /api/v1/time_entries/6171/stop
200
{
  "stopped_at": "2024-12-17T00:27:13.000Z",
  "team_id": 11643,
  "time_trackable_id": 36645,
  "time_trackable_type": "Task",
  "time_tracker_id": 14411,
  "time_tracker_type": "User",
  "deleted_at": null,
  "id": 6171,
  "started_at": "2024-12-17T00:27:13.000Z",
  "input_type": "realtime",
  "stopped_at_seconds": 1734395233,
  "deleted_at_seconds": 0,
  "duration": 0.0,
  "amount": 0,
  "created_at": "2024-12-17T00:27:13.000Z",
  "updated_at": "2024-12-17T00:27:13.000Z",
  "formatted_duration": "00:00",
  "html_url": "http://www.example.com/app/mytasks/36645/edit",
  "user": {
    "id": 14411,
    "nickname": "Gov. Eulalia Predovic",
    "image": "https://lh5.googleusercontent.com/-vLvFHrocJuk/AAAAAAAAAAI/AAAAAAAAAEQ/CZsQXc7B2EM/photo.jpg?sz=50",
    "created_at": "2024-12-17T00:27:13.000Z",
    "updated_at": "2024-12-17T00:27:13.000Z",
    "deleted_at": null,
    "avatar": null,
    "daily": true,
    "daily_time": "2000-01-01T08:00:00.000Z",
    "weekly": true,
    "time_zone": "UTC",
    "locale": "en",
    "domain": "timecrowd.net",
    "reset_password_sent_at": null,
    "remember_created_at": null,
    "sign_in_count": 0,
    "current_sign_in_at": null,
    "last_sign_in_at": null,
    "confirmed_at": "2024-12-17T00:27:13.000Z",
    "confirmation_sent_at": null,
    "deactivated_at": null,
    "calendar_zoom_rate": 1,
    "avatar_url": "https://lh5.googleusercontent.com/-vLvFHrocJuk/AAAAAAAAAAI/AAAAAAAAAEQ/CZsQXc7B2EM/photo.jpg?sz=50"
  },
  "task": {
    "state": "open",
    "updated_at": "2024-12-17T00:27:13.000Z",
    "id": 36645,
    "key": "Debitisomnisdoloreeaque",
    "title": "Debitis omnis dolore eaque.",
    "url": "",
    "team_id": 11643,
    "created_at": "2024-12-17T00:27:13.000Z",
    "deleted_at": null,
    "description": null,
    "category": {
      "id": 36644,
      "key": "key88",
      "title": "key88",
      "url": null,
      "team_id": 11643,
      "created_at": "2024-12-17T00:27:13.000Z",
      "updated_at": "2024-12-17T00:27:13.000Z",
      "deleted_at": null,
      "description": null,
      "category": true,
      "sequential_id": null,
      "state": "open",
      "bill": 0,
      "ancestry": null,
      "ancestry_depth": 0,
      "closed_at": null,
      "color": 1,
      "position": 2,
      "deleted_at_seconds": 0,
      "key_md5": "3180155ad5bc74501315acac18382334",
      "archived": false
    },
    "sequential_id": null,
    "bill": 0,
    "ancestry": "36644",
    "ancestry_depth": 1,
    "closed_at": null,
    "color": 1,
    "position": null,
    "deleted_at_seconds": 0,
    "key_md5": "0bbecc99a1e639814422ffcdf6b004d5",
    "archived": false,
    "team": {
      "id": 11643,
      "name": "Delaware owls",
      "created_at": "2024-12-17T00:27:13.000Z",
      "updated_at": "2024-12-17T00:27:13.000Z",
      "deleted_at": null,
      "time_limit": 0,
      "avatar": null,
      "personal": false,
      "premium": false,
      "ancestry": null,
      "rounding": "floor",
      "capacity": null,
      "hierarchized": false,
      "default_duration": 15,
      "tasks_readonly_role": "none",
      "workspaces_workspace_id": 12455,
      "tasks_readonly": false
    }
  },
  "comment": null,
  "team": {
    "id": 11643,
    "name": "Delaware owls",
    "created_at": "2024-12-17T00:27:13.000Z",
    "updated_at": "2024-12-17T00:27:13.000Z",
    "deleted_at": null,
    "time_limit": 0,
    "avatar": null,
    "personal": false,
    "premium": false,
    "ancestry": null,
    "rounding": "floor",
    "capacity": null,
    "hierarchized": false,
    "default_duration": 15,
    "tasks_readonly_role": "none",
    "workspaces_workspace_id": 12455,
    "tasks_readonly": false
  },
  "category": {
    "id": 36644,
    "key": "key88",
    "title": "key88",
    "url": null,
    "team_id": 11643,
    "created_at": "2024-12-17T00:27:13.000Z",
    "updated_at": "2024-12-17T00:27:13.000Z",
    "deleted_at": null,
    "description": null,
    "category": true,
    "sequential_id": null,
    "state": "open",
    "bill": 0,
    "ancestry": null,
    "ancestry_depth": 0,
    "closed_at": null,
    "color": 1,
    "position": 2,
    "deleted_at_seconds": 0,
    "key_md5": "3180155ad5bc74501315acac18382334",
    "archived": false
  }
}
PATCH /api/v1/time_entries/6172/stop
403
{
  "messages": [
    "You are not authorized to access this page."
  ]
}