Newer Version Available

This content describes an older version of this product. View Latest

Create or Clone a Record

Create or clone a record.

Usage

To create or clone a record, pass a Record Input request body to the POST /ui-api/records resource. To create the request body, you must know the fields, required fields, and default values for that object.

To find the required fields, fields, and default values, make a request to one of these resources:

The response from these resources includes Object Info, including all fields and a required property for each field.

To find the values for lookup fields, picklist fields, and multi-select picklist fields, use these resources:

As of API version 43.0, if you pass read-only fields in a request body, the response is an Error with Output.

Resource
Available Version
41.0
HTTP Method
POST
Example
To provide an address, provide the individual fields as separate inputs. The compound field is only available in the response.
Request body
Record Input
Response Body
Record