Update a remark

Content

Resource URL

https://apps.ticketmatic.com/api/1/{accountname}/contacts/{id}/remarks/{remarkid}

Description

Updates a specific remark for this contact

Example

Request

1use Ticketmatic\Endpoints\Contacts;
2
3$result = Contacts::updateremark($client, $id, $remarkid, array(
4    "id" => 123423,
5    "content" => "This customer does not pay on time",
6    "pinned" => true,
7));

Response

1object(\Ticketmatic\Model\ContactRemark) (3) {
2  ["id"]=>
3  int(0)
4  ["content"]=>
5  string(34) "This customer does not pay on time"
6  ["pinned"]=>
7  bool(true)
8}

Request

 1import (
 2    "github.com/ticketmatic/tm-go/ticketmatic"
 3    "github.com/ticketmatic/tm-go/ticketmatic/contacts"
 4)
 5
 6result, err := contacts.Updateremark(client, id, remarkid, &ticketmatic.ContactRemark{
 7    Id: 123423,
 8    Content: "This customer does not pay on time",
 9    Pinned: true,
10})

Response

1result := &ticketmatic.ContactRemark{
2    Id: 123423,
3    Content: "This customer does not pay on time",
4    Pinned: true,
5}

Request

1PUT /api/1/{accountname}/contacts/{id}/remarks/{remarkid} HTTP/1.1
2Content-Type: application/json
3
4{
5    "id": 123423,
6    "content": "This customer does not pay on time",
7    "pinned": true
8}

Response

1HTTP/1.1 200 OK
2Content-Type: application/json
3
4{
5    "id": 123423,
6    "content": "This customer does not pay on time",
7    "pinned": true
8}

Request body fields

FieldDescription
id
int 
(required)

Remark ID

Example value:123423
content
string 
(required)

The message

Example value:"This customer does not pay on time"
pinned
bool 
(required)

Is this relevant for sales?

Example value:true

Type reference: ContactRemark

Result fields

FieldDescription
id
int

Remark ID

Example value:123423
content
string

The message

Example value:"This customer does not pay on time"
pinned
bool

Is this relevant for sales?

Example value:true

Type reference: ContactRemark