PUT
/
v2
/
accounts
/
{account_id}
Update Account
curl --request PUT \
  --url https://api.ahasend.com/v2/accounts/{account_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "Updated Company Name",
  "website": "https://example.com",
  "track_opens": true
}'
{
  "object": "account",
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "name": "<string>",
  "website": "<string>",
  "about": "<string>",
  "track_opens": true,
  "track_clicks": true,
  "reject_bad_recipients": true,
  "reject_mistyped_recipients": true,
  "message_metadata_retention": 123,
  "message_data_retention": 123
}

Authorizations

Authorization
string
header
required

API key for authentication

Path Parameters

account_id
string<uuid>
required

Account ID

Body

application/json

Response

200
application/json

Account updated successfully

The response is of type object.