# Contact Numbers API

## Delete a Contact Number from a Contact by phone number

```shell
curl -X DELETE https://api.retreaver.com/contact_numbers/+18668987878.json?api_key=[api_key]&company_id=1
```

Deletes the contact number from the Contact it is associated with, as long as the Contact has more than one Contact Number.

### HTTP Request

`DELETE https://api.retreaver.com/contact_numbers/+18668987878.json?api_key=[api_key]&company_id=1`

## Update a Contact Number by phone number

```shell
curl -s \
    -X PUT \
    https://api.retreaver.com/contact_numbers/+18001234567.json?api_key=[api_key]&company_id=1 \
    -H "Content-Type: application/json" \
    -d '{"contact_number":{"number":"+18005551234"}}'
```

> The above command returns JSON structured like this:

```json
{
  "contact_number": {
    "number": "+18005551234",
    "description": "Landline",
    "id": 2
  }
}
```

Easily updates a Contact Number.

### HTTP Request

`PUT https://api.retreaver.com/contact_numbers/+18001234567.json?api_key=[api_key]&company_id=1`

`Content-Type: application/json`

`{"contact_number":{"number":"+18005551234"}}`
