patch https://api.chartmogul.com/v1/customer_notes/
Updates certain modifiable attributes of a note
object in your ChartMogul account.
Example
curl -X PATCH "https://api.chartmogul.com/v1/customer_notes/note_39351ba6-dea0-11ee-ac96-37b2b3de29af" \
-u YOUR_API_KEY: \
-H "Content-Type: application/json" \
-d '{
"author_email": "[email protected]",
"text": "They are a world leader in specialized software.\nThey are in SaaS business."
}'
note = ChartMogul::Note.retrieve("note_39351ba6-dea0-11ee-ac96-37b2b3de29af")
note.author = "[email protected]"
note.text = "They are a world leader in specialized software.\nThey are in SaaS business."
note.update!
ChartMogul.CustomerNote.patch(
config,
"note_39351ba6-dea0-11ee-ac96-37b2b3de29af",
{
author: "[email protected]",
text: "They are a world leader in specialized software.\nThey are in SaaS business.",
}
);
ChartMogul\CustomerNote::update("note_39351ba6-dea0-11ee-ac96-37b2b3de29af", [
"author_email" => "[email protected]",
"text" => "They are a world leader in specialized software.\nThey are in SaaS business."
]);
api.UpdateNote(&cm.UpdateNote{
Author: "[email protected]"
Text: "They are a world leader in specialized software.\nThey are in SaaS business."
}, "note_39351ba6-dea0-11ee-ac96-37b2b3de29af")
chartmogul.CustomerNote.patch(
config,
uuid="note_39351ba6-dea0-11ee-ac96-37b2b3de29af",
data={
"author_email": "[email protected]",
"text": "They are a world leader in specialized software.\nThey are in SaaS business.",
},
)
Result Format
{
"uuid": "note_39351ba6-dea0-11ee-ac96-37b2b3de29af",
"customer_uuid": "cus_52eb54c2-dea0-11ed-ac96-ef735d89fca0",
"type": "note",
"text": "They are a world leader in specialized software.\nThey are in SaaS business.",
"call_duration": 0,
"author": "Sara ([email protected])",
"created_at": "2023-11-01T00:00:00.000Z",
"updated_at": "2023-12-21T10:53:50.082Z"
}
#<ChartMogul::Note:0x00007fb757b74038
@customer_uuid="cus_52eb54c2-dea0-11ed-ac96-ef735d89fca0",
@type="note",
@text="They are a world leader in specialized software.\nThey are in SaaS business.",
@created_at="2023-11-01T00:00:00.000Z",
@author="Sara ([email protected])",
@call_duration=0,
@updated_at="2023-12-21T10:53:50.082Z",
@uuid="note_39351ba6-dea0-11ee-ac96-37b2b3de29af
>
{
uuid: "note_39351ba6-dea0-11ee-ac96-37b2b3de29af",
customer_uuid: "cus_52eb54c2-dea0-11ed-ac96-ef735d89fca0",
type: "note",
text: "They are a world leader in specialized software.\nThey are in SaaS business.",
call_duration: 0,
author: "Sara ([email protected])",
created_at: "2023-11-01T00:00:00.000Z",
updated_at: "2023-12-21T10:53:50.082Z"
}
class ChartMogul\CustomerNote (8) {
protected $uuid => string(41) "note_39351ba6-dea0-11ee-ac96-37b2b3de29af"
protected $customer_uuid => string(40) "cus_52eb54c2-dea0-11ed-ac96-ef735d89fca0"
protected $type => string(4) "note"
protected $text => string(76) "They are a world leader in specialized software.\nThey are in SaaS business."
protected $call_duration => int(1)
protected $author => string(23) "Sara ([email protected])"
protected $created_at => string(24) "2023-11-01T00:00:00.000Z"
protected $updated_at => string(24) "2023-12-21T10:53:50.082Z"
}
(*chartmogul.Note)(0x17000558000)({
UUID: (string) (len=41) "note_39351ba6-dea0-11ee-ac96-37b2b3de29af",
CustomerUUID: (string) (len=40) "cus_52eb54c2-dea0-11ed-ac96-ef735d89fca0",
Type: (string) (len=40) "note",
Text: (string) (len=76) "They are a world leader in specialized software.\nThey are in SaaS business.",
CallDuration (uint32) 0
Author: (string) (len=23) "Sara ([email protected])",
CreatedAt: (string) (len=24) "2023-11-01T00:00:00.000Z",
UpdatedAt: (string) (len=24) "2023-12-21T10:53:50.082Z"
})
<Note{
uuid: "note_39351ba6-dea0-11ee-ac96-37b2b3de29af",
customer_uuid: "cus_52eb54c2-dea0-11ed-ac96-ef735d89fca0",
type: "note",
text: "They are a world leader in specialized software.\nThey are in SaaS business.",
call_duration: 0,
author: "Sara ([email protected])",
created_at: "2023-11-01T00:00:00.000Z",
updated_at: "2023-12-21T10:53:50.082Z"
}>