Create preview background file

POST /pictures/preview-background-files/{instance_id}

Main resource to add a preview background file. It stores the preview background file and generates a rectangle thumbnail.

Path parameters

  • instance_id string(uuid) Required

    Preview background file unique identifier

Responses

  • 201 application/json

    Preview background file added successfully

    Hide response attributes Show response attributes object
    • id string(uuid)

      Preview background file unique identifier

    • extension string

      File extension

    • file_size integer

      File size in bytes

  • 400

    Wrong file format or error saving file

POST /pictures/preview-background-files/{instance_id}
curl \
 --request POST 'http://api.example.com/pictures/preview-background-files/a24a6ea4-ce75-4665-a070-57453082c25' \
 --header "Authorization: $API_KEY"
Response examples (201)
{
  "id": "a24a6ea4-ce75-4665-a070-57453082c25",
  "extension": "hdr",
  "file_size": 2048000
}