---
title: "Update the social account"
method: PATCH
path: "/accounts/{accountId}"
tags: ["Accounts"]
---

# Update the social account

`PATCH /accounts/{accountId}`

## Request

- Base URL: `https://socialbu.com/api/v1`
- URL: `https://socialbu.com/api/v1/accounts/{accountId}`
- Auth: HTTP bearer

Updates the display name and optional AI context for a connected social media account. The AI context is used only as private background context for SocialBu AI features.

## Path parameters

- `accountId` integer, required

## Request body

- object
  - `name` string: New name for the connected social account.
  - `ai_context` string, nullable: Optional AI context for this account, such as brand voice, audience, products, or content goals. Send an empty string to clear it.

## Response `200`

Social account updated

- object
  - `message` string: Message indicating the social account was updated successfully.

## Other responses

- `404`: The resource not found
- `422`: The given data was invalid.

---

[API](https://skmtc.dev/socialbu/apis/socialbu-api.md) · [All operations](https://skmtc.dev/socialbu/apis/socialbu-api/llms.txt) · [OpenAPI document](https://skmtc.dev/socialbu/apis/socialbu-api/revisions/841b3ab0f671?raw)
