Water and Hydration

Increase or decrease water intake tracked

Use the updateHydration mutation to increase or decrease the number of cups of water tracked.

Required Arguments

Argument

Type

Note

date

Date

The date when the water entries will be counted. Use the format: YYYY-MM-DD

action

Date

Add the INCREASE or DECREASE value to specify if the amount of cup of water is increasing or decreasing.

Available Fields

Field

Type

Note

success

Boolean

true: If the entry has been created successfully. Otherwise, it displays false

message

String

The message returns either if the information has been updated or not.

Example

curl -XPOST 'https://production.suggestic.com/graphql' \
  -H 'Authorization: Bearer <User-JWT>' \
  -H 'Content-Type: application/json' \
 --data-raw '{"query": "mutation { updateHydration(date:\"2020-10-13\",action: INCREASE) {success message}}}"
}'{ "Authorization": "Token ", "Suggestic-Partner":"" }

UI Example

Last updated