Set Summary Card
const url = 'https://example.com/users/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/summary-card';const options = { method: 'PUT', headers: {'Content-Type': 'application/json'}, body: '{"slugs":["example"]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://example.com/users/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/summary-card \ --header 'Content-Type: application/json' \ --data '{ "slugs": [ "example" ] }'Replace the ordered selection (the “pick your six”). Metrics dropped from the list keep their range settings but leave the card (position cleared). Creates rows for newly chosen metrics.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Request Bodyrequired
Section titled “Request Bodyrequired”Set the ordered selection (the “pick your six”). Order is significant; max six.
object
Examplegenerated
{ "slugs": [ "example" ]}Responses
Section titled “Responses”Successful Response
The card configuration: the ordered chosen metrics + the remaining candidates.
object
One metric as the “Today so far” card needs it — everything but the live value, which the
frontend already has from the /today fetch (read from value_field, or metrics[slug] when
that’s null).
object
One metric as the “Today so far” card needs it — everything but the live value, which the
frontend already has from the /today fetch (read from value_field, or metrics[slug] when
that’s null).
object
Example
{ "max_metrics": 6}Validation Error
object
object
Examplegenerated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example" } ]}