---
title: "Update account information"
method: PUT
path: "/accounts/update"
tags: ["Accounts"]
---

# Update account information

`PUT /accounts/update`

Update various fields of an account including name, domain, industry, and associated phone book details

## Request body

- object
  - `entity_type_id` integer, required — Type identifier for the entity
  - `entity_base_id` integer, required — Unique identifier of the account to update
  - `account_name` string — New name for the account (updates phone_book.first_name)
  - `domain` string — Company domain
  - `industry` string — Industry sector of the company
  - `comments` string — Additional comments about the account (updates phone_book.description)
  - `no_of_employees` integer — Number of employees in the company
  - `hq_location` string — Headquarters location
  - `email` string, email — Contact email address (updates phone_book.email)

## Response `200`

Account updated successfully

- object
  - `message` 'Account updated successfully' | 'No updates were made'
  - `account` object
    - `id` integer
    - `name` string
    - `comments` string
    - `domain` string
    - `industry` string
    - `no_of_employees` integer
    - `headquarters` string
    - `last_updated_at` string, date-time

## Other responses

- `400` — Bad Request - Invalid or missing parameters
- `404` — Account not found
- `500` — Server error

---

[API](https://skmtc.dev/supabase/apis/dalil-oauth-resource-api.md) · [All operations](https://skmtc.dev/supabase/apis/dalil-oauth-resource-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/supabase/dalil-oauth-resource-api/revisions/40a7125e0355/schema)
