Skip to content

Latest commit

 

History

History
 
 

using-asset-upload

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Working with the Asset Upload endpoint

Join our Slack

This example demonstrates how to programmatically import assets from a URL using the Asset Upload endpoint. Uses Bee-Queue to process jobs (recommended for large data imports).

Included is an example JSON file (assets.json).

How to Use

Download Manually

npx degit graphcms/graphcms-examples/using-asset-upload using-asset-upload

Add .env:

cp .env.sample .env

Provide values for GRAPHCMS_TOKEN and GRAPHCMS_ENDPOINT keys.

Install & Run:

cd using-asset-upload
npm install
npm run start assets.json
# or
cd using-asset-upload
yarn
yarn start assets.json