Update a Note or Call Log

PATCH https://api.chartmogul.com/v1/customer_notes/{NOTE_UUID}

Updates certain modifiable attributes of a note object in your ChartMogul account.

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.",
  },
)
{
  "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"
}>

Path parameters

note_uuid string required
The ChartMogul UUID of the note you’re updating.

Body parameters

author_email string
The email of the author of the note or call. The email has to match a user that belongs to the account.
text string
Contents of the note or call log.
call_duration integer default: 60
Relevant for type call. Duration of the call in seconds. Defaults to 60 seconds if not provided.
created_at string default: now
The date and time when this note or call was made. Defaults to now if not provided. Must be an ISO 8601-formatted time in the past. The timezone defaults to UTC unless otherwise specified.
updated_at string default: now
The date and time when this note or call was updated. Defaults to now if not provided. Must be an ISO 8601-formatted time in the past. The timezone defaults to UTC unless otherwise specified.