Adding Objects to Standard Resources
Data Addition Methods
Adding a Single Object
pepperi.app.<resource name>.add({ type: { InternalID: <id>, Name: "<name>" }, references: { account: { UUID: "<UUID>" } }, // Optional: originAccount, catalog object: { <field1>: <value1>, <field2>: <value2> } });pepperi.app.transactions.add({ type: { InternalID: 1234, Name: "Sales Order" }, references: { account: { UUID: "acc123e-74ac-4041-8bb1-a76a3b5e78d8" } }, object: { GrandTotal: 567.5, TSASubject: "This Object was created with the client api" } });{ "success": true, "id": "6e2803cd-b656-4d4f-8d21-f7cee7167350", "status": "added", "message": "" }
Last updated