Flavours API
Application

Update Application

POST
/api/v2/applications/{applicationKey}

Update a specific application by its key.

AuthorizationBearer <token>

You can retrieve your token by logging in.

In: header

Path Parameters

applicationKey*string

Header Parameters

X-API-Version*string

API contract version to target. See the Changelog for what changed in each version.

Default"2.0.0"
Value in"2.3.0" | "2.2.0" | "2.1.0" | "2.0.0"

Request Body

application/json

logo_img?|

Application logo image file or URL. Must be a valid URL.

name_en?|

English name of the application.

name_ar?|

Arabic name of the application.

description_en?|

English description of the application.

description_ar?|

Arabic description of the application.

order?|

Display order for sorting.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://api.flavours.sa/dev/api/v2/applications/BLEND" \  -H "X-API-Version: 2.3.0" \  -H "Content-Type: application/json" \  -d '{}'
{
  "meta": {
    "code": 200,
    "status": "success",
    "message": "Update Success"
  },
  "data": {
    "key": "BONAT",
    "logo_img": "https://via.placeholder.com/640x480.png/00dd44?text=doloremque",
    "name_en": "Wisoky, Green and Windler",
    "name_ar": "Wisoky, Green and Windler",
    "description_en": "Eaque perspiciatis itaque occaecati libero inventore unde laboriosam. Suscipit enim laborum ut veritatis rerum minima error. Iusto quia in ducimus nulla itaque et. Vitae quam ipsum inventore nihil.",
    "description_ar": "Ut ex pariatur ipsum praesentium corrupti. In deserunt deserunt ut. Enim iusto veniam blanditiis dolores quo enim perferendis inventore.",
    "order": 15
  }
}
{
  "meta": {
    "code": 401,
    "status": "error",
    "message": "Unauthenticated."
  },
  "data": null
}
{
  "meta": {
    "code": 403,
    "status": "error",
    "message": "Unauthorized."
  },
  "data": null
}
{
  "meta": {
    "code": 404,
    "status": "error",
    "message": "Resource not found."
  },
  "data": null
}
{
  "meta": {
    "code": 500,
    "status": "error",
    "message": "Internal server error."
  },
  "data": null
}