Authorization headerstore permissioncommunityID401 if the key is missing, invalid, expired, or lacks access404409viewType is optional and must be full or previewdisplayOrder is optional and must be an integer greater than or equal to 0roleNames, tagNames, usernames, and defaultPurchaseStatusName in partner-facing requestscommunityID; it is resolved from the API keyroles, tags, and users as string arrays only; backend-internal IDs are not returnedcombination[].valuesdefaultPurchaseStatus is returned as a status name string or null, never as an objecti18n controls category name translations and can be included in update requests// Updates a category using readable role, tag, user, and purchase-status names.
{
"name": "VIP Rewards",
"coverImage": "https://example.com/category.png",
"shouldShowCover": true,
"isArchived": false,
"viewType": "full",
"displayOrder": 10,
"categoryPermission": [
{
"type": "role",
"permission": {
"roleNames": [
"VIP Member"
],
"tagNames": [
"Early Access"
],
"usernames": [
"alex"
],
"combination": [],
"isSelectAll": false
},
"purchaseLimit": {
"isEnabled": true,
"quantity": 1,
"intervalCount": 1,
"intervalUnit": "months"
},
"accessLevel": "full-access",
"isEnabled": true
}
],
"defaultPurchaseStatusName": "Pending",
"i18n": {
"isTranslationEnabled": false,
"nameTranslations": []
}
}curl --location --request PUT 'https://adss-integration.returning.ai/apis/categories/67bc22b591b5284096627c6c' \
--header 'Authorization: Bearer XXXXXX' \
--header 'Content-Type: application/json' \
--data '{
"name": "VIP Rewards",
"coverImage": "https://example.com/category.png",
"shouldShowCover": true,
"isArchived": false,
"viewType": "full",
"displayOrder": 10,
"categoryPermission": [
{
"type": "role",
"permission": {
"roleNames": [
"VIP Member"
],
"tagNames": [
"Early Access"
],
"usernames": [
"alex"
],
"combination": [],
"isSelectAll": false
},
"purchaseLimit": {
"isEnabled": true,
"quantity": 1,
"intervalCount": 1,
"intervalUnit": "months"
},
"accessLevel": "full-access",
"isEnabled": true
}
],
"defaultPurchaseStatusName": "Pending",
"i18n": {
"isTranslationEnabled": false,
"nameTranslations": []
}
}'{
"meta": {
"status": "success",
"statusCode": 200
},
"message": "Update category success.",
"data": {
"_id": "67bc22b591b5284096627c6c",
"communityID": "6502c97314a3e564c5bbfa84",
"name": "VIP Rewards",
"coverImage": "https://example.com/category.png",
"shouldShowCover": true,
"isArchived": false,
"viewType": "full",
"displayOrder": 10,
"categoryPermission": [
{
"type": "role",
"permission": {
"roles": [
"VIP Member"
],
"tags": [
"Early Access"
],
"users": [
"alex"
],
"combination": [],
"isSelectAll": false
},
"purchaseLimit": {
"isEnabled": true,
"quantity": 1,
"intervalCount": 1,
"intervalUnit": "months"
},
"accessLevel": "full-access",
"isEnabled": true
}
],
"defaultPurchaseStatus": "Pending",
"i18n": {
"isTranslationEnabled": false,
"nameTranslations": []
},
"createdAt": "2025-02-24T07:41:41.053Z",
"updatedAt": "2026-05-25T05:15:38.547Z"
}
}