Get information about forms: GET /Templates
VERB | Header | Resource/Id/Selector | Description | Parameters | Return data | |
GET | Ticket | /Templates | Lists available templates | (Start (int))(Max (int)) |
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 | /Templates/{Id} | Gets info for a specific template | Id (string)(VersionId(string)) | Id (string)
ReferenceId (string) Name (string) Description (string) ObjectClass (string) TypeNamespace (string) CreatedDate (date) UpdatedDate (date) Properties (array) The properties array contains information on templace price and template category on the following format:
The Value attribute of the "TypeNamespace":"BlankettPris" property contains the price of the template (number) The KeyValue attribute of the "TypeNamespace":"BlankettKategori" property contains a unique reference to a template category that the current template is associated to. Please note that multiple template categorys can be returned. Use the API method /API/v1.0/Types/BlankettKategori/TypeInstances to get a list of all available categories. The root categories have 'ParentId':'-1' |
|
GET | Ticket | /Templates/{Id}/Fields | Gets all fields for a specific template | Id (string)(VersionId(string)) |
Array of fields:
Id (string) Fully qualified field id Label (string) The label for the field in the template TypeNamespace (string) Reference to the Type where the field is defined TypeFieldName (string) Reference to the Type Field that defines the template field FieldType (string) The user interface field type AllowBlank (bool) False if the field is required DataType (string) The type of data (see API index) Length (number) The maxlength of the field Index (number) The order of presentation of the field in the template |