Module: data_sheet
Copyright 2020 Parsable, Inc
API address: /api/data_sheets
Constants
Constant Type Value
MAX_DATA_SHEET_SETSi3250000Active sets per team
MAX_DATA_SHEET_DEFINITIONSi3210000Active definitions per data sheet set
MAX_DATA_SHEETSi3250000Active sheets per team
Enumerations
Enumeration: DefinitionType
Enumeration: DataSheetSetOrderBy
TITLE1
LAST_UPDATED_AT2
CREATED_AT3
Enumeration: DataSheetOrderBy
Data structures
Union: DataSheetValue
Key Field Type Description Requiredness Default value
1 nullValue stringRepresenting the default empty holder, can be customized
default
2 text stringdefault
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 stringdefault
6 description stringdefault
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 booldefault true
Struct: DataSheetSetOptions
Key Field Type Description Requiredness Default value
1 showArchived boolDefault to active sets only
optional
2 onlyArchived boolShow only the archived sets
optional
3 lastUpdatedAt common.TimeInSecs Only get sets modified after this timestamp
optional
4 title stringSearch 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 boolIncludes active definition list
default true
2 includeSheets boolIncludes active data sheet list
default true
3 sheetPageSize i32Includes only the first X sheets, 0 = all
default 0
4 includeActiveSheetCount boolIncludes active sheet count
default true
5 includeArchivedSheetCount boolIncludes archived sheet count
default true
6 definitionTitle stringIncludes only definitions that contain this title
optional
7 definitionTypes list<DefinitionType >Includes only these definition types, if not set, includes all
optional
8 includeAttributes booldefault
Struct: DataSheetSetQueryResult
Struct: DataSheetOrder
Key Field Type Description Requiredness Default value
1 field DataSheetOrderBy default
2 asc booldefault true
Struct: DataSheetOptions
Key Field Type Description Requiredness Default value
1 showArchived boolDefault to active sheets only
optional
2 onlyArchived boolShow only the archived sheets
optional
3 title stringSearch 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