curl --request PATCH \
--url https://api.sippet.ai/api/calls/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/vnd.api+json' \
--data '
{
"data": {
"id": "<string>",
"attributes": {
"call_source": "<string>",
"duration_seconds": 123,
"ended_at": "<unknown>",
"status": "initiated"
},
"relationships": {},
"type": "Call"
}
}
'{
"data": {
"id": "<string>",
"type": "<string>",
"attributes": {
"call_source": "<string>",
"call_uuid": "<string>",
"direction": "inbound",
"from_number": "<string>",
"to_number": "<string>",
"conversation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"duration_seconds": 123,
"ended_at": "<unknown>",
"sip_username": "<string>",
"started_at": "<unknown>",
"status": "initiated"
},
"relationships": {
"conversation": {
"data": {
"id": "<string>",
"type": "<string>",
"meta": {}
}
},
"organisation": {
"data": {
"id": "<string>",
"type": "<string>",
"meta": {}
}
}
}
},
"included": [
"<unknown>"
],
"meta": {}
}/calls/:id operation on Call resource
curl --request PATCH \
--url https://api.sippet.ai/api/calls/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/vnd.api+json' \
--data '
{
"data": {
"id": "<string>",
"attributes": {
"call_source": "<string>",
"duration_seconds": 123,
"ended_at": "<unknown>",
"status": "initiated"
},
"relationships": {},
"type": "Call"
}
}
'{
"data": {
"id": "<string>",
"type": "<string>",
"attributes": {
"call_source": "<string>",
"call_uuid": "<string>",
"direction": "inbound",
"from_number": "<string>",
"to_number": "<string>",
"conversation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"duration_seconds": 123,
"ended_at": "<unknown>",
"sip_username": "<string>",
"started_at": "<unknown>",
"status": "initiated"
},
"relationships": {
"conversation": {
"data": {
"id": "<string>",
"type": "<string>",
"meta": {}
}
},
"organisation": {
"data": {
"id": "<string>",
"type": "<string>",
"meta": {}
}
}
}
},
"included": [
"<unknown>"
],
"meta": {}
}JWT for bearer authentication
Relationship paths to include in the response
^()(,())*$Limits the response fields to only those listed for each type
Show child attributes
{
"Call": "id,direction,from_number,to_number,sip_username,status,call_uuid,call_source,started_at,ended_at,duration_seconds,conversation_id"
}Request body for the /calls/:id operation on Call resource
Show child attributes
Was this page helpful?