# Fix a lead before it is dialled

> PATCH /campaigns/{id}/contacts/{contactId}. HeyRik API parameters and documented request and response examples.

Source: https://www.heyrik.com/docs/api-reference/campaigns/patch-campaigns-id-contacts-contactid-fix-a-lead-before-it-is-dialled

PATCH https://server.heyrik.com/api/v1/campaigns/{id}/contacts/{contactId}

## Path parameters

- id (required): Replace {id} in the request URL with the value for this resource.
- contactId (required): Replace {contactId} in the request URL with the value for this resource.

## Headers

Authorization: Bearer $HEYRIK_API_KEY (required). Keep your key on your server.

## Parameters

- phone (string): Corrected number.
- variables (object): Fields to set; send "" or null for a field to remove it.
- priority (number): Higher dials sooner.

## Notes

Only pending leads are worth editing — a lead already called keeps its result.

## Request example

```sh
curl -X PATCH https://server.heyrik.com/api/v1/campaigns/cmp_4a19/contacts/cct_9b1e \
  -H "Authorization: Bearer $HEYRIK_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "phone": "+919876543210", "variables": { "name": "Ravi Kumar" } }'
```
