Update record
Updates a record in a collection. Field types supported for update are:
- Boolean
 - Date
 - JSON
 - Number
 - Select
 - Text
 
PATCH https://api.cogfy.com/collections/:collectionId/records/:recordId
Path params
collectionId: The ID of the collection that has the record to be updated.recordId: The ID of the record to be updated.
Request body
properties: An object with the field ID as the key and the value as the field value.
Example JSON request
{
  "properties": {
    "86bdfa41-7088-4947-ab98-264992250430": {
      "type": "boolean",
      "boolean": {
        "value": "<boolean>"
      }
    },
    "2420ee45-50b5-4684-b116-a108faf4f914": {
      "type": "date",
      "date": {
        "value": "<date> | null"
      }
    },
    "a42666d9-98b1-43d4-a997-4e0543a3d824": {
      "type": "json",
      "json": {
        "value": "<object> | null"
      }
    },
    "a1bab401-4644-439b-8764-971db186f845": {
      "type": "number",
      "number": {
        "value": "<number> | null"
      }
    },
    "b598a97f-b198-45e0-86fb-f1fff0ce39b5": {
      "type": "select",
      "select": {
        "value": [
          { "id": "<string>" },
          { "id": "<string>" }
        ]
      }
    },
    "eb070e5e-8dce-42a4-89d1-200bab77a97d": {
      "type": "text",
      "text": {
        "value": "<string> | null"
      }
    },
  }
}