Update User's Program
Mutation used to set the current user to a desired program
Use the updateUserProgram mutation to update the information of the user's program.
A list of all programs can be obtained using the program query.
Required Argument
Argument
Type
Description
Examples
GraphQL Example
mutation {
updateUserProgram(
programId: "UHJvZ3JhbTowYWQ0ZTc3YS04ZWRhLTRlOWItYWM4ZS0xYzg0YTJlOGJiNDI="
) {
success
message
}
}{
"data": {
"updateUserProgram": {
"success": true,
"message": "User's program was successfully updated"
}
}
}cURL Example (with API Token)
cURL Example (with Bearer Token)
Last updated
Was this helpful?