Save the seat description templates
Content
Resource URL
https://apps.ticketmatic.com/api/1/{accountname}/settings/seatingplans/seatingplans/{id}/seatdescriptiontemplates
Description
Save the seat description templates for this seating plan.
Example
Request
1use Ticketmatic\Endpoints\Settings\Seatingplans\Seatingplans;
2
3$result = Seatingplans::saveseatdescriptiontemplates($client, $id, array(
4 array(
5 "id" => 1,
6 "name" => "Upper balcony",
7 "template" => "{{zonename}} Upper balcony {{rowname}}:{{seatname}}",
8 ),
9));
Request
1import (
2 "github.com/ticketmatic/tm-go/ticketmatic"
3 "github.com/ticketmatic/tm-go/ticketmatic/settings/seatingplans/seatingplans"
4)
5
6result, err := seatingplans.Saveseatdescriptiontemplates(client, id, []*ticketmatic.SeatDescriptionTemplate{
7 &ticketmatic.SeatDescriptionTemplate{
8 Id: 1,
9 Name: "Upper balcony",
10 Template: "{{zonename}} Upper balcony {{rowname}}:{{seatname}}",
11 },
12})
Request
1POST /api/1/{accountname}/settings/seatingplans/seatingplans/{id}/seatdescriptiontemplates HTTP/1.1
2Content-Type: application/json
3
4[
5 {
6 "id": 1,
7 "name": "Upper balcony",
8 "template": "{{zonename}} Upper balcony {{rowname}}:{{seatname}}"
9 }
10]
Request body fields
This call expects an array of objects in the request body.
Field | Description |
---|---|
id int (required) | The ID of the template Example value:1 |
name string (required) | The name of the template Example value:"Upper balcony" |
template string (required) | The template itself with placeholders for rowname, seatname and zonename Example value:"{{zonename}} Upper balcony {{rowname}}:{{seatname}}" |
Type reference: SeatDescriptionTemplate[]
Result fields
This call returns an array of objects.
Field | Description |
---|---|
id int | The ID of the template Example value:1 |
name string | The name of the template Example value:"Upper balcony" |
template string | The template itself with placeholders for rowname, seatname and zonename Example value:"{{zonename}} Upper balcony {{rowname}}:{{seatname}}" |
Type reference: SeatDescriptionTemplate[]