Tasklist GraphQL Api Mutations

I’m have an issue trying to figure out how to issue mutations to the graph ql endpoint in tasklist.

I’ve tried issuing the following mutation

mutation{
  claimTask(taskId: "2251799813685474")
  {
    id
    name
  }
}

I get the response:

{
“errors”: [
{
“message”: “class org.springframework.security.oauth2.server.resource.authentication.JwtAuthenticationToken cannot be cast to class io.zeebe.tasklist.webapp.security.sso.TokenAuthentication (org.springframework.security.oauth2.server.resource.authentication.JwtAuthenticationToken and io.zeebe.tasklist.webapp.security.sso.TokenAuthentication are in unnamed module of loader ‘app’)”
}
],
“data”: null
}

I am using a token with tasklist permissions
“grant_type”: “client_credentials”,
“audience”: “tasklist.camunda.io

I can’t work out what’s going on. Anyone using the graphql api for mutations?

1 Like

Are you able to successfully query with this token?

yes query is working with the same token.

@Paul_Crofts Hello, how did you managed to query data with GraphQL?, im using the C# Client running Docker Local zeebe-docker-compose/operate-simple-monitor at master · camunda-community-hub/zeebe-docker-compose · GitHub

Thanks!!