Znode

PUT categories/{categoryId}

Updates an existing category.

Request Information

» Parameters

Name Description Additional information
categoryId The ID of the category.

Define this parameter in the request URI.

model The model of the category.

Define this parameter in the request body.

Request Body Formats

Sample:
	{
  "CategoryLongDescription": "sample string 1",
  "AlternateDescription": "sample string 2",
  "CategoryId": 3,
  "CategoryNodes": {
    "$id": "2",
    "$values": [
      {
        "$id": "3",
        "Catalog": {
          "$id": "4",
          "CatalogId": 1,
          "ExternalId": "sample string 2",
          "IsActive": true,
          "Name": "sample string 4",
          "PortalId": 1,
          "PreserveCategories": true,
          "IsDefault": true,
          "IsFromSitecore": true
        },
        "CatalogId": 1,
        "Category": {
          "$ref": "1"
        },
        "CategoryId": 1,
        "CategoryNodeId": 2,
        "BeginDate": "2019-03-24T20:42:53.1323924-07:00",
        "CssId": 1,
        "DisplayOrder": 1,
        "EndDate": "2019-03-24T20:42:53.1323924-07:00",
        "IsActive": true,
        "MasterPageId": 1,
        "ParentCategoryNodeId": 1,
        "ThemeId": 1,
        "ErrorMessage": "sample string 4",
        "Name": "sample string 5",
        "Title": "sample string 6",
        "VisibleInd": true,
        "IsCategoryAssociated": true
      },
      {
        "$ref": "3"
      },
      {
        "$ref": "3"
      }
    ]
  },
  "CategoryProfiles": {
    "$id": "5",
    "$values": [
      {
        "$id": "6",
        "CategoryProfileID": 1,
        "CategoryID": 2,
        "ProfileID": 3,
        "EffectiveDate": "2019-03-24T20:42:53.1323924-07:00",
        "ProfileName": "sample string 5"
      },
      {
        "$ref": "6"
      },
      {
        "$ref": "6"
      }
    ]
  },
  "CategoryUrl": "sample string 4",
  "CreateDate": "2019-03-24T20:42:53.1323924-07:00",
  "Custom1": "sample string 5",
  "Custom2": "sample string 6",
  "Custom3": "sample string 7",
  "Description": "sample string 8",
  "DisplayOrder": 1,
  "ExternalId": "sample string 9",
  "ImageAltTag": "sample string 10",
  "ImageFile": "sample string 11",
  "ImageLargePath": "sample string 12",
  "ImageMediumPath": "sample string 13",
  "ImageSmallPath": "sample string 14",
  "ImageSmallThumbnailPath": "sample string 15",
  "ImageThumbnailPath": "sample string 16",
  "IsVisible": true,
  "Name": "sample string 18",
  "ProductIds": "sample string 19",
  "SeoDescription": "sample string 20",
  "SeoKeywords": "sample string 21",
  "SeoTitle": "sample string 22",
  "SeoUrl": "sample string 23",
  "ShortDescription": "sample string 24",
  "RedirectUrlInd": true,
  "Subcategories": {
    "$id": "7",
    "$values": [
      {
        "$ref": "1"
      },
      {
        "$ref": "1"
      },
      {
        "$ref": "1"
      }
    ]
  },
  "SubcategoryGridIsVisible": true,
  "IsAssociate": true,
  "Title": "sample string 28",
  "UpdateDate": "2019-03-24T20:42:53.1323924-07:00",
  "CategoryBanner": "sample string 29",
  "PortalID": 1,
  "ProductId": 30,
  "CategoryIds": "sample string 31",
  "UserName": "sample string 32",
  "IsFromSitecore": true,
  "ProductCount": 34,
  "ParentCategoryNodeId": 35,
  "IsActive": true,
  "ActiveProductCount": 37
}