Edit Gallery Image - MarcoLagalla/marette_backend GitHub Wiki

Name Edit Gallery Image
Description Edit new Image in gallery
URL restaurant/<int:id>/components/galleria/images/<int:i_id>/edit
Allowed methods POST
Authorizations GET (IsBusiness, IsOwner)

POST

Edit information for an Image in gallery Only the logged owner can make this request.

Params

Name Type Description
<int:id> integer Target restaurant ID
<int:i_id> integer Image ID

Fields

Name Type Required Unique Description
image File ye no change image
name str yes no
description str no no

Return codes

Status Description
HTTP_200_OK updated
HTTP_404_NOT_FOUND restaurant with this ID not found
HTTP_400_BAD_REQUEST wrong parameters
HTTP_401_UNAUTHORIZED action not authorized
⚠️ **GitHub.com Fallback** ⚠️