Léim ar ábhar
ShopentlyLearn

Táirgí · Cuir comhaid leis · upload_id

Tar éis upload_id a chruthú, uaslódáil na comhaid mar multipart/form-data agus ceangail leis an táirge iad. Teastaíonn comhartha Bearer agus cead do category chun íoslódáil; bíonn bearta an chomhaid sa fhreagra, gan seoladh poiblí ná pasfhocal. Riail rochtana shainráite don chomhad comhroinnte. new_purchases / recent_and_new / selected / all_purchasers.

POST/api/v1/product-file-uploads

Iarratas cURL

curl --disable --globoff --fail-with-body --silent --show-error \
  --proto '=https' --connect-timeout 5 --max-time 30 \
  --request POST \
  --url 'https://shop.onshopently.com/api/v1/product-file-uploads?category=digital' \
  --header 'Authorization: Bearer EXAMPLE_ACCESS_TOKEN' \
  --header 'Idempotency-Key: files-example-create_upload_api_v1_product_file_uploads_post' \
  --header 'Content-Type: application/json' \
  --data-raw '{"filename":"manual.pdf","product_id":"example","sha256":"5cd2f1cb0e5532b397e7ab1887baf6000c49450fd80ae279eb047c06e4545ecd","size_bytes":46}'

Freagra

{
  "data": {
    "deleted": false,
    "id": "00000000-0000-4000-8000-000000000001",
    "version": null
  },
  "meta": {
    "request_id": "example"
  }
}

Ceadanna riachtanacha

Fíordheimhniú
Comhartha rochtana
Ar fáil ó
STANDARD
Ceadanna riachtanacha
Ceadanna breise do réimsí roghnaithe
  • category=internal: Comhaid táirge a bhainistiú · Comhaid inmheánachacatalog.product_file:write_internal
  • category=customer_document: Comhaid táirge a bhainistiú · Doiciméid do chustaiméirícatalog.product_file:write_customer_document
  • category=digital: Comhaid táirge a bhainistiú · Táirgí digiteachacatalog.product_file:write_digital