Renew a short-lived manual human-rep availability lease
PUT
/v1/human-reps/{rep_id}/presence
const url = 'https://api.vocapable.com/v1/human-reps/example/presence';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"status":"available"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://api.vocapable.com/v1/human-reps/example/presence \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "status": "available" }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”rep_id
required
Rep Id
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
RepPresenceHeartbeatRequest
Renew one rep’s short manual-availability lease.
The caller cannot choose a longer expiry. A real gateway will authenticate its own rep-session credential in addition to this tenant API surface; until then this endpoint is an auditable management-plane advertisement, not proof of a connected phone and never sufficient for automatic transfer selection.
object
status
required
Status
string
Responses
Section titled “Responses”Successful Response
Media typeapplication/json
RepPresence
object
rep_id
required
Rep Id
string
status
required
Status
string
lease_expires_at
required
Lease Expires At
string format: date-time
last_heartbeat_at
required
Last Heartbeat At
string format: date-time
fresh
required
Fresh
boolean
manual_only
Manual Only
boolean
automatic_transfer_eligible
Automatic Transfer Eligible
boolean
Example
{ "status": "available", "manual_only": true, "automatic_transfer_eligible": false}Validation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Examplegenerated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example", "input": "example", "ctx": {} } ]}