# Update WhatsApp Business profile

> Update the WhatsApp Business profile for a sender. The sender must have a WhatsApp Business Account connected.

`PATCH https://api.zavu.dev/v1/senders/{senderId}/profile`

Update the WhatsApp Business profile for a sender. The sender must have a WhatsApp Business Account connected.

## Parameters

- `senderId` (path, string, required)

## Body

- `about` (string): Short description of the business (max 139 characters).
- `address` (string): Physical address of the business (max 256 characters).
- `description` (string): Extended description of the business (max 512 characters).
- `email` (string<email>): Business email address.
- `websites` (string<uri>[]): Business website URLs (maximum 2).
- `vertical` (string): Business category for WhatsApp Business profile. One of: `UNDEFINED`, `OTHER`, `AUTO`, `BEAUTY`, `APPAREL`, `EDU`, `ENTERTAIN`, `EVENT_PLAN`, `FINANCE`, `GROCERY`, `GOVT`, `HOTEL`, `HEALTH`, `NONPROFIT`, `PROF_SERVICES`, `RETAIL`, `TRAVEL`, `RESTAURANT`, `NOT_A_BIZ`.

## Responses

### 200

Profile updated successfully.

- `success` (boolean, required)
- `profile` (object, required): WhatsApp Business profile information.
  - `about` (string): Short description of the business (max 139 characters).
  - `address` (string): Physical address of the business (max 256 characters).
  - `description` (string): Extended description of the business (max 512 characters).
  - `email` (string<email>): Business email address.
  - `profilePictureUrl` (string<uri>): URL of the business profile picture.
  - `websites` (string<uri>[]): Business website URLs (maximum 2).
  - `vertical` (string): Business category for WhatsApp Business profile. One of: `UNDEFINED`, `OTHER`, `AUTO`, `BEAUTY`, `APPAREL`, `EDU`, `ENTERTAIN`, `EVENT_PLAN`, `FINANCE`, `GROCERY`, `GOVT`, `HOTEL`, `HEALTH`, `NONPROFIT`, `PROF_SERVICES`, `RETAIL`, `TRAVEL`, `RESTAURANT`, `NOT_A_BIZ`.

### 400

Invalid request or sender does not have a WhatsApp Business Account connected.

- `code` (string, required)
- `message` (string, required)
- `details` (object)

### 401

Unauthorized.

- `code` (string, required)
- `message` (string, required)
- `details` (object)

### 404

Sender not found.

- `code` (string, required)
- `message` (string, required)
- `details` (object)

### 502

WhatsApp (Meta) refused or failed the call, for example an expired access token or a field Meta rejected. `message` carries Meta's reason. Nothing was changed on Zavu's side; fix the cause and retry.

- `code` (string, required)
- `message` (string, required)
- `details` (object)

## Example

```bash
curl -X PATCH "https://api.zavu.dev/v1/senders/sender_abc123/profile" \
  -H "Authorization: Bearer $ZAVUDEV_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "about": "Succulent specialists!",
  "description": "We specialize in providing high-quality succulents.",
  "email": "contact@example.com",
  "websites": [
    "https://www.example.com"
  ],
  "vertical": "RETAIL"
}'
```

```typescript
import Zavudev from "@zavudev/sdk";

const zavu = new Zavudev({ apiKey: process.env.ZAVUDEV_API_KEY });

const result = await zavu.senders.updateProfile("sender_abc123", {
  about: "Succulent specialists!",
  description: "We specialize in providing high-quality succulents.",
  email: "contact@example.com",
  websites: [
    "https://www.example.com",
  ],
  vertical: "RETAIL",
});

console.log(result);
```
