Skip to main content

Post Browser Layouts

info

All JSON array responses have been shortened for readability.

POST/<ApplicationID/collections/<CollectionID>/browserlayouts/<BrowserLayoutID>>
Endpoint Requires Authentication


warning

Browser Layouts are primarily used with the frontend interface at go.centrix.world. They can only be used with a valid collection parent.

Example
https://api.centrix.world/641c1177ebc8b2f3c195b02c/collections/641c1177ebc8b2f3c195b033/browserlayouts
Description

Insert a new browser layout for this collection. The browser layout ID is not required. Providing an ID will update/overwrite the given browser layout, excluding it will create a new one.

Layouts are created with an owner, which should be the principal entity ID that made the request. If the layouts isPublic is false, or allowPublicEditing is false, it cannot be editted by a different user.

Returns
{
"timestamp": "2023-03-23T11:24:38.081Z",
"data": {
"application": "641c1177ebc8b2f3c195b02c",
"localCollection": "641c1177ebc8b2f3c195b033",
"owner": "641c11c7ebc8b2f3c195b098",
"name": "new layout",
"isDefault": true,
"isPublic": true,
"allowPublicEditing": false,
"columns": [
{
"key": "name",
"property": "name",
"label": "Name",
"width": 50,
"propertyType": ["string"],
"propertyPath": []
},
{
"key": "notes",
"property": "notes",
"label": "Notes",
"width": 50,
"propertyType": ["string"],
"propertyPath": []
}
],
"_id": "641c36f68fde9d1d8a0e0d67",
"createdAt": "2023-03-23T11:24:38.028Z",
"updatedAt": "2023-03-23T11:24:38.028Z",
"__v": 0
}
}