Get data for field definitions

Content

Resource URL

https://apps.ticketmatic.com/api/1/{accountname}/settings/system/fielddefinitions/data

Example

Request

 1use Ticketmatic\Endpoints\Settings\System\Fielddefinitions;
 2
 3$result = Fielddefinitions::getdata($client, array(
 4    "typeid" => 15,
 5    "fielddefinitions" => array(
 6        "key1",
 7        "key2",
 8    ),
 9    "ids" => array(
10        1,
11        2,
12        3,
13    ),
14));

Request

 1import (
 2    "github.com/ticketmatic/tm-go/ticketmatic"
 3    "github.com/ticketmatic/tm-go/ticketmatic/settings/system/fielddefinitions"
 4)
 5
 6result, err := fielddefinitions.Getdata(client, &ticketmatic.FielddefinitionsDataRequest{
 7    Typeid: 15,
 8    Fielddefinitions: []string{
 9        "key1",
10        "key2",
11    },
12    Ids: []int64{
13        1,
14        2,
15        3,
16    },
17})

Request

 1POST /api/1/{accountname}/settings/system/fielddefinitions/data HTTP/1.1
 2Content-Type: application/json
 3
 4{
 5    "typeid": 15,
 6    "fielddefinitions": [
 7        "key1",
 8        "key2"
 9    ],
10    "ids": [ 1, 2, 3 ]
11}

Request body fields

FieldDescription
typeid
int 
(required)

Type id

Example value:15
fielddefinitions
string[] 
(required)

Keys for field definitions to retrieve

Example value:[ "key1", "key2" ]
ids
int[] 
(required)

Item ids

Example value:[ 1, 2, 3 ]

Type reference: FielddefinitionsDataRequest

Result fields

This call returns an array of objects.

FieldDescription
id
int

Item id

Example value:15
data
map<string, mixed>

Field definition data for the item

Example value:{ "fielddefinition1": "value1", "fielddefinition2": "value2" }

Type reference: FielddefinitionsDataResult[]