- [HTTP request](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.feeds/scheduleTransfer#body.HTTP_TEMPLATE)
- [Path parameters](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.feeds/scheduleTransfer#body.PATH_PARAMETERS)
- [Request body](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.feeds/scheduleTransfer#body.request_body)
  - [JSON representation](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.feeds/scheduleTransfer#body.request_body.SCHEMA_REPRESENTATION)
- [Response body](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.feeds/scheduleTransfer#body.response_body)
  - [JSON representation](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.feeds/scheduleTransfer#body.ScheduleFeedTransferResponse.SCHEMA_REPRESENTATION)
- [Authorization scopes](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.feeds/scheduleTransfer#body.aspect)
- [State](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.feeds/scheduleTransfer#State)
- [ScheduleFeedTransferErrorDetails](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.feeds/scheduleTransfer#ScheduleFeedTransferErrorDetails)
  - [JSON representation](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.feeds/scheduleTransfer#ScheduleFeedTransferErrorDetails.SCHEMA_REPRESENTATION)

**Full name**: projects.locations.instances.feeds.scheduleTransfer

Schedules a feed transfer for the feed. It passes the data fetched from the last feed transfer to the chronicle ingestion pipeline.

### HTTP request

`POST https://{endpoint}/v1alpha/{name}:scheduleTransfer`

Where `{endpoint}` is one of the [supported service endpoints](https://docs.cloud.google.com/chronicle/docs/reference/rest#rest_endpoints).

### Path parameters

| Parameters ||
|---|---|
| `name` | `string` Required. The name of the feed for which we need to schedule the transfer. Format: projects/{project}/locations/{location}/instances/{instance}/feeds/{feed} |

### Request body

The request body contains data with the following structure:

| JSON representation |
|---|
| ``` { "logType": string, "transferState": enum (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.feeds/scheduleTransfer#State`), "errorDetails": { object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.feeds/scheduleTransfer#ScheduleFeedTransferErrorDetails`) } } ``` |

| Fields ||
|---|---|
| `logType` | `string` Required. The logType |
| `transferState` | ``enum (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.feeds/scheduleTransfer#State`)`` Required. The state of this transfer |
| `errorDetails` | ``object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.feeds/scheduleTransfer#ScheduleFeedTransferErrorDetails`)`` Optional. The details why transfer is not successful |

### Response body

feeds.scheduleTransfer response message.

If successful, the response body contains data with the following structure:

| JSON representation |
|---|
| ``` { "transferId": string, "nextStartTime": string } ``` |

| Fields ||
|---|---|
| `transferId` | `string` Required. The unique identifier of the next feed transfer. |
| `nextStartTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Required. The customer identifier. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |

### Authorization scopes

Requires one of the following OAuth scopes:

- `https://www.googleapis.com/auth/cloud-platform`
- `
  https://www.googleapis.com/auth/chronicle`

For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp).

## State

Possible transfer state

| Enums ||
|---|---|
| `STATE_UNSPECIFIED` | Default value. This value is unused. |
| `SUCCEEDED` | Transfer is successful. |
| `FAILED` | Transfer failed. |
| `PARTIAL` | Transfer was partial. |

## ScheduleFeedTransferErrorDetails

ScheduleFeedTransferErrorDetails contains the error details for the transfer failure.

| JSON representation |
|---|
| ``` { "errorCode": string, "errorMessage": string } ``` |

| Fields ||
|---|---|
| `errorCode` | `string` Optional. errorCode contains the error code for the transfer. The field is populated for the transfer with failed status |
| `errorMessage` | `string` Optional. errorCause contains the information regarding the failure cause. |