Updating User Defined Table

Data Update Methods

Upsert a Single User Defined Table Value

  • Description: Inserts or updates a single value in a UDT using the upsert function, requiring table, mainKey, and secondaryKey to identify the record, and value for the data.

  • Syntax:

    pepperi.api.userDefinedTables.upsert({
      table: "<tableName>",
      mainKey: "<mainKey>",
      secondaryKey: "<secondaryKey>",
      value: "<value>"
    });
  • Example:

    pepperi.api.userDefinedTables.upsert({
      table: "myTable",
      mainKey: "Item123",
      secondaryKey: "Category124",
      value: "my value"
    });
  • Returns:

    {
        "success": true
    }

Last updated

Was this helpful?