Create field
Create a field in a collection.
POST https://api.cogfy.com/collections/:collectionId/fields
Path params
collectionId: The ID of the collection that the field will be created in.
Request body
type: The type of the field.name: The name of the field.
Example JSON request
{
"type": "text",
"name": "Field name"
}
Response body
id: The unique identifier of the created field.
Example JSON response
{
"id": "a42666d9-98b1-43d4-a997-4e0543a3d824"
}