---
title: "Change variables for a single phone contact"
method: POST
path: "/addressbooks/{id}/phones/variable"
tags: ["Contacts"]
---

# Change variables for a single phone contact

`POST /addressbooks/{id}/phones/variable`

## Request

- Base URL: `https://api.sendpulse.com`
- URL: `https://api.sendpulse.com/addressbooks/{id}/phones/variable`
- Auth: one of:
  - HTTP bearer
  - OAuth 2 (client credentials, token URL `https://api.sendpulse.com/oauth/access_token`)

## Request body

- object
  - `phone` string, required
  - `variables` object[], required
    - `name` string, required
    - `value` union, required
      - string
      - number

## Response `200`

Successful response

- object
  - `result` boolean

## Other responses

- `401`: Unauthorized
- `403`: Forbidden

---

[API](https://skmtc.dev/sendpulse/apis/sendpulse-sms-api.md) · [All operations](https://skmtc.dev/sendpulse/apis/sendpulse-sms-api/llms.txt) · [OpenAPI document](https://skmtc.dev/sendpulse/apis/sendpulse-sms-api/revisions/be75d9ca7784?raw)
