recipes

Create a signed image upload for a chef-owned recipe

Changed on

Returns a signed PUT slot; the client PUTs the raw image bytes to upload.url. With defer=true the recipe's image is left unchanged until the client calls image-upload/confirm with the returned image_url, so a failed upload cannot leave a broken cover image.

post/chefs/recipes/{recipe_id}/image-upload

Request

  • Base URL
    https://api.rxfoodapp.com/api
  • URL
    https://api.rxfoodapp.com/api/chefs/recipes/{recipe_id}/image-upload
  • Auth
    HTTP bearer

Path parameters

recipe_idinteger required

Query parameters

ext'jpg' | 'jpeg' | 'png' | 'webp' required
deferboolean

Response

successful operation

image_urlstring

Object key the upload slot writes to

uploadobject required

Changes

    • info

      added the new optional query request parameter defer

    • info

      added the optional property to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status