Home > For Developers > Smart Object Data APIs > Update or Add in a Single Record Call

Update or Add in a Single Record Call

During Integration with External Systems, it is often useful to have an Upsert call, that will create a record if it already doesn't exist else it will update.

Prerequisites

Matching

The incoming data will be matched against existing record using Record Key  specified in Smart Object settings. This call will never update a record if the record key is specified to be 'Unique Random ID'.

Details

Method: POST

URLhttps://us.pulpstream.com/vfr/api/smartObjectRecords/{smartObjectId}/upsert

 

Headers:

tenantId: {tenantId}

apiKey: {apiKey}

Content-Type: application/json

apiUserName: Optional. Specify internal username from the User definition to submit the data on behalf of that user.

Sample PayLoad:

{"Name":"Tesla",
 "Contact_Phone":"",
 "Address":"",
 "City":""}

}

where the payload contains field names and data values.
Fields contained in the payload replace fields in the target record.
Fields that are not present in the payload do not affect the target record.

Data Formats