itemVariant resource type
Important: Currently all requests to API v2.0 must append $schemaversion=2.0 to the request URL to work properly. This is to uptake the new improved $metadata model avaliable from Business Central 17. An update will be applied shortly to apply the schemaversion automatically to API v2.0. For all other APIs $schemaversion=1.0 will be the default, unless specified in the request URL with $schemaversion=2.0. A solution is being worked on, where the schemaversion will be defined in the extension.
Represents an item variant in Dynamics 365 Business Central.
Note
For information about enabling APIs for Dynamics NAV see Enabling the APIs for Dynamics 365 Business Central.
Methods
Method | Return Type | Description |
---|---|---|
GET itemVariant | itemVariant | Gets a item variant object. |
DELETE itemVariant | none | Deletes a item variant object. |
POST itemVariant | itemVariant | Creates a item variant object. |
PATCH itemVariant | itemVariant | Updates a item variant object. |
Navigation
Navigation | Return Type | Description |
---|---|---|
item | item | Gets the item of the itemVariant. |
Properties
Property | Type | Description |
---|---|---|
id | GUID | The unique ID of the item variant. Non-editable. |
itemId | GUID | The ID of the item in the item variant. |
itemNumber | string | The name of the item in the item variant. |
code | string | The code of the item variant. |
description | string | Specifies the description of the item variant. |
JSON representation
Here is a JSON representation of the itemVariant resource.
{
"id": "GUID",
"itemId": "GUID",
"itemNumber": "string",
"code": "string",
"description": "string"
}
See Also
GET itemVariant DELETE itemVariant POST itemVariant PATCH itemVariant