---
updatedAt: 2025-06-05T21:40:40.000Z
agentTools:
  projectIndex: https://apidocs.officient.io/llms.txt
---

# Update time worked in bulk

Overwrite the amount of time worked for a set of days in bulk (eg for timetracking software integrations)

Required scope: calendar:write

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "officient-api",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api.officient.io"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "oauth2",
        "flows": {}
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/1.0/calendar/{person_id}/{year}/work/bulk": {
      "patch": {
        "summary": "Update time worked in bulk",
        "description": "Overwrite the amount of time worked for a set of days in bulk (eg for timetracking software integrations)",
        "operationId": "update-time-worked-bulk",
        "parameters": [
          {
            "name": "person_id",
            "in": "path",
            "schema": {
              "type": "integer",
              "format": "int32"
            },
            "required": true
          },
          {
            "name": "year",
            "in": "path",
            "schema": {
              "type": "integer",
              "format": "int32"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n    \"success\": 1,\n    \"failed\": [  ]\n}"
                  }
                },
                "schema": {
                  "oneOf": [
                    {
                      "type": "object",
                      "properties": {
                        "success": {
                          "type": "integer",
                          "example": 1,
                          "default": 0
                        },
                        "failed": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "date": {
                                "type": "string",
                                "example": "2019-03-13"
                              },
                              "reason": {
                                "type": "string",
                                "example": "No contract is active on 13/03/2019 for this person. A dynamic schedule can only be edited when a contract is active."
                              }
                            }
                          }
                        }
                      }
                    },
                    {
                      "type": "object",
                      "properties": {
                        "success": {
                          "type": "integer",
                          "example": 1,
                          "default": 0
                        },
                        "failed": {
                          "type": "array"
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n    \"status_code\": 400,\n    \"reason_phrase\": \"Given date '2018-24-24' doesn't exist.\"\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "status_code": {
                      "type": "integer",
                      "example": 400,
                      "default": 0
                    },
                    "reason_phrase": {
                      "type": "string",
                      "example": "Given date '2018-24-24' doesn't exist."
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false,
        "x-readme": {
          "code-samples": [
            {
              "language": "http",
              "code": "[\n\t{\n\t\t\"duration_minutes\": 456,\n\t\t\"date\": \"2019-03-13\"\n\t},\n\t{\n\t\t\"duration_minutes\": 240,\n\t\t\"date\": \"2019-03-14\"\n\t}\n]",
              "name": "Set worked time for multiple days"
            }
          ],
          "samples-languages": [
            "http"
          ]
        }
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": false,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```