Update user supplement plan
Use updateSupplementPlan
to update user supplement plan.
Required Arguments
Example
mutation {
updateSupplementPlan (
input:{
id:"U3VwcGxlbWVudFBsYW46MTY2NTc1"
name:"Suggestic updated plan"
isActive: false
visibility: true
coach:"Q29hY2g6NTA0Mw=="
startDate:"2024-06-01"
nutrition:"Placeholder Text"
resources:"Placeholder Text"
overview:"New Placeholder Text"
exercise:"New Placeholder Text"
updateProtocols:{protocolId:"UHJvdG9jb2w6MzA1NTc0" isActive:true directionsOfUse:{quantity:10 timeOfDay:AT_WAKING} wednesday:true monday: true}
setSupplements:[{
supplementId:"U3VwcGxlbWVudDo3OTEwNmQ1OC0zOTliLTRmODUtYjM4Yi1mNWM4NTFjMjViM2I="
length:30
directionsOfUse:{quantity:10 timeOfDay:WITH_BREAKFAST}
saturday:true
},{
supplementId:"U3VwcGxlbWVudDpjYzI1YzZkNC0wNzYwLTRmNzItYTU4MS0xYmJhZmViYWY3Zjg="
length:10
directionsOfUse:{quantity:5 timeOfDay:WITH_DINNER}
monday: true
wednesday: true
friday: false
}],
}
){
success
message
}
}
{
"data": {
"updateSupplementPlan": {
"success": true,
"message": "Supplement plan updated"
}
}
}
Last updated