PUT /asset/v1/content/categories/{categoryId}

Updates a category in Content Builder.

NameTypeDescription
idNumberRequired. The ID of the category.
NameTypeDescription
IdnumberRequired. The unique ID of the category,
NamestringRequired. The name of the category.
ParentIdnumberRequired. The ID of the parent category.
EnterpriseIdnumberThe enterprise ID (EID) associated with the category.
CategoryTypestringThe type of category. Possible values are asset and asset-shared.
MemberIdnumberThe member ID (MID) of the account associated with the category.
SharingPropertiesobjectAn object that contains the business units that the category is shared with, with and the sharing type for each business unit. This object is included in the response only if the value of CategoryType is asset-shared.
SharingProperties.SharedWithobjectA list of member IDs (MIDs) that the category is shared with.
SharingProperties.SharingTypestringIndicates the permission that you’re granting to the list of MIDs that the category is shared with. The only possible value is edit.
DescriptionstringA description of the category.
StatusNameTypeDescription
200  A single updated category
 IdstringThe unique ID for the category.
 NamestringThe name of the category.
 ParentIdnumberThe ID of the parent category.
 CategoryTypestringThe type of category. Possible values are asset and asset-shared.
 MemberIdnumberThe member ID (MID) of the account associated with the category.
 EnterpriseIdnumberThe enterprise ID (EID) associated with the category.
 SharingPropertiesobjectAn object that contains the business units that the category is shared with, with and the sharing type for each business unit. This object is included in the response only if the value of CategoryType is asset-shared.
    
403  Unauthorized
 MessagestringInsufficient privileges
 ErrorCodenumber20002
    
404  Not found
 MessagestringObject not found
 ErrorCodenumber30003
    
500  Internal server error
 MessagestringNo message
 ErrorCodenumber10000

To update a category, issue a PUT request to the /asset/v1/content/categories/{categoryId} endpoint, replacing {categoryId} with the unique ID of the category that you want to update.

The response contains information about the updated category.