Sales
Update an existing Call
PATCH
/
calls
/
{id}
curl --request PATCH \
--url https://commerce.driv.ly/api/calls/{id} \
--header 'Content-Type: application/json' \
--data '{
"id": "call_3d9k2j8s7d2k",
"note": "Follow up with more information",
"time": "2023-09-20T14:00:00Z",
"rating": 5,
"ratingNote": "Excellent call, potential sale",
"transcript": "Transcript of the call here",
"audioRecording": {
"url": "http://example.com/audio"
},
"conversationURL": "http://example.com/conversation",
"externalPhoneNumber": "555-6789",
"internalPhoneNumber": "555-0199"
}'
{
"data": {
"id": "call_3d9k2j8s7d2k",
"note": "Follow up with more information",
"time": "2023-09-20T14:00:00Z",
"rating": 5,
"ratingNote": "Excellent call, potential sale",
"transcript": "Transcript of the call here",
"audioRecording": {
"url": "http://example.com/audio"
},
"conversationURL": "http://example.com/conversation",
"externalPhoneNumber": "555-6789",
"internalPhoneNumber": "555-0199"
},
"success": true
}
Path Parameters
Call is uniquely identified by id
Query Parameters
The number of levels of related objects to include in the response
Body
application/json
Response
200
application/json
Call Updated
The response is of type object
.
curl --request PATCH \
--url https://commerce.driv.ly/api/calls/{id} \
--header 'Content-Type: application/json' \
--data '{
"id": "call_3d9k2j8s7d2k",
"note": "Follow up with more information",
"time": "2023-09-20T14:00:00Z",
"rating": 5,
"ratingNote": "Excellent call, potential sale",
"transcript": "Transcript of the call here",
"audioRecording": {
"url": "http://example.com/audio"
},
"conversationURL": "http://example.com/conversation",
"externalPhoneNumber": "555-6789",
"internalPhoneNumber": "555-0199"
}'
{
"data": {
"id": "call_3d9k2j8s7d2k",
"note": "Follow up with more information",
"time": "2023-09-20T14:00:00Z",
"rating": 5,
"ratingNote": "Excellent call, potential sale",
"transcript": "Transcript of the call here",
"audioRecording": {
"url": "http://example.com/audio"
},
"conversationURL": "http://example.com/conversation",
"externalPhoneNumber": "555-6789",
"internalPhoneNumber": "555-0199"
},
"success": true
}