# Renew connect link for Apple

```http
POST https://api.synup.com/api/v4/connected-accounts/connect-apple/renew
```

Generates a link to **re-authorize** an Apple Business Connect connection whose OAuth token has expired or been revoked. Provide either a `locationId` or a `connectedAccountId` to identify the connection to renew. Redirect the user to the returned `url`; the link is valid for 1 day.

**Apple OAuth link variants:**
- **Connect link for Apple** — connect a single location.
- **Bulk connect link for Apple** — connect multiple locations.
- **Renew connect link for Apple** — re-authorize an existing connection (this endpoint).

Source: https://developer.synup.com/api/connected-accounts/renew-connect-link-for-apple

## Header parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `Synup-Version` | string | required | API version date (YYYY-MM-DD). |

## Request body

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `input` | object | required |  |
| `input.locationId` | string | optional | Relay-encoded location ID of the connection to renew. |
| `input.connectedAccountId` | string | optional | ID of the connected Apple account to renew (alternative to locationId). |
| `input.successUrl` | string | required | Redirect URL on successful re-authorization. |
| `input.clientMutationId` | string | optional |  |

## Example request

```bash
curl -X POST 'https://api.synup.com/api/v4/connected-accounts/connect-apple/renew' \
  -H 'Authorization: API YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "input": {
    "locationId": "TG9jYXRpb246MQ==",
    "successUrl": "https://app.synup.com/apple/success"
  }
}'
```

## Responses

| Status | Description |
| --- | --- |
| `200` | Successful response |
| `401` | Unauthorized - Invalid or missing API key |
