PUT associations({associationId})/categories({categoryId})

Method to modify a category

Request Information

Parameters

NameDescriptionAdditional information
associationId
Association of interest

Define this parameter in the request URI.

categoryId
Category to modify

Define this parameter in the request URI.

newData
Data to use to modify the category

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "Id": 1,
  "ParentId": 1,
  "GiftCardCategoryId": 1,
  "GiftCardSubCategoryId": 1,
  "Name": "sample string 2",
  "MemberCount": 3,
  "QuickLinkId": 1,
  "HasChildren": true
}

application/xml, text/xml

Sample:
<CategoryResource xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MicroNet.WebAPI.Classes.Resources">
  <GiftCardCategoryId>1</GiftCardCategoryId>
  <GiftCardSubCategoryId>1</GiftCardSubCategoryId>
  <HasChildren>true</HasChildren>
  <Id>1</Id>
  <MemberCount>3</MemberCount>
  <Name>sample string 2</Name>
  <ParentId>1</ParentId>
  <QuickLinkId>1</QuickLinkId>
</CategoryResource>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Modified category

Response body formats

application/json, text/json

Sample:

Sample not available.