curl --request PATCH \
--url http:localhost:3000/v2/articles/{id} \
--header 'Content-Type: application/json' \
--header 'x-API-Key: <api-key>' \
--data '{
"_id": "<string>",
"number": 123,
"companyId": "<string>",
"status": {
"status": 123,
"createdAt": "2023-11-07T05:31:56Z",
"createdBy": "<string>",
"lastModifiedAt": "2023-11-07T05:31:56Z",
"lastModifiedBy": "<string>"
},
"chatId": "<string>",
"type": "ARTICLE",
"name": "<string>",
"price": 123,
"unit": "<string>",
"description": "<string>",
"numberExtern": "<string>",
"prices": [
{
"sellPrice": 19.99,
"buyPrice": 15,
"currency": "EUR",
"tax": 0.19,
"taxRateId": "60c72b2f9b1e8d3f4c8b4567",
"comment": "<string>"
}
],
"bookingAccountNumber": "<string>",
"skontoBookingAccountNumber": "<string>",
"comment": "<string>",
"attachmentIds": [
"<string>"
],
"articleDescription": "<string>",
"imageUrl": "<string>",
"groupId": "<string>",
"supplierId": "<string>",
"priority": 123,
"inStock": 123,
"minimumInStock": 123
}'
{
"_id": "<string>",
"number": 123,
"companyId": "<string>",
"status": {
"status": 123,
"createdAt": "2023-11-07T05:31:56Z",
"createdBy": "<string>",
"lastModifiedAt": "2023-11-07T05:31:56Z",
"lastModifiedBy": "<string>"
},
"chatId": "<string>",
"type": "ARTICLE",
"name": "<string>",
"price": 123,
"unit": "<string>",
"description": "<string>",
"numberExtern": "<string>",
"prices": [
{
"sellPrice": 19.99,
"buyPrice": 15,
"currency": "EUR",
"tax": 0.19,
"taxRateId": "60c72b2f9b1e8d3f4c8b4567",
"comment": "<string>"
}
],
"bookingAccountNumber": "<string>",
"skontoBookingAccountNumber": "<string>",
"comment": "<string>",
"attachmentIds": [
"<string>"
],
"articleDescription": "<string>",
"imageUrl": "<string>",
"groupId": "<string>",
"supplierId": "<string>",
"priority": 123,
"inStock": 123,
"minimumInStock": 123
}
Update an existing article. Only provided fields will be updated.
curl --request PATCH \
--url http:localhost:3000/v2/articles/{id} \
--header 'Content-Type: application/json' \
--header 'x-API-Key: <api-key>' \
--data '{
"_id": "<string>",
"number": 123,
"companyId": "<string>",
"status": {
"status": 123,
"createdAt": "2023-11-07T05:31:56Z",
"createdBy": "<string>",
"lastModifiedAt": "2023-11-07T05:31:56Z",
"lastModifiedBy": "<string>"
},
"chatId": "<string>",
"type": "ARTICLE",
"name": "<string>",
"price": 123,
"unit": "<string>",
"description": "<string>",
"numberExtern": "<string>",
"prices": [
{
"sellPrice": 19.99,
"buyPrice": 15,
"currency": "EUR",
"tax": 0.19,
"taxRateId": "60c72b2f9b1e8d3f4c8b4567",
"comment": "<string>"
}
],
"bookingAccountNumber": "<string>",
"skontoBookingAccountNumber": "<string>",
"comment": "<string>",
"attachmentIds": [
"<string>"
],
"articleDescription": "<string>",
"imageUrl": "<string>",
"groupId": "<string>",
"supplierId": "<string>",
"priority": 123,
"inStock": 123,
"minimumInStock": 123
}'
{
"_id": "<string>",
"number": 123,
"companyId": "<string>",
"status": {
"status": 123,
"createdAt": "2023-11-07T05:31:56Z",
"createdBy": "<string>",
"lastModifiedAt": "2023-11-07T05:31:56Z",
"lastModifiedBy": "<string>"
},
"chatId": "<string>",
"type": "ARTICLE",
"name": "<string>",
"price": 123,
"unit": "<string>",
"description": "<string>",
"numberExtern": "<string>",
"prices": [
{
"sellPrice": 19.99,
"buyPrice": 15,
"currency": "EUR",
"tax": 0.19,
"taxRateId": "60c72b2f9b1e8d3f4c8b4567",
"comment": "<string>"
}
],
"bookingAccountNumber": "<string>",
"skontoBookingAccountNumber": "<string>",
"comment": "<string>",
"attachmentIds": [
"<string>"
],
"articleDescription": "<string>",
"imageUrl": "<string>",
"groupId": "<string>",
"supplierId": "<string>",
"priority": 123,
"inStock": 123,
"minimumInStock": 123
}
Article ID
An article is a type of product. Base class for products, which can be either service products or articles. Base class for all entities that can have a chat associated with them. Base class for all entities in the system, providing common properties and methods.
Article updated successfully
An article is a type of product. Base class for products, which can be either service products or articles. Base class for all entities that can have a chat associated with them. Base class for all entities in the system, providing common properties and methods.
Was this page helpful?