Authorization headerstore permissioncommunityID401 if the key is missing, invalid, or expired403 if the key does not include the store permissioncategoryID is updated for the resolved communityupdate:categorycategoryID must identify a category in the API key's communitydisplayOrder controls category sortingcategoryPermission entries must match the source store permission shape502{
"name": "VIP Rewards",
"displayOrder": 10,
"isArchived": false
}curl --location --request PUT 'https://api.returning.ai/v1/categories/507f1f77bcf86cd799439021' \
--header 'Authorization: Bearer XXXXXX'{
"meta": {
"status": "success",
"statusCode": 200
},
"message": "Update category success.",
"data": {
"_id": "507f1f77bcf86cd799439021",
"communityID": "6502c9e514a3e564c5c09c0a",
"name": "VIP Rewards",
"coverImage": "https://example.com/category.png",
"shouldShowCover": true,
"isArchived": false,
"viewType": "full",
"displayOrder": 10,
"defaultPurchaseStatusID": "650906d314a3e564c56f3450",
"updatedAt": "2026-04-28T00:00:00.000Z"
}
}