# Save the links a native app is returned to

> Save the links a native app is returned to: CustomDomain™ API reference in the applications group. Covers parameters, request body, responses and error codes.

Source: https://docs.customdomain.ai/docs/api-reference/applications/putAppReturnLinks

## `PUT https://api.customdomain.ai/v1/applications/{id}/app-return-links`

Replaces the list; an empty list clears it. Each link is https or an app scheme, at most 10 links. Requires `app:write`.

### Authentication

`apiKey`, `managementKey`

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string | yes |  |

### Request body (JSON)

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `links` | array of string | yes |  |

### Responses

| Status | Description |
| --- | --- |
| `200` | Saved. |
| `400` | Error envelope: {code, title, details, request_id}. |
| `401` | Error envelope: {code, title, details, request_id}. |
| `403` | Error envelope: {code, title, details, request_id}. |
| `404` | Error envelope: {code, title, details, request_id}. |

### `200` response body

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `links` | array of string | yes |  |

The full specification is served at `GET https://api.customdomain.ai/v1/openapi.json`.
