VoiceCall Mutations

These mutations allow you to interact with voicecall data.

convertCallLogToAppointment

Returns: Appointment

Arguments

ArgumentTypeDescription
callLogIdrequiredID!ID of the call log entry
handledByRemoteBooleanHandled by remote
Example Query
mutation(
$callLogId: ID!,
$handledByRemote: Boolean
) {
convertCallLogToAppointment(
callLogId: $callLogId,
handledByRemote: $handledByRemote
) {
id
# Add other fields you need
}
}
Variables
{
"callLogId": "1",
"handledByRemote": true
}

createCallLog

Returns: CallLog!

Arguments

ArgumentTypeDescription
inputCallLogInputInput data for call log operation
Example Query
mutation($input: CallLogInput) {
createCallLog(input: $input) {
id
# Add other fields you need
}
}
Variables
{
"input": {}
}

createVoiceCallLog

Returns: VoiceCall

Arguments

ArgumentTypeDescription
inputrequiredCallLogInput!Input
voiceCallIdrequiredID!ID of the voicecall
Example Query
mutation(
$input: CallLogInput!,
$voiceCallId: ID!
) {
createVoiceCallLog(
input: $input,
voiceCallId: $voiceCallId
) {
id
# Add other fields you need
}
}
Variables
{
"input": {},
"voiceCallId": "1"
}

deleteCallLog

Returns: CallLog!

Arguments

ArgumentTypeDescription
idrequiredID!Unique identifier
Example Query
mutation($id: ID!) {
deleteCallLog(id: $id) {
id
# Add other fields you need
}
}
Variables
{
"id": "1"
}

dismissVoiceCalls

Returns: String

Dismiss voice calls for a location

Arguments

ArgumentTypeDescription
locationIdrequiredID!ID of the location
Example Query
mutation($locationId: ID!) {
dismissVoiceCalls(locationId: $locationId) {
id
# Add other fields you need
}
}
Variables
{
"locationId": "1"
}

linkCall

Returns: VoiceCall

Arguments

ArgumentTypeDescription
callLogIdrequiredID!ID of the call log entry
clientIdIDID of the client (pet owner)
idrequiredID!Unique identifier
patientIdIDID of the patient
Example Query
mutation(
$callLogId: ID!,
$clientId: ID,
$id: ID!,
$patientId: ID
) {
linkCall(
callLogId: $callLogId,
clientId: $clientId,
id: $id,
patientId: $patientId
) {
id
# Add other fields you need
}
}
Variables
{
"callLogId": "1",
"clientId": "1",
"id": "1",
"patientId": "1"
}

unlinkCall

Returns: VoiceCall

Arguments

ArgumentTypeDescription
callLogIdIDID of the call log entry
idrequiredID!Unique identifier
Example Query
mutation(
$callLogId: ID,
$id: ID!
) {
unlinkCall(
callLogId: $callLogId,
id: $id
) {
id
# Add other fields you need
}
}
Variables
{
"callLogId": "1",
"id": "1"
}

updateCallLog

Returns: CallLog

Arguments

ArgumentTypeDescription
idrequiredID!Unique identifier
inputrequiredCallLogInput!Input
Example Query
mutation(
$id: ID!,
$input: CallLogInput!
) {
updateCallLog(
id: $id,
input: $input
) {
id
# Add other fields you need
}
}
Variables
{
"id": "1",
"input": {}
}

updateDialpadSubscription

Returns: Org

create or delete a subscription to dial pad call events

Arguments

ArgumentTypeDescription
enableDialpadrequiredBoolean!Enable phone dialpad functionality
Example Query
mutation($enableDialpad: Boolean!) {
updateDialpadSubscription(enableDialpad: $enableDialpad) {
id
# Add other fields you need
}
}
Variables
{
"enableDialpad": true
}

updateVoiceCall

Returns: VoiceCall

Arguments

ArgumentTypeDescription
idrequiredID!Unique identifier
inputrequiredVoiceCallInput!Input
Example Query
mutation(
$id: ID!,
$input: VoiceCallInput!
) {
updateVoiceCall(
id: $id,
input: $input
) {
id
# Add other fields you need
}
}
Variables
{
"id": "1",
"input": {}
}