Creating a Revision of a Catalog Item from a Revision

Create a Catalog Item Revision from a Revision shows the REST binding to create a new revision of a catalog item from a specific revision.

Table 1. Create a Catalog Item Revision from a Revision
URL
POST /data/CatalogItem/newrev/{CatalogItemId}/{revision}
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>
        <ParameterInfo>
            <Name>PurchaseGrant</Name>
            <Type>decimal</Type>
            <Id>18</Id>
            <Description>Purchase Grant</Description>
            <DefaultValue>20</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>
        <ParameterBindingInfo>
            <FromParameterId>18</FromParameterId>
            <FromParameterName>PurchaseGrant</FromParameterName>
            <FromParameterDescription>Purchase Grant</FromParameterDescription>
            <ToParameterId>18</ToParameterId>
            <ToParameterName>PurchaseGrant</ToParameterName>
            <ToParameterDescription>Purchase Grant</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>2</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>2023-01-01</MinStartDate>
    <Parameters>
        <ParameterInfo>
            <Name>Purchase Discount</Name>
            <Type>decimal</Type>
            <Id>16</Id>
            <Description>Purchase Discount</Description>
            <DefaultValue>.25</DefaultValue>
        </ParameterInfo>
        <ParameterInfo>
            <Name>Purchase Discount</Name>
            <Type>decimal</Type>
            <Id>16</Id>
            <Description>Purchase Discount</Description>
            <DefaultValue>.25</DefaultValue>
        </ParameterInfo>
        <ParameterInfo>
            <Name>RecurringGrant</Name>
            <Type>decimal</Type>
            <Id>18</Id>
            <Description>Recurring Grant</Description>
            <DefaultValue>20</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>