Create a product template map
post
/crmRestApi/resources/11.13.18.05/productTemplateMappings
Request
Header Parameters
-
Metadata-Context:
If the REST API supports runtime customizations, the shape of the service may change during runtime. The REST client may isolate itself from these changes or choose to interact with the latest version of the API by specifying this header. For example: Metadata-Context:sandbox="TrackEmployeeFeature".
-
REST-Framework-Version:
The protocol version between a REST client and service. If the client does not specify this header in the request the server will pick a default version for the API.
Supported Media Types
- application/json
Root Schema : schema
Type:
Show Source
object
-
InventoryItemId: integer
(int64)
The unique identifier of the inventory item.
-
ItemClassGroupId: integer
(int64)
The identifier of the item template???s root item class.
-
ItemTemplateName: string
Maximum Length:
960
The item template name for which the mapping is created. -
LongDescription: string
Maximum Length:
4000
The description of the mapped product template. -
ObjectVersionNumber: integer
(int32)
The number used to implement optimistic locking. This number is incremented every time that the row is updated. The number is compared at the start and end of a transaction to determine whether another session has updated the row.
-
OrganizationId: integer
(int64)
The unique identifier of the inventory item organization associated with the product template.
-
ProdTmplMappingCode: string
Maximum Length:
300
The alternate unique identifier of the product template mapping. -
ProdTmplMappingId: integer
(int64)
The unique identifier of the product template mapping.
-
ProductTemplateName: string
Maximum Length:
240
The name of the mapped product template.
Response
Supported Media Types
- application/json
Default Response
The following table describes the default response for this task.
Headers
-
Metadata-Context:
If the REST API supports runtime customizations, the shape of the service may change during runtime. The REST client may isolate itself from these changes or choose to interact with the latest version of the API by specifying this header. For example: Metadata-Context:sandbox="TrackEmployeeFeature".
-
REST-Framework-Version:
The protocol version between a REST client and service. If the client does not specify this header in the request the server will pick a default version for the API.
Root Schema : productTemplateMappings-item-response
Type:
Show Source
object
-
CreatedBy: string
Read Only:
true
Maximum Length:64
The user who created the product template mapping record. -
CreationDate: string
(date-time)
Read Only:
true
The date and time when the product template mapping record was created. -
InventoryItemId: integer
(int64)
The unique identifier of the inventory item.
-
ItemClassGroupId: integer
(int64)
The identifier of the item template???s root item class.
-
ItemTemplateName: string
Maximum Length:
960
The item template name for which the mapping is created. -
LastUpdateDate: string
(date-time)
Read Only:
true
The date and time when the product template mapping record was last updated. -
LastUpdatedBy: string
Read Only:
true
Maximum Length:64
The user who last updated the product template mapping record. -
LastUpdateLogin: string
Read Only:
true
Maximum Length:32
The login of the user who last updated the product template mapping record. -
links: array
Links
Title:
Links
The link relations associated with the resource instance. -
LongDescription: string
Maximum Length:
4000
The description of the mapped product template. -
ObjectVersionNumber: integer
(int32)
The number used to implement optimistic locking. This number is incremented every time that the row is updated. The number is compared at the start and end of a transaction to determine whether another session has updated the row.
-
OrganizationCode: string
Read Only:
true
Maximum Length:255
The unique code of the sales product item organization associated with the product template. -
OrganizationId: integer
(int64)
The unique identifier of the inventory item organization associated with the product template.
-
ProdTmplMappingCode: string
Maximum Length:
300
The alternate unique identifier of the product template mapping. -
ProdTmplMappingId: integer
(int64)
The unique identifier of the product template mapping.
-
ProductTemplateName: string
Maximum Length:
240
The name of the mapped product template.
Nested Schema : Links
Type:
array
Title:
Links
The link relations associated with the resource instance.
Show Source
Nested Schema : link
Type:
Show Source
object
-
href: string
Title:
hyperlink reference
The URI to the related resource. -
kind: string
Title:
kind
Allowed Values:[ "collection", "item", "describe", "other" ]
The kind of the related resource. -
name: string
Title:
name
The name of the link to the related resource. -
properties: object
properties
-
rel: string
Title:
relation
Allowed Values:[ "self", "lov", "parent", "canonical", "child", "enclosure", "action", "custom" ]
The name of the relation to the resource instance. Example: self.
Nested Schema : properties
Type:
Show Source
object
-
changeIndicator: string
Change indicator or the ETag value of the resource instance.
Links
- TemplateVO1
-
The following properties are defined on the LOV link relation:
- Source Attribute: ItemTemplateName; Target Attribute: TemplateName
- Display Attribute: TemplateName