Download information about information model: GET /Types
VERB | Header | Resource/Id/Selector | Description | Parameters | Return data |
GET | Ticket | /Types | Lists available types | (Start (int))
(Max (int)) |
Totalcount (int)
Data (array): Namespace (string) Name (string) If no types are available then an empty array is returned. |
GET |
Ticket |
/Types/{id} |
Gets info for a type | Id (string)
(VersionId (string)) |
Namespace (string)
Name (string) |
GET |
Ticket |
/Types/{id}/Fields |
Gets all fields for a type | Id (string)
(VersionId (string)) |
Array of fields:
Name (string) The field name Datatype (string) The datatype of the field (see API index) Length (number) The maxlength of the field Mandatory (bool) True if the field is required FieldTypeNamespace (string) (optional) Defines the type of the field if the field is a type reference field IsTypeReference (bool) True if the field is a type reference field |
GET |
Ticket |
/Types/{id}/Templates |
Gets a list of all templates for the type | Id (string)
(VersionId (string)) |
Totalcount (int)
Data (array): Id (string) ReferenceId (string) Name (string) Description (string) ObjectClass (string) TypeNamespace (string) CreatedDate (date) UpdatedDate (date) Properties (array) The properties array can contain information on price and category for a template. If no templates are available then an empty array is returned. |
GET |
Ticket |
/Types/{id}/TypeInstances |
Gets the value set (TypeInstances) for a type. Note that most types do not have a value set. Try /Types/Kategori/TypeInstances for a type that has. | Id (string)
(VersionId (string)) |
Array of TypeInstance objects:
Id (string) The unique identifier for the TypeInstance ParentId (string) -1 if the TypeInstance has no parent, otherwise the ParentId specifies a parent-child relation KeyValue (string) The language-neutral value for the type instance Name (string) The language-specific value for the type instance Description (string) The language-specific value for the type instance |