Update Profile
This API is to update user's profile
GRAPHQL
Headers
| Fields | Type | Description | Example | Data Management |
|---|---|---|---|---|
| URL | string | {base_url}/users | ||
| GRAPHQL | string | MUTATION | ||
| content-type | string | JSON | application/json |
Request
mutation {
update_user_profile(name:"sachin"){
message
}
}
Request Parameters
| Fields | Type | Description | Required |
|---|---|---|---|
| name | string | name of the user | ✔ |
Success
{
"data": {
"update_user_profile": {
"message": "Profile details updated"
}
}
}
Error
{
"errors": [
{
"message": "Unauthorized",
"locations": [
{
"line": 2,
"column": 3
}
],
"path": ["update_user_profile"]
}
],
"data": {
"update_user_profile": null
}
}