Create Data
POST {{host}}/api/rest/v4/data/entrydata/rows/{{entryTypeId}}
Authorization: Bearer {{token}}
Content-Type: application/json
Params
Bulk Create allows an array of up to 1000 entries
Name | Parameter Type | Data Type | Values | Description |
---|---|---|---|---|
entryTypeId | Path | string or int | company or 2011 | the unique identifier of the entry type |
Body | array of entries | Any array of entries to update, limit to array size of no more than 1000 |
Additional Requirements
- EntryId is required and should be a negative number like -1.
- EntryIds can be used to link entries withing a batch to each other as references.
- Example: when creating two companies you are able to create parent/child relationships within the same batch.
- When not attempting to use a reference as above, using the same negative entryId is accepted.
- When building requests, all choice values and references must utilize the id rather than a name.
Sample Requests and Responses
Body with 2 entries to be created. In this case, creating an address record with Address Type equal to "Branch" and reference to Company Name "Acme". In both cases, the id of the choice value or reference is passed in.
[
{
"EntryId": -1,
"street": "101 Test Street",
"company" : 3713810,
"AddressType": 1782017
},
{
"EntryId": -1,
"street": "102 Test Street",
"company" : 3713810,
"AddressType": 1782017
}
]
Response with statusCode 200.
If you are using Postman, you may see reference id's with a decimal. You may ignore that.
[
{
"EntryId": 18604301,
"Street": "101 Test Street",
"Company": 3713810,
"AddressType": 1782017
},
{
"EntryId": 18604302,
"Street": "102 Test Street",
"Company": 3713810,
"AddressType": 1782017
}
]