Update Profile

This API is to update user's profile


GRAPHQL


Headers

FieldsTypeDescriptionExampleData Management
URLstring{base_url}/users
GRAPHQLstringMUTATION
content-typestringJSONapplication/json

Request

mutation {
  update_user_profile(name:"sachin"){
    message
  }
}


Request Parameters

FieldsTypeDescriptionRequired
namestringname 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
    }
}