Skip to main content

Update User

This functionality allows you to change your first and last name the way you would if you were using the Gigapipe UI. It requires you to provide the application with the new first and last name.

Change your user info

Provide the API with both first and last name to get your user updated.

curl -X 'PATCH' \
'https://api.gigapipe.com/v1/users' \
-H 'accept: application/json' \
-H 'Authorization: Bearer <your_access_token>' \
-H 'Content-Type: application/json' \
-d '{
"first_name": "<your_new_first_name>",
"last_name": "<your_new_last_name>"
}'
  # Payload response ::Dictionary
{
"access_token": "<your_access_token>",
"refresh_token": "<your_refresh_token",
"user": {
"first_name": "John",
"last_name": "Doe",
"organization": {
"name": "Lamborgini",
"slug": "lamborgini",
"has_card_details": true
},
"verified": true,
"email": "john-doe@lamborgini.com",
"is_deleting_account": false,
"role": {
"name": "Owner"
}
},
"expires": "2022-02-28T11:37:04.978552"
}

The user payload

Attributes


first_name  ::String

Your first name (the want you want to have)


last_name  ::String

Your last name (the want oyu want to have)


The user response

Attributes


access_token  ::String

The access token you need to make calls to the API


refresh_token  ::String

Your refresh token


user  ::User

The gigapipe user object


expires  ::Datetime

The token expiration time