itemVariant resource type

Represents an item variant in Business Central.

Note

For information about enabling APIs for Business Central see Enabling the APIs for Dynamics 365 Business Central.

Methods

MethodReturn TypeDescription
GET itemVariantitemVariantGets an item variant object.
DELETE itemVariantnoneDeletes an item variant object.
POST itemVariantitemVariantCreates an item variant object.
PATCH itemVariantitemVariantUpdates an item variant object.
NavigationReturn TypeDescription
itemitemGets the item of the itemVariant.
picturepictureGets the picture of the itemVariant.

Properties

PropertyTypeDescription
idGUIDThe unique ID of the item variant. Non-editable.
itemIdGUIDThe ID of the item in the item variant.
itemNumberstringThe name of the item in the item variant.
codestringThe code of the item variant.
descriptionstringSpecifies the description of the item variant.
lastModifiedDateTimedatetimeThe last datetime the item variant was modified. Read-Only.

JSON representation

Here's a JSON representation of the itemVariant resource.

{
    "id": "GUID",
    "itemId": "GUID",
    "itemNumber": "string",
    "code": "string",
    "description": "string",
    "lastModifiedDateTime": "datetime"
}

GET itemVariant
DELETE itemVariant
POST itemVariant
PATCH itemVariant