Skip to content

Create file

POST/admin/v1/stores/{store_id}/agent/files
  • Idempotency-Key supported

Reserves a file and a place to upload it to.

Path parameters

  • store_idstringrequired

Headers

  • Idempotency-Keystring

    Send the same key to retry safely: the first answer is replayed for 24 hours.

  • shop-api-versionYYYY-MM

    The version to answer in. Without it, your app’s pinned version, else the newest.

Body

  • namestringrequired
  • content_typestringrequired
  • size_bytesintegerrequired

Returns

201

Errors

  • 400bad_request