GraphQL mutation removeUserRolesFromUser
How-to Guide
Author:
Randy Chan
Changed on:
14 May 2024
Key Points
- Quick Example of how to use GraphQL mutation
`removeUserRolesFromUser`
Steps
GraphQL mutation removeUserRolesFromUser
1POST: {{fluentApiHost}}/graphql
2
3
4
5#QUERY:
6
7mutation{
8 removeUserRolesFromUser(input:{
9 user:{username:"myUsername"}
10 roles:[
11 {role:{name:"ADMIN"} contexts:{contextType:"ACCOUNT" contextId:"FC_FASHION"}} ,
12 {role:{name:"ADMIN"} contexts:{contextType:"RETAILER" contextId:"5000212"}} ,
13 {role:{name:"ADMIN"} contexts:{contextType:"AGENT" contextId:"123"}}
14 ]
15 })
16 {
17 status
18 }
19}
20
Language: graphqlschema
Name: GraphQL mutation removeUserRolesFromUser
Description:
GraphQL mutation removeUserRolesFromUser