Delete a User Recipe

Use the deleteUserRecipe mutation to delete a specific recipe created by a user. Use a b64 id to delete the recipe. Note that only the owner of the recipe can delete it.

Required Argument

Available Fields

The following field will be part of the response.

Example

GraphQL Example

mutation deleteMyRecipe {
  deleteMyRecipe(id: "VXNlclJlY2lwZTphNXNKWVh3QlY0Q1V6aWdSNkhaeg==") {
    success
    message
  }
}

curl Example

curl -XPOST 'https://production.suggestic.com/graphql' \
  -H 'Authorization: Bearer <User-JWT>' \
  -H 'Content-Type: application/json' \
--data-raw '{"query":"mutation { deleteMyRecipe (id:\"VXNlclJlY2lwZTpCbFVKWVh3QkZ4bmZEbThWempFVA==\") { success message } }"}'

Last updated