Properties
#
The Property object#
PropertiesProperty | Type | Info | Description |
---|---|---|---|
@context | object | Optional | JSON-LD context information. |
@id | string | Optional | Unique identifier for the object |
createdAt | string | Optional | Timestamp of object creation, expressed according to ISO 8601. |
updatedAt | string | Read only | Timestamp of object last update, expressed according to ISO 8601. |
@type | string | Mandatory | Value is "Property" |
name | string | Mandatory | Name of the Property. |
range | string | Mandatory | Property data type |
key | string | Mandatory | Property identifier |
rank | string | Optional | A LexoRank string value. |
unique | boolean | Optional | If true, duplicate values for this property will be forbidden in the application |
withIndex | boolean | Optional | If true, the property will be sortable in the application |
columnWidth | number | Optional | The column width |
Any extra field will return a bad request error.
#
Create a propertyThe key
is used to define your items data structure.
The range
must be one of the primary data types.
For example, a collection with a property having a firstName
key will have items with this structure:
On success, returns a HTTP code 201 with {"@id": "PROPERTY_ID"}
and the resource URI in the Location
header.
#
Retrieve a propertyGET https://data.datablist.com/:workspace_id/collections/:collection_id/properties/:property_id
#
Update a property#
PartialOn success, returns an empty HTTP 204 No Content.
#
Full updateOn success, returns an empty HTTP 204 No Content.
#
List all propertiesGET https://data.datablist.com/:workspace_id/collections/:collection_id/properties
#
Delete a propertyDELETE https://data.datablist.com/:workspace_id/collections/:collection_id/properties/:property_id
On success, returns an empty HTTP 204 No Content.