Modify an existing phone number type
Content
Resource URL
https://apps.ticketmatic.com/api/1/{accountname}/settings/system/phonenumbertypes/{id}
Example
Request
1use Ticketmatic\Endpoints\Settings\System\Phonenumbertypes;
2
3$result = Phonenumbertypes::update($client, $id, array(
4 "name" => "Home",
5));
Response
1object(\Ticketmatic\Model\PhoneNumberType) (5) {
2 ["id"]=>
3 int(0)
4 ["name"]=>
5 string(4) "Home"
6 ["isarchived"]=>
7 bool(false)
8 ["createdts"]=>
9 object(\DateTime) (3) {
10 ["date"]=>
11 string(26) "2014-09-26 15:24:36.000000"
12 ["timezone_type"]=>
13 int(3)
14 ["timezone"]=>
15 string(3) "UTC"
16 }
17 ["lastupdatets"]=>
18 object(\DateTime) (3) {
19 ["date"]=>
20 string(26) "2014-09-26 15:24:36.000000"
21 ["timezone_type"]=>
22 int(3)
23 ["timezone"]=>
24 string(3) "UTC"
25 }
26}
Request body fields
Field | Description |
---|---|
name mlstring (required) | Name of the phone number type Example value:"Home" |
Type reference: PhoneNumberType
Result fields
Field | Description |
---|---|
id int | Unique ID Example value:123 |
name | Name of the phone number type Example value:"Home" |
isarchived bool | Whether or not this item is archived |
createdts timestamp | Created timestamp Example value:"2014-09-26 15:24:36" |
lastupdatets timestamp | Last updated timestamp Example value:"2014-09-26 15:24:36" |
Type reference: PhoneNumberType