JS Client API
Search…
⌃K

Updating Standard resources

Update multiple objects by unique keys

Returns an updated list
Only UUID is currently supported as a key
Supported resources: accounts, transactions, activities, transactionLines.
from CPI 15.85 supports also : contacts.
Example:
pepperi.api.activities.update(
{objects: [
{UUID: "tgfb523e-74ac-4041-8bb1-a76a3b5e78f5" , TSAMyComment: "ABC" },
{UUID: "aefb523e-74ac-4041-8bb1-a76a3b5e78h6" , TSAMyComment: "DEF"}
]})
Returns a response object with the list of updated objects as following:
{
success: true,
result:
[
{id:"tgfb523e-74ac-4041-8bb1-a76a3b5e78f5",messsage:"",status:"updated"},
{id:"aefb523e-74ac-4041-8bb1-a76a3b5e78h6",messsage:"",status:"updated"}
]
}