---
title: "Update a SIP trunk group"
method: PUT
path: "/v2/partition/{partitionId}/account/{accountId}/siptrunkgroup/{groupId}"
tags: ["SIP Trunk Group"]
---

# Update a SIP trunk group

`PUT /v2/partition/{partitionId}/account/{accountId}/siptrunkgroup/{groupId}`

## Request

- Base URL: `https://api.alianza.com`
- URL: `https://api.alianza.com/v2/partition/{partitionId}/account/{accountId}/siptrunkgroup/{groupId}`
- Auth: API key in header `X-AUTH-TOKEN`
- TypeScript: <https://skmtc.dev/alianza/apis/alianza-public-api/docs/v2/partition/:partitionId/account/:accountId/siptrunkgroup/:groupId/put.ts> (a function with typed inputs; its response is checked against the schema)

Use to update a SIP trunk group created for the specified account ID, partition ID and group ID

## Path parameters

- `partitionId` string, required
- `accountId` string, required
- `groupId` string, required

## Request body

- SipTrunkGroup
  - `id` string
  - `name` string, required: name of the group
  - `partitionId` string
  - `accountId` string
  - `unconditionalForward` SipTrunkForwardAlwaysReference
    - `referenceId` string: id of the entity to forward the calls to
    - `referenceType` 'SIP_TRUNK' | 'END_USER' | 'TELEPHONE' | 'AUTO_ATTENDANT' | 'IVR' | 'BUSY' | 'VOICE_MAIL', required
    - `enabled` boolean
  - `unreachableForward` SipTrunkForwardReference[]
    - `referenceId` string: id of the entity to forward the calls to
    - `referenceType` 'SIP_TRUNK' | 'END_USER' | 'TELEPHONE' | 'AUTO_ATTENDANT' | 'IVR' | 'BUSY' | 'VOICE_MAIL', required
  - `capacityForward` SipTrunkForwardReference[]
    - `referenceId` string: id of the entity to forward the calls to
    - `referenceType` 'SIP_TRUNK' | 'END_USER' | 'TELEPHONE' | 'AUTO_ATTENDANT' | 'IVR' | 'BUSY' | 'VOICE_MAIL', required
  - `sipTrunkId` string[]

## Response `200`

Successful operation

- SipTrunkGroup
  - `id` string
  - `name` string, required: name of the group
  - `partitionId` string
  - `accountId` string
  - `unconditionalForward` SipTrunkForwardAlwaysReference
    - `referenceId` string: id of the entity to forward the calls to
    - `referenceType` 'SIP_TRUNK' | 'END_USER' | 'TELEPHONE' | 'AUTO_ATTENDANT' | 'IVR' | 'BUSY' | 'VOICE_MAIL', required
    - `enabled` boolean
  - `unreachableForward` SipTrunkForwardReference[]
    - `referenceId` string: id of the entity to forward the calls to
    - `referenceType` 'SIP_TRUNK' | 'END_USER' | 'TELEPHONE' | 'AUTO_ATTENDANT' | 'IVR' | 'BUSY' | 'VOICE_MAIL', required
  - `capacityForward` SipTrunkForwardReference[]
    - `referenceId` string: id of the entity to forward the calls to
    - `referenceType` 'SIP_TRUNK' | 'END_USER' | 'TELEPHONE' | 'AUTO_ATTENDANT' | 'IVR' | 'BUSY' | 'VOICE_MAIL', required
  - `sipTrunkId` string[]

## Other responses

- `400`: Bad Request
- `404`: Not Found

---

[API](https://skmtc.dev/alianza/apis/alianza-public-api.md) - [All operations](https://skmtc.dev/alianza/apis/alianza-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/alianza/apis/alianza-public-api/revisions/cb514a0728ed?raw)
