Skip to main content

Update Category By ID

POST/v3/service
  • Update the category name , status and positionChange

Request Parameters

serviceString

alacarte service

Example: "alacarte"

versionString

Currently only support 'v1"

Example: "v1"

functionString

Function that provide by alacarte

Example: "update.category"

requestObject

Refer to explanation below

Example: (Refer to explanation below)

categoryIdString

ID of the Category

Example: "5f68485ccb3285b9d3955696"

nameString

Category name

Example: "Drinks"

statusString

Status of Category "ACTIVE" and "INACTIVE"

Example: "ACTIVE"

positionChangeInt

Move UP or DOWN the position using -1 or 1

Example: 1

Response Parameters

itemObject

(Refer to explanation below)

Example: (Refer to explanation below)

categoryIdString

Category ID

Example: "5f68485ccb3285b9d3955696"

storeIdString

ID of the Store that Create from RM

Example: "10946114768247530"

itemIdsArray

Category Items

Example: null

nameString

Item Name

Example: "Drinks"

statusString

Status of Item

Example: "ACTIVE"

positionUint

Current position among Category

Example: 1

createdAtDateTime

Creation date time

Example: "2020-09-22T04:25:23.684330293Z"

updatedAtDateTime

Last update date time

Example: "2020-09-22T04:25:23.684330293Z"