Zum Inhalt

Create ItemAttributeValue

Create a ItemAttributeValue object in Business Central.

HTTP request

Replace the URL prefix for Business Central depending on environment following the guideline.

POST {businesscentralPrefix}/companies({id})/itemAttributeValuesWebCon

Request headers

Header Value
Authorization Bearer {token}. Required.
Content-Type application/json

Request body

In the request body, supply a JSON representation of ItemAttributeValueWebCon object.

Response

If successful, this method returns 201 Created response code and an ItemAttributeValue object in the response body.

Example

Request

Here is an example of a request.

POST https://{businesscentralPrefix}/companies({id})/itemAttributeValuesWebCon
Content-type: application/json

{
    "attributeValueID": 1,
    "value": "turquoise",
    "blocked": false
}

Response

Here is an example of the response.

Note

The response object shown here may be truncated for brevity. All of the properties will be returned from an actual call.

{
    "id": "bda6176f-a43a-ee11-a0d1-e0b8ab8ae0f0",
    "actualID": 62,
    "value": "turquoise",
    "blocked": false,
    "attributeValueID": 1
}

See also

Tips for working with the APIs
ItemAttributeValue
Get ItemAttributeValue
Delete ItemAttributeValue
Update ItemAttributeValue