PATCH
/
api
/
v1
/
virtual-phone-accounts
/
{id}
/
redirect
curl --request PATCH \
  --url https://api.salvy.com.br/api/v1/virtual-phone-accounts/{id}/redirect \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "redirectPhoneNumber": "11912341234",
  "redirectExpiresAt": "2024-01-03T00:00:00Z"
}'
{
  "id": "0140a8c6-3815-45b7-9e60-8e137cad845c",
  "identifier": "meu-número-virtual",
  "phoneNumber": "+551151231234",
  "status": "active",
  "createdAt": "2023-11-07T05:31:56Z",
  "canceledAt": "2023-11-07T05:31:56Z",
  "cancelReason": "<string>",
  "redirectPhoneNumber": "+5511912341234",
  "redirectExpiresAt": "2024-01-03T00:00:00Z"
}

Este endpoint permite que empresas atualizem o número de redirecionamento de um número virtual.

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string
required

Body

application/json

Response

200
application/json

The response is of type object.