API Reference

Types

Types

findTypes

Find types based on their name

Parameters

ParameterTypeDescription
LoginLoginObjectStandard login object with username, password, and application key
NameStringString to search for. If empty, all types will be returned
IgnoreAliasBooleanIf the search should ignore types with aliases

Returns

ReturnTypeDescription
TypesType[]Array of all types (name and external id) matching the search criteria

Example

Request

<tns:name></tns:name>
<tns:ignorealias>false</tns:ignorealias>

getTypes

Get types by external id

Parameters

ParameterTypeDescription
LoginLoginObjectStandard login object with username, password, and application key
TypesString[]Array of external ids for the types to get
IgnoreAliasBooleanIf the search should ignore types with aliases

Returns

ReturnTypeDescription
TypesType[]Array of all types matching the external ids provided

Example

Request

<tns:types>
  <type>root</type>
</tns:types>
<tns:ignorealias>false</tns:ignorealias>

getTypeDefs

Get type defintions by external id

Parameters

ParameterTypeDescription
LoginLoginObjectStandard login object with username, password, and application key
TypesString[]Array of external ids for the types to get definitions for
IgnoreAliasBooleanIf the search should ignore types with aliases

Returns

ReturnTypeDescription
TypesTypeDef[]Array of all type definitions (including sub types) matching the external ids provided

Example

Request

<tns:types>
  <type>root</type>
</tns:types>
<tns:ignorealias>false</tns:ignorealias>

getSpecialTypes

Get core types based on classification (root, reservable, person, location)

Parameters

ParameterTypeDescription
LoginLoginObjectStandard login object with username, password, and application key

Returns

ReturnTypeDescription
RootTypeString[]The root type from which all other types inherit
ReservableTypesString[]Types that can be part of a reservation
PersonTypesString[]Types representing a person
LocationTypesString[]Types representing a location

Example

Request

-