POST /accounts/{account_id}/images/v2/sourcingkit/migrations

Create a new migration from an existing source. The migration will import objects from the source bucket into Cloudflare Images.

Servers

Path parameters

Name Type Required Description
account_id String Yes

Request headers

Name Type Required Description
Content-Type String Yes The media type of the request body.

Default value: "application/json"

Request body fields

Name Type Required Description
rootDirectory String No

Only import objects under this prefix in the source bucket.

pathPrefix String No

Prefix to prepend to image custom IDs.

conflictBehaviour String No

How to handle objects that already exist at the destination.

Valid values:

  • "overwrite"
  • "skip"

Default value: "skip"

sourceId String Yes

The identifier of the source to migrate from.

excludedContentTypes[] Array No

Content types to skip during migration.

How to start integrating

  1. Add HTTP Task to your workflow definition.
  2. Search for the API you want to integrate with and click on the name.
    • This loads the API reference documentation and prepares the Http request settings.
  3. Click Test request to test run your request to the API and see the API's response.