Create Records
Last updated
Last updated
Records of a model are created using .
It takes a mapping of fields to values, used to initialize the record. For any field which has a default value and is not set through the mapping argument, the default value will be used.
Warning
while most value types are what would be expected (integer for , a string for or ),
, and Binary
fields use string values
and use a special command protocol detailed in the documentation for the method.
POST /restapi/1.0/object/{object_name}?vals={values_for_the_object's_fields}
Request:
JSON Response:
XML Response:
Query Parameters:
Request Headers
Response Headers
Status Codes
vals – values for the object’s fields, as a dictionary:: {'field_name': field_value, ...}
see for details.
– the response content type depends on Accept header
– The OAuth protocol parameters to authenticate.
– this depends on Accept header of the request
– no error
– there’s no resource
– authentication failed
– if any error raise