List fields
Gets the list of fields in a collection.
GET https://api.cogfy.com/collections/:collectionId/fields
Path params
collectionId
: The ID of the collection to retrieve records from.
Response body
data
: Array of objects representing fieldsid
: The ID of the field.name
: The name of the field.type
: The type of the field.operation
: The operation performed by the field
Example JSON response
{
"data": [
{
"id": "1cd13c46-c053-4bc6-94ee-28327fff5886",
"name": "Field name",
"type": "text",
"operation": null
},
{
"id": "1dc87a75-551b-4d0b-86c0-3d153e7f8127",
"name": "Field prompt",
"type": "text",
"operation": "prompt"
}
]
}