For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
    • Welcome
  • API Reference
      • GETListar SIP Trunks
      • POSTCrear SIP Trunk
      • GETObtener SIP Trunk
      • DELEliminar SIP Trunk
      • PATCHActualizar SIP Trunk
Logo
API ReferenceSip Trunks

Actualizar SIP Trunk

PATCH
https://nebrijaai.com/api/v1/sip-trunks/:id
PATCH
/api/v1/sip-trunks/:id
$curl -X PATCH https://nebrijaai.com/api/v1/sip-trunks/id \
> -H "Authorization: Bearer <token>" \
> -H "Content-Type: application/json" \
> -d '{}'
1{
2 "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
3 "name": "Main Office SIP Trunk",
4 "gateways": [
5 {
6 "ipOrDomain": "sip-gateway.example.com",
7 "port": 5060,
8 "name": "Primary Gateway"
9 }
10 ],
11 "authentication": {
12 "username": "office_sip_user",
13 "password": "********"
14 },
15 "advanced": {},
16 "isSystem": true,
17 "providerId": "provider-12345",
18 "createdAt": "2024-01-15T09:30:00Z",
19 "updatedAt": "2024-01-15T09:30:00Z"
20}

Actualiza un SIP Trunk existente. Solo se actualizarán los campos proporcionados. Los SIP Trunks del sistema (isSystem=true) no pueden ser modificados. Si la contraseña se envía como ’********’, se preserva la contraseña original.

Was this page helpful?
Previous
Built with

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Path parameters

idstringRequiredformat: "uuid"

Request

This endpoint expects an object.
namestringOptional
gatewayslist of objectsOptional
authenticationobjectOptional
advancedobjectOptional

Response

SIP Trunk actualizado.
idstringformat: "uuid"
namestring
gatewayslist of objects
authenticationobject
advancedobject

Configuración avanzada del trunk.

isSystemboolean

Indica si es un trunk del sistema (no modificable/eliminable).

providerIdstring

ID del trunk en el proveedor externo (LiveKit).

createdAtdatetime
updatedAtdatetime

Errors

403
Forbidden Error
404
Not Found Error