---
title: "Changes to PATCH: Partially updates document in the collection"
method: PATCH
path: "/{collection}/{identifier}"
---

# Changes to PATCH: Partially updates document in the collection

`PATCH /{collection}/{identifier}`

> Every recorded change to this endpoint, newest first.

## Timeline

Changed in 4 of 6 revisions.

- **2026-07-17** `5b0d424433e1` — 1 info
- **2021-01-07** `8252719e8e34` — 1 breaking, 11 info
- **2019-11-02** `6b2eb690f4ab` — 7 info
- **2019-10-09** `e3a793475629` — 7 breaking, 6 warning, 7 info

## Changes

- **2026-07-17** `5b0d424433e1` — 1 info
  - the endpoint scheme security `accessToken` was removed from the API
- **2021-01-07** `8252719e8e34` — 1 breaking, 11 info
  - removed the success response with the status `204`
  - the endpoint scheme security `accessToken` was added to the API
  - the endpoint scheme security `jwtoken` was added to the API
  - the endpoint scheme security `apiKeyAuth` was removed from the API
  - added the media type `application/json` for the response with the status `400`
  - added the media type `application/json` for the response with the status `401`
  - added the media type `application/json` for the response with the status `403`
  - added the media type `application/json` for the response with the status `404`
  - added the media type `application/json` for the response with the status `410`
  - added the media type `application/json` for the response with the status `412`
  - added the media type `application/json` for the response with the status `422`
  - added the success response with the status `200`
- **2019-11-02** `6b2eb690f4ab` — 7 info
  - added the new optional request property `oneOf[#/components/schemas/DeviceStatus]/allOf[#/components/schemas/DocumentBase]/isReadOnly`
  - added the new optional request property `oneOf[#/components/schemas/Entry]/allOf[#/components/schemas/DocumentBase]/isReadOnly`
  - added the new optional request property `oneOf[#/components/schemas/Food]/allOf[#/components/schemas/DocumentBase]/isReadOnly`
  - added the new optional request property `oneOf[#/components/schemas/Profile]/allOf[#/components/schemas/DocumentBase]/isReadOnly`
  - added the new optional request property `oneOf[#/components/schemas/Settings]/allOf[#/components/schemas/DocumentBase]/isReadOnly`
  - added the new optional request property `oneOf[#/components/schemas/Treatment]/allOf[#/components/schemas/DocumentBase]/isReadOnly`
  - added the non-success response with the status `422`
- **2019-10-09** `e3a793475629` — 7 breaking, 6 warning, 7 info
  - removed the media type `application/json` for the response with the status `400`
  - removed the media type `application/json` for the response with the status `401`
  - removed the media type `application/json` for the response with the status `403`
  - removed the media type `application/json` for the response with the status `404`
  - removed the media type `application/json` for the response with the status `410`
  - removed the media type `application/json` for the response with the status `412`
  - removed the success response with the status `200`
  - removed the request property `oneOf[#/components/schemas/DeviceStatus]/allOf[#/components/schemas/DocumentBase]/isReadOnly`
  - removed the request property `oneOf[#/components/schemas/Entry]/allOf[#/components/schemas/DocumentBase]/isReadOnly`
  - removed the request property `oneOf[#/components/schemas/Food]/allOf[#/components/schemas/DocumentBase]/isReadOnly`
  - removed the request property `oneOf[#/components/schemas/Profile]/allOf[#/components/schemas/DocumentBase]/isReadOnly`
  - removed the request property `oneOf[#/components/schemas/Settings]/allOf[#/components/schemas/DocumentBase]/isReadOnly`
  - removed the request property `oneOf[#/components/schemas/Treatment]/allOf[#/components/schemas/DocumentBase]/isReadOnly`
  - the endpoint scheme security `apiKeyAuth` was added to the API
  - the endpoint scheme security `jwtoken` was removed from the API
  - added the new optional `header` request parameter `Date` to all path's operations
  - added the new optional `query` request parameter `now` to all path's operations
  - added the new optional `query` request parameter `token` to all path's operations
  - removed the non-success response with the status `422`
  - added the success response with the status `204`

---

[Operation](https://skmtc.dev/nightscout/apis/nightscout-api/docs/:collection/:identifier/patch.md) · [API](https://skmtc.dev/nightscout/apis/nightscout-api.md) · [Page](https://skmtc.dev/nightscout/apis/nightscout-api/changes/:collection/:identifier/patch)
