---
title: "Update a measurement"
method: POST
path: "/v3/measurements/update"
tags: ["measurements"]
---

# Update a measurement

`POST /v3/measurements/update`

## Request

- Base URL: `https://app.quantimo.do/api`
- URL: `https://app.quantimo.do/api/v3/measurements/update`
- Auth: one of:
  - HTTP bearer
  - OAuth 2
    - Authorization code: `https://app.quantimo.do/api/v1/oauth/authorize`
    - Token URL: `https://app.quantimo.do/api/v1/oauth/token` scopes: `basic`
- TypeScript: <https://skmtc.dev/quantimo/apis/curedao-unified-health-api/docs/v3/measurements/update/post.ts> (a function with typed inputs; its response is checked against the schema)

Update a previously submitted measurement

## Request body

- MeasurementUpdate
  - `id` integer, required: Variable id of the measurement to be updated
  - `note` string: The new note for the measurement (optional)
  - `startTime` integer: The new timestamp for the the event in epoch seconds (optional)
  - `value` number, double: The new value of for the measurement (optional)

## Response `201`

Successful Operation

- CommonResponse
  - `description` string, required: Can be used as body of help info popup
  - `summary` string, required: Can be used as title in help info popup
  - `errors` Error[]: Array of error objects with message property
    - `message` string, required: Error message
  - `status` string: ex. OK or ERROR
  - `success` boolean: true or false
  - `code` number: Response code such as 200
  - `link` string: A super neat url you might want to share with your users!
  - `card` Card
    - `actionSheetButtons` Button[]
      - `accessibilityText` string: Ex: connect
      - `action` object: Action data
      - `additionalInformation` string: Ex: connect
      - `color` string: Ex: #f2f2f2
      - `confirmationText` string: Text to show user before executing functionName
      - `functionName` string: Name of function to call
      - `parameters` object: Data to provide to functionName or be copied to the card parameters when button is clicked and card is posted to the API
      - `html` string: Ex: connect
      - `id` string: HTML element id
      - `image` string: Ex: https://image.jpg
      - `ionIcon` string: Ex: ion-refresh
      - `link` string, required: Ex: https://local.quantimo.do
      - `stateName` string: State to go to
      - `stateParams` object: Data to provide to the state
      - `successToastText` string: Text to show user after executing functionName
      - `successAlertTitle` string: Text to show user after executing functionName
      - `successAlertBody` string: Text to show user after executing functionName
      - `text` string, required: Ex: Connect
      - `tooltip` string: Ex: This is a tooltip
      - `webhookUrl` string: Post here on button click
    - `avatar` string: Smaller square image
    - `avatarCircular` string: Smaller circular image
    - `backgroundColor` string: Ex: #f2f2f2
    - `buttons` Button[]
      - `accessibilityText` string: Ex: connect
      - `action` object: Action data
      - `additionalInformation` string: Ex: connect
      - `color` string: Ex: #f2f2f2
      - `confirmationText` string: Text to show user before executing functionName
      - `functionName` string: Name of function to call
      - `parameters` object: Data to provide to functionName or be copied to the card parameters when button is clicked and card is posted to the API
      - `html` string: Ex: connect
      - `id` string: HTML element id
      - `image` string: Ex: https://image.jpg
      - `ionIcon` string: Ex: ion-refresh
      - `link` string, required: Ex: https://local.quantimo.do
      - `stateName` string: State to go to
      - `stateParams` object: Data to provide to the state
      - `successToastText` string: Text to show user after executing functionName
      - `successAlertTitle` string: Text to show user after executing functionName
      - `successAlertBody` string: Text to show user after executing functionName
      - `text` string, required: Ex: Connect
      - `tooltip` string: Ex: This is a tooltip
      - `webhookUrl` string: Post here on button click
    - `buttonsSecondary` Button[]
      - `accessibilityText` string: Ex: connect
      - `action` object: Action data
      - `additionalInformation` string: Ex: connect
      - `color` string: Ex: #f2f2f2
      - `confirmationText` string: Text to show user before executing functionName
      - `functionName` string: Name of function to call
      - `parameters` object: Data to provide to functionName or be copied to the card parameters when button is clicked and card is posted to the API
      - `html` string: Ex: connect
      - `id` string: HTML element id
      - `image` string: Ex: https://image.jpg
      - `ionIcon` string: Ex: ion-refresh
      - `link` string, required: Ex: https://local.quantimo.do
      - `stateName` string: State to go to
      - `stateParams` object: Data to provide to the state
      - `successToastText` string: Text to show user after executing functionName
      - `successAlertTitle` string: Text to show user after executing functionName
      - `successAlertBody` string: Text to show user after executing functionName
      - `text` string, required: Ex: Connect
      - `tooltip` string: Ex: This is a tooltip
      - `webhookUrl` string: Post here on button click
    - `content` string: Ex: Content
    - `headerTitle` string: Ex: Title
    - `html` string: HTML for the entire card.
    - `htmlContent` string: Ex: <div>Content</div>
    - `id` string, required: HTML element id
    - `image` string: Larger image of variable dimensions
    - `inputFields` InputField[]
      - `displayName` string, required
      - `helpText` string
      - `hint` string
      - `icon` string
      - `id` string: HTML element id
      - `image` string
      - `key` string
      - `labelLeft` string
      - `labelRight` string
      - `link` string
      - `maxLength` integer
      - `maxValue` number
      - `minLength` integer
      - `minValue` number
      - `options` string[]: Selector list options
      - `placeholder` string: Ex: Title
      - `postUrl` string
      - `required` boolean
      - `show` boolean: Ex: Title
      - `submitButton` Button
        - `accessibilityText` string: Ex: connect
        - `action` object: Action data
        - `additionalInformation` string: Ex: connect
        - `color` string: Ex: #f2f2f2
        - `confirmationText` string: Text to show user before executing functionName
        - `functionName` string: Name of function to call
        - `parameters` object: Data to provide to functionName or be copied to the card parameters when button is clicked and card is posted to the API
        - `html` string: Ex: connect
        - `id` string: HTML element id
        - `image` string: Ex: https://image.jpg
        - `ionIcon` string: Ex: ion-refresh
        - `link` string, required: Ex: https://local.quantimo.do
        - `stateName` string: State to go to
        - `stateParams` object: Data to provide to the state
        - `successToastText` string: Text to show user after executing functionName
        - `successAlertTitle` string: Text to show user after executing functionName
        - `successAlertBody` string: Text to show user after executing functionName
        - `text` string, required: Ex: Connect
        - `tooltip` string: Ex: This is a tooltip
        - `webhookUrl` string: Post here on button click
      - `type` 'check_box' | 'date' | 'email' | 'number' | 'postal_code' | 'select_option' | 'string' | 'switch' | 'text_area' | 'unit' | 'variable_category', required: Ex: Title
      - `validationPattern` string: See http://html5pattern.com/ for examples
      - `value` string
    - `ionIcon` string: Ex: ion-refresh
    - `link` string: A link to a web page or something. Not much more to say about that.
    - `parameters` object: Key value pairs derived from user input fields, button clicks, or preset defaults
    - `relatedCards` Card[]
    - `selectedButton` Button
      - `accessibilityText` string: Ex: connect
      - `action` object: Action data
      - `additionalInformation` string: Ex: connect
      - `color` string: Ex: #f2f2f2
      - `confirmationText` string: Text to show user before executing functionName
      - `functionName` string: Name of function to call
      - `parameters` object: Data to provide to functionName or be copied to the card parameters when button is clicked and card is posted to the API
      - `html` string: Ex: connect
      - `id` string: HTML element id
      - `image` string: Ex: https://image.jpg
      - `ionIcon` string: Ex: ion-refresh
      - `link` string, required: Ex: https://local.quantimo.do
      - `stateName` string: State to go to
      - `stateParams` object: Data to provide to the state
      - `successToastText` string: Text to show user after executing functionName
      - `successAlertTitle` string: Text to show user after executing functionName
      - `successAlertBody` string: Text to show user after executing functionName
      - `text` string, required: Ex: Connect
      - `tooltip` string: Ex: This is a tooltip
      - `webhookUrl` string: Post here on button click
    - `sharingBody` string: Ex: sharingBody
    - `sharingButtons` Button[]
      - `accessibilityText` string: Ex: connect
      - `action` object: Action data
      - `additionalInformation` string: Ex: connect
      - `color` string: Ex: #f2f2f2
      - `confirmationText` string: Text to show user before executing functionName
      - `functionName` string: Name of function to call
      - `parameters` object: Data to provide to functionName or be copied to the card parameters when button is clicked and card is posted to the API
      - `html` string: Ex: connect
      - `id` string: HTML element id
      - `image` string: Ex: https://image.jpg
      - `ionIcon` string: Ex: ion-refresh
      - `link` string, required: Ex: https://local.quantimo.do
      - `stateName` string: State to go to
      - `stateParams` object: Data to provide to the state
      - `successToastText` string: Text to show user after executing functionName
      - `successAlertTitle` string: Text to show user after executing functionName
      - `successAlertBody` string: Text to show user after executing functionName
      - `text` string, required: Ex: Connect
      - `tooltip` string: Ex: This is a tooltip
      - `webhookUrl` string: Post here on button click
    - `sharingTitle` string: Ex: sharingTitle
    - `subHeader` string: Ex: subTitle
    - `subTitle` string: Ex: subTitle
    - `title` string: Ex: Title

## Other responses

- `401`: Not Authenticated

---

[API](https://skmtc.dev/quantimo/apis/curedao-unified-health-api.md) - [All operations](https://skmtc.dev/quantimo/apis/curedao-unified-health-api/llms.txt) - [OpenAPI document](https://skmtc.dev/quantimo/apis/curedao-unified-health-api/revisions/7ac03025c3d2?raw)
