Docs

Get Schema

GET /Imports/{target}/schema

GET/Imports/{target}/schema

Lists the attributes a spreadsheet column can be mapped onto for an import target. Call it when the mapping step opens. target is proposalLineItems or events (case-insensitive). contextId is the proposal for proposalLineItems and the event type for events, whose custom attributes it adds; omit it for events to get only the built-in fields. An attribute missing here cannot be imported. The permission belongs to the import target: EventAdmin on the event for proposalLineItems (event token), OrganizationAdmin for events (organization token).

Path Parameters

FieldTypeRequiredDescription
targetstringRequired

Query Parameters

FieldTypeRequiredDescription
contextIduuidOptional

Response

FieldTypeDescription
targetstring| null
attributesGetImportSchemaResponseImportAttribute[]| null

GetImportSchemaResponseImportAttribute

FieldTypeDescription
keystring| null
labelstring| null
kindstring| null
pathstring[]| null
isRequiredboolean
isUpdatableboolean
canBeUniqueboolean
optionsGetImportSchemaResponseImportAttributeOption[]| null

GetImportSchemaResponseImportAttributeOption

FieldTypeDescription
valuestring| null
labelstring| null
descriptionstring| null