Module: data_sheet
Copyright 2020 Parsable, Inc
API address: /api/data_sheets
Constants
Constant Type Value
MAX_DATA_SHEET_SETS
i32
50000
Active sets per team
MAX_DATA_SHEET_DEFINITIONS
i32
10000
Active definitions per data sheet set
MAX_DATA_SHEETS
i32
50000
Active sheets per team
Enumerations
Enumeration: DefinitionType
Enumeration: DataSheetSetOrderBy
TITLE
1
LAST_UPDATED_AT
2
CREATED_AT
3
Enumeration: DataSheetOrderBy
Data structures
Union: DataSheetValue
Key Field Type Description Requiredness Default value
1 nullValue string
Representing the default empty holder, can be customized
default
2 text string
default
3 number common.PreciseNumber
default
Struct: DataSheetDefinition
Union: DataSheetDefinitionAction
Struct: DataSheet
Key Field Type Description Requiredness Default value
1 id common.UUID
default
2 createdAt common.TimeInSecs
default
3 updatedAt common.TimeInSecs
default
4 archivedAt common.TimeInSecs
default
5 name string
default
6 description string
default
7 lastAuthor user.UserModular
Includes editing any content under the sheet
optional
8 idValues map<common.UUID
, DataSheetValue
>
Map of definition id -> data sheet value
Any missing definition ids are treated as having a "null" value
Values are automatically removed if corresponding definitions are archived
optional
Struct: DataSheetSetOrder
Key Field Type Description Requiredness Default value
1 field DataSheetSetOrderBy
default
2 asc bool
default true
Struct: DataSheetSetOptions
Key Field Type Description Requiredness Default value
1 showArchived bool
Default to active sets only
optional
2 onlyArchived bool
Show only the archived sets
optional
3 lastUpdatedAt common.TimeInSecs
Only get sets modified after this timestamp
optional
4 title string
Search for sets that contain this title
optional
20 pageReq common.PageReq
optional
30 order list<DataSheetSetOrder
>
Default is by most recent edit
optional
Struct: DataSheetSetSelectOptions
Key Field Type Description Requiredness Default value
1 includeDefinitions bool
Includes active definition list
default true
2 includeSheets bool
Includes active data sheet list
default true
3 sheetPageSize i32
Includes only the first X sheets, 0 = all
default 0
4 includeActiveSheetCount bool
Includes active sheet count
default true
5 includeArchivedSheetCount bool
Includes archived sheet count
default true
6 definitionTitle string
Includes only definitions that contain this title
optional
7 definitionTypes list<DefinitionType
>
Includes only these definition types, if not set, includes all
optional
8 includeAttributes bool
default
Struct: DataSheetSetQueryResult
Struct: DataSheetOrder
Key Field Type Description Requiredness Default value
1 field DataSheetOrderBy
default
2 asc bool
default true
Struct: DataSheetOptions
Key Field Type Description Requiredness Default value
1 showArchived bool
Default to active sheets only
optional
2 onlyArchived bool
Show only the archived sheets
optional
3 title string
Search for sheets that contain this title
optional
20 pageReq common.PageReq
optional
30 order list<DataSheetOrder
>
Default is by most recent edit
optional
Struct: DataSheetQueryResult
Services
Service: DataSheetService
Function: DataSheetService.definitionOps
list<DataSheetDefinition
>
definitionOps(common.UUID
dsSetId,
list<DataSheetDefinitionAction
>
defActions)
throws common.SystemException
Add/update/move/get/archive/unarchive data sheet definitions on an existing data sheet set (subject to max limit)
position = -1 appends to the end of the current list
Positions are applied in the order of the list, final positions depend on prior updates
Returns the updated definitions in the order passed in.
Function: DataSheetService.sheetOps
list<DataSheet
>
sheetOps(common.UUID
dsSetId,
list<DataSheetAction
>
sheetActions)
throws common.SystemException
Add/update/get/archive/unarchive data sheets on an existing data sheet set (subject to max limit)
Returns the updated sheets in the order passed in.
Function: DataSheetService.updateAttribute
list<abac.AbacAttribute
>
updateAttribute(common.UUID
dataSheetId,
string
attributeId,
list<abac.AbacAttributeValue
>
values,
abac.AbacUploadBehaviour
behave)
throws common.SystemException
Update a single attribute on a data sheet
return value will always be a list with a single attribute determined by which attribute was updated
param dataSheetId: data sheet to update
param attributeId: the AttributeId of the team level attribute to be updated
param values: the new AttributeValues to associated with Attribute attributeId on data sheet dataSheetId
param behave: determine the behaviour of the endpoint, merge or clobber. Default: clobber