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, events, activities, crew, collaborators, eventCrew or eventCollaborators (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, and for activities, crew, collaborators, eventCrew and eventCollaborators, which take none. An attribute missing here cannot be imported. The permission belongs to the import target: * at the event for proposalLineItems (event token), Activity.Manage at the event for activities (event token), * at the organization for events (organization token), Crew.Manage at the organization for crew (organization token), Collaborator.Manage at the organization for collaborators (organization token), Crew.Manage at the event for eventCrew (event token), Collaborator.Manage at the event for eventCollaborators (event 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