Set an account parameter

Content

Resource URL

https://apps.ticketmatic.com/api/1/{accountname}/settings/accountparameters

Example

Request

1use Ticketmatic\Endpoints\Settings\Accountparameters;
2
3$result = Accountparameters::set($client, array(
4    "key" => "accountname",
5    "value" => "Royal Opera",
6));

Response

1object(\Ticketmatic\Model\AccountParameter) (2) {
2  ["key"]=>
3  string(11) "accountname"
4  ["value"]=>
5  string(11) "Royal Opera"
6}

Request

1import (
2    "github.com/ticketmatic/tm-go/ticketmatic"
3    "github.com/ticketmatic/tm-go/ticketmatic/settings/accountparameters"
4)
5
6result, err := accountparameters.Set(client, &ticketmatic.AccountParameter{
7    Key: "accountname",
8    Value: "Royal Opera",
9})

Response

1result := &ticketmatic.AccountParameter{
2    Key: "accountname",
3    Value: "Royal Opera",
4}

Request

1POST /api/1/{accountname}/settings/accountparameters HTTP/1.1
2Content-Type: application/json
3
4{
5    "key": "accountname",
6    "value": "Royal Opera"
7}

Response

1HTTP/1.1 200 OK
2Content-Type: application/json
3
4{
5    "key": "accountname",
6    "value": "Royal Opera"
7}

Request body fields

FieldDescription
key
string 
(required)

The name of the account parameter

Example value:"accountname"
value
mixed 
(required)

Value

Example value:"Royal Opera"

Type reference: AccountParameter

Result fields

FieldDescription
key
string

The name of the account parameter

Example value:"accountname"
value

Value

Example value:"Royal Opera"

Type reference: AccountParameter