Create Collection Item (lawmatics_create-collection-item)
Create a collection item in Lawmatics: one row of data conforming to a Collection's schema, attached to a matter (the only record type the API accepts). Optionally set the row's cell values via customFieldValues.
Tool Input
collectionIdstringrequired— ID of the parent Collection whose schema this item conforms to
matterIdstringrequired— ID of the matter to attach this item to (matters are the only record type the Lawmatics API accepts for collection items)
customFieldValuesarray— Cell values to set on the item, one per Collection custom field
[]object
idstringnumberrequired— ID of the Collection's custom field to set (the create example sends a number, the update example a string; either type is accepted here)
valuestringnumberbooleannullrequired— Cell value to set (matches the field's type); pass null to clear the field. Dates are written as ISO 8601 strings (e.g. '1999-03-31')
Tool Output
idstringrequired— Unique ID of the created collection item
collectionIdstringrequired— ID of the parent Collection this item belongs to, as a numeric string
ownerTypestringrequired— Type of the record this item is attached to as returned by the API — always "Prospect" (a matter) today; the live API rejects other record types on create
ownerIdstringrequired— ID of the record this item is attached to, as a numeric string
customFieldValuesarrayrequired— Cell values stored on this item, one per Collection custom field; empty if none
[]object
idstringrequired— ID of this stored cell value row, as a numeric string
customFieldIdstringrequired— ID of the Collection custom field definition this value belongs to, as a numeric string
namestringnullrequired— Custom field display name; null if not reported
fieldTypestringnullrequired— Custom field data type (e.g. text, date, select); null if not reported
valueanyrequired— Raw stored cell value; type varies by fieldType; null if unset
formattedValueanyrequired— Display-formatted cell value; type varies by fieldType; null if not reported
createdAtstringrequired— When the item was created, as an ISO 8601 timestamp
updatedAtstringrequired— When the item was last updated, as an ISO 8601 timestamp
Related Tools