title | description |
---|---|
Update baseline info |
Update baseline pathway data points with new values |
If your pathway has baseline info or data points, you can update the values of these data points while the pathway is already ongoing.
Learn how to create and configure baseline data points for your pathways in Awell Studio.
mutation UpdateBaselineInfo($input: UpdateBaselineInfoInput!) {
updateBaselineInfo(input: $input) {
success
}
}
{
"input": {
"pathway_id": "{{PATHWAY_ID}}",
"baseline_info": [
{
"data_point_definition_id": "{{DATA_POINT_DEFINITION_ID}}",
"value": "{{VALUE}}"
}
]
}
}
To update the baseline info data points in an existing pathway, the request needs the following, provided within an input object:
Field | Required | Description | Type |
---|---|---|---|
pathway_id | Yes | the id of the pathway | string |
baseline_info | Yes | the list of data point values for baseline info data points | Array of baseline info input |
baseline_info.data_point_definition_id | Yes, for each item | the data point definition identifier | string |
baseline_info.value | Yes, for each item | that data point value | string |
Given data point values are polymorphic, the value for a data point should always be sent as a string. Values are validated and deserialized on the Awell side and we will throw an error if a value does not match the corresponding data point value type.
In table below you can find an overview of all baseline data point types and the value type you should be sending to the Awell API.
Data point value type | Value type to send | Examples |
---|---|---|
date | ISO8601 string | "2023-01-01" |
number | string | "10" |
string | string | "Awell is great" |