cURL
curl --request PATCH \ --url https://commerce.driv.ly/api/calls/{id} \ --header 'Authorization: <api-key>' \ --header 'Content-Type: application/json' \ --data ' { "updatedAt": "<string>", "createdAt": "<string>", "name": "<string>", "lead": 123, "phone": "<string>", "conversation": "<string>", "recording": "<string>", "transcript": "<string>", "notes": "<string>", "rating": 123, "ratingNote": "<string>", "followUpEmail": "<string>", "nextSteps": "<string>", "conversationUrl": "<string>", "developmentCall": true } '
{ "doc": { "updatedAt": "<string>", "createdAt": "<string>", "name": "<string>", "lead": 123, "phone": "<string>", "conversation": "<string>", "recording": "<string>", "transcript": "<string>", "notes": "<string>", "rating": 123, "ratingNote": "<string>", "followUpEmail": "<string>", "nextSteps": "<string>", "conversationUrl": "<string>", "developmentCall": true }, "message": "<string>" }
Updates a Call
Usage with the Drivly SDK
import { SDK } from '@drivly/commerce' import type { calls } from '@drivly/commerce' const sdk = new SDK(...) const calls = await sdk.calls.update(callsId: string, data: calls): Promise<calls>
id of the Call
number of levels to automatically populate relationships and uploads
retrieves document(s) in a specific locale
specifies a fallback locale if no locale value exists
ok
Show child attributes