# Update Customer

This API endpoint allows you to update customer information by providing the customer's unique identifier.

**Endpoint URL:** `https://api.v7.botpenguin.com/customer/{customer_id}`

**HTTP Method:** PUT

#### Path Parameters

* `customer_id` (string, required): The unique identifier of the customer to be updated.

#### Request Headers

* `Authorization`: A bearer token is required for authentication. Replace `[MASKED_TOKEN]` with your valid API token. This token is used to authenticate and authorize the request.
* `Content-Type`: Set to `application/json` to indicate that the request body is in JSON format.

#### Request Body

The request body should be a JSON object containing the updated customer information. Ensure that you provide the necessary fields to update.

Sample Request:

```bash
curl 'https://api.v7.botpenguin.com/customer/{customer_id}' \
  -X 'PUT' \
  -H 'Authorization: Bearer [MASKED_TOKEN]' \
  -H 'Content-Type: application/json' \
  -H 'authtype: Key' \
  --data-raw '{[MASKED_DATA]}' \
  --compressed
```

Replace `{customer_id}` with the unique identifier of the customer you want to update, `[MASKED_TOKEN]` with your valid API token, and `[MASKED_DATA]` with the updated customer information. Please note that sensitive data such as API tokens and customer details should be kept confidential.

#### Response

The API will respond with the updated customer information or an error message if the request fails. Please refer to the API documentation for response details.

### :question: Got any questions?

If you have any questions, you can look into our repository of FAQs, most likely, you will find your answer here, If not, write us at <contact@botpenguin.com>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://partners.botpenguin.com/api-documentation/partner-api-documentation/update-customer.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
