Accounts

Update the current account

PATCH
Update the current account

Request

This endpoint expects an object.
defaultAppId
stringRequired
App ID

Response

This endpoint returns an object
data
object
An account
PATCH
$curl -X PATCH https://api.x.flatfile.com/v1/accounts/current \
> -H "Authorization: Bearer <token>" \
> -H "Content-Type: application/json" \
> -d '{
> "defaultAppId": "us_app_YOUR_ID"
>}'
Response
1{
2 "data": {
3 "id": "us_acc_YOUR_ID",
4 "name": "MyAccountName",
5 "metadata": {},
6 "createdAt": "2023-10-30T16:59:45.735Z",
7 "updatedAt": "2023-10-30T16:59:45.735Z"
8 }
9}