create()
Description
Create an object in the database
Request
Parameters
Field | Required | Data Type | Description |
---|---|---|---|
body | Object | Object to create in the database.
Note: it must follow the database schema. Otherwise, | |
options | Object | Object containing additional request parameters |
Options Object Parameters
Field | Required | Data Type | Description |
---|---|---|---|
skipFileExceptions | boolean | If set to |
Examples
Create
Create and skip file upload errors
Response
Parameters
Field | Data Type | Description |
---|---|---|
data | Object | Object containing all database item values |
meta | Object | Object containing metadata |
info | Object | Object containing operation information |
Metadata Parameters
Field | Data Type | Description |
---|---|---|
total | number | Total number of items in with the given UID Always equal to 1 |
page | number | Current page number Always equal to 1 |
limit | number | Current limit per page Always equal to 1 |
includesCount | number | Number of additional requests for the includes operations Always equal to 0 |
Info Parameters
Field | Data Type | Description |
---|---|---|
action | string | Operation name |
webhooksTriggered | number | Number of webhooks triggered by the operation |
Example
This is an example response to the Create and skip file upload errors request example above with an imaginary error during file upload. As you can see, the object is still created, but the image
property is set to an empty string.
Last updated