Back to InsightlyAdds A Record
If you have trouble with creating a record, try creating records via the web interface, and then access those records via the API. This way you can see examples of the fields and sub-elements attached to the record. A common source of problems during write/update request is caused when users omit required fields, or insert invalid data in a field (e.g. reference a CATEGORY_ID that does not exist in the user's Insightly instance.
Input
type: object
properties:
parameters:
type: object
properties:
objectName:
type: string
description: The object name
fieldValues:
title: CustomObjectsRecords
required:
- RECORD_NAME
type: object
properties:
RECORD_NAME:
format: string
maxLength: 0
type: string
readOnly: false
OWNER_USER_ID:
format: int32
maxLength: 0
type: integer
readOnly: false
VISIBLE_TO:
format: string
maxLength: 11
type: string
readOnly: false
VISIBLE_TEAM_ID:
format: int64
maxLength: 0
type: integer
readOnly: false
CUSTOMFIELDS:
type: array
items:
title: CustomField
type: object
properties:
FIELD_NAME:
type: string
FIELD_VALUE:
type: object
description: The record to add (just include the JSON object as the request body)
required:
- objectName
- fieldValues
title: Parameters