This endpoint requires authentication. Include your API key in the request headers as X-API-Key.
Description
Updates an existing date variable’s properties. You can modify the name and description of a date variable.
Path Parameters
The ID of the date variable to update
Request Body
The new name of the date variable. If not provided, the existing name will be kept.
The new description of what the date variable represents. If not provided, the existing description will be kept.
All fields in the request body are optional. Only the fields you want to update need to be included. Any fields not included in the request will retain their existing values.
Example Request
{
"name": "Last Visit (Updated)",
"description": "Updated description for last visit date"
}
Example Response
{
"id": 1,
"name": "Last Visit (Updated)",
"description": "Updated description for last visit date",
"patient_values_count": 150
}
Error Responses
Invalid request data. The response will include an error message explaining what went wrong.
Authentication required. Make sure you’ve included a valid API key in the request headers.
Date variable not found. The specified date variable ID does not exist.
ID of the date variable to update
Name of the date variable
Description of the date variable
Date variable updated successfully
The unique identifier of the date variable
The name of the date variable
A description of what the date variable represents
The number of patients that have values for this date variable