Creating a New Revision of a Catalog Item

Create a Catalog Item Revision shows the REST binding to create a new revision of a catalog item using the latest revision as the basis for the new revision.

Table 1. Create a Catalog Item Revision
URL
POST /data/CatalogItem/newrev/{CatalogItemId}
Input You must define the CatalogItemInfo. For example:
<CatalogItemInfo>
    <Name>mtx_BILLING_CYCLE_C_MOD</Name>
    <Description></Description>
    <TemplateReference>
        <TemplateReferenceInfo>
            <Id>91</Id>
            <Version>0</Version>
            <IsBundle>false</IsBundle>
            <IsFinanceContract>false</IsFinanceContract>
            <IsServiceContract>false</IsServiceContract>
        </TemplateReferenceInfo>
    </TemplateReference>
    <StartDate>2023-01-01T00:00:00</StartDate>
    <MinStartDate></MinStartDate>
    <Parameters>
        <ParameterInfo>
            <Name>Purchase Discount</Name>
            <Type>decimal</Type>
            <Id>16</Id>
            <Description>Purchase Discount</Description>
            <DefaultValue>.25</DefaultValue>
        </ParameterInfo>
    </Parameters>
    <ParameterBindings>
        <ParameterBindingInfo>
            <FromParameterId>16</FromParameterId>
            <FromParameterName>Purchase Discount</FromParameterName>
            <FromParameterDescription>Purchase Discount</FromParameterDescription>
            <ToParameterId>16</ToParameterId>
            <ToParameterName>Purchase Discount</ToParameterName>
            <ToParameterDescription>Purchase Discount</ToParameterDescription>
            <ToParameterType>decimal</ToParameterType>
            <BindTo>Parameter</BindTo>
        </ParameterBindingInfo>
    </ParameterBindings>
</CatalogItemInfo>
Response
<CatalogItemResponse id='4'>
    <Result>0</Result>
    <ResultMessage>OK</ResultMessage>
    <OperationType>create</OperationType>
    <Id>4</Id>
    <Revision>1</Revision>
    <CorrectionNumber>1</CorrectionNumber>
    <Name>mtx_BILLING_CYCLE_C_MOD</Name>
    <Description></Description>
    <TemplateReference>
        <TemplateReferenceInfo>
            <Id>91</Id>
            <Version>0</Version>
            <IsBundle>false</IsBundle>
            <IsFinanceContract>false</IsFinanceContract>
            <IsServiceContract>false</IsServiceContract>
        </TemplateReferenceInfo>
    </TemplateReference>
    <StartDate>2023-01-01T00:00:00</StartDate>
    <MinStartDate>2000-01-01</MinStartDate>
    <Parameters>
        <ParameterInfo>
            <Name>Purchase Discount</Name>
            <Type>decimal</Type>
            <Id>16</Id>
            <Description>Purchase Discount</Description>
            <DefaultValue>.25</DefaultValue>
        </ParameterInfo>
    </Parameters>
    <ParameterBindings>
        <ParameterBindingInfo>
            <FromParameterId>16</FromParameterId>
            <FromParameterName>Purchase Discount</FromParameterName>
            <FromParameterDescription>Purchase Discount</FromParameterDescription>
            <ToParameterId>16</ToParameterId>
            <ToParameterName>Purchase Discount</ToParameterName>
            <ToParameterDescription>Purchase Discount</ToParameterDescription>
            <ToParameterType>decimal</ToParameterType>
            <BindTo>Parameter</BindTo>
        </ParameterBindingInfo>
    </ParameterBindings>
</CatalogItemResponse>