PATCH
/
v1
/
users
/
me
Update Current User
curl --request PATCH \
  --url https://api.tradearies.dev/v1/users/me \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "plaid_status": "PENDING",
  "account_application": {
    "submit": true
  }
}'
{
  "id": 123,
  "email": "<string>",
  "country": "<string>",
  "plaid_status": "<string>",
  "account_application": {
    "id": 123,
    "status": "CREATED",
    "can_submit": true,
    "missing_fields": [
      "<string>"
    ],
    "plaid_link_token": "<string>"
  },
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z"
}
Account Application Updates:All user account_application data in the request will be merged with existing data. Partial updates to nested fields are supported.After each update, the remaining missing_fields for the application will be returned. Once all missing fields are completed, can_submit will be set to true.To finalize and submit the application, set submit to true in the request body. After submission, the plaid_link_token for identity verification will be available.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Response

200
application/json

User updated successfully

The response is of type object.