PUT
/
api
/
external
/
v2
/
users
/
{id}
Update an existing user
curl --request PUT \
  --url https://app.pennylane.com/api/external/v2/users/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "user": {
    "email": "[email protected]"
  }
}'
{
  "user": {
    "id": 123,
    "email": "[email protected]",
    "created_at": "2021-01-01T00:00:00Z",
    "updated_at": "2021-01-01T00:00:00Z"
  }
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

id
string
required

Body

application/json
user
object
required

The user information to create

Response

User was updated

user
object
required

The updated user