---
title: "Updates the forwarding rules"
method: PUT
path: "/v2/partition/{partitionId}/account/{accountId}/siptrunkgroup/{groupId}/forward"
tags: ["SIP Trunk Group"]
---

# Updates the forwarding rules

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

## Request

- Base URL: `https://api.alianza.com`
- URL: `https://api.alianza.com/v2/partition/{partitionId}/account/{accountId}/siptrunkgroup/{groupId}/forward`
- 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/forward/put.ts> (a function with typed inputs; its response is checked against the schema)

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

## Path parameters

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

## Response `200`

Successful operation

- SipTrunkGroupForwardRules
  - `partitionId` string
  - `accountId` string
  - `sipTrunkGroupId` 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

## Other responses

- `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)
