> For the complete documentation index, see [llms.txt](https://apidocs.pepperi.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://apidocs.pepperi.com/updating-data/updating-standard-resources.md).

# Updating Standard resources

### Overview

This guide outlines the process for updating standard resources using the Pepperi JS Client Side API. The update function allows modification of multiple objects by their unique keys, currently supporting only UUIDs.&#x20;

Supported resources include accounts, transactions, activities, and transactionLines, with contacts added from CPI 15.85.

***

### Data Update Methods

#### Update Multiple Objects by Unique Keys

* **Description:** Updates multiple objects in a specified resource using the update function, requiring UUIDs as the only supported key.
* **Supported Resources:** accounts, transactions, activities, transactionLines (plus contacts from CPI 15.85)
* **Syntax:**

  ```javascript
  pepperi.api.<resource>.update({
    objects: [
      { UUID: "<UUID>", <field1>: <value1>, <field2>: <value2> },
      { UUID: "<UUID>", <field1>: <value1>, <field2>: <value2> }
    ]
  });
  ```
* **Example:**

  ```javascript
  pepperi.api.activities.update({
    objects: [
      { UUID: "tgfb523e-74ac-4041-8bb1-a76a3b5e78f5", TSAMyComment: "ABC" },
      { UUID: "aefb523e-74ac-4041-8bb1-a76a3b5e78h6", TSAMyComment: "DEF" }
    ]
  });
  ```
* **Returns:**

  ```json
  {
    "success": true,
    "result": [
      { "id": "tgfb523e-74ac-4041-8bb1-a76a3b5e78f5", "message": "", "status": "updated" },
      { "id": "aefb523e-74ac-4041-8bb1-a76a3b5e78h6", "message": "", "status": "updated" }
    ]
  }
  ```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://apidocs.pepperi.com/updating-data/updating-standard-resources.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
