curl --request POST \
--url https://api.decodahealth.com/inventory/stocks/unlink-supplier \
--header 'API-KEY: <api-key>' \
--header 'Content-Type: application/json' \
--header 'TENANT: <tenant>' \
--data '
[
{
"supplierId": "<string>",
"stockId": "<string>",
"id": "<string>",
"uoms": [
{
"supplierPartNumber": "<string>",
"uom": "AMPOULES",
"id": "<string>",
"supplierToStockId": "<string>",
"conversionFactor": 1,
"isDefault": false,
"displayLabel": "<string>",
"price": 123,
"leadTime": 1,
"createdDate": "2023-11-07T05:31:56Z",
"updatedDate": "2023-11-07T05:31:56Z",
"isArchived": false
}
],
"createdDate": "2023-11-07T05:31:56Z",
"updatedDate": "2023-11-07T05:31:56Z",
"isArchived": false
}
]
'{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}curl --request POST \
--url https://api.decodahealth.com/inventory/stocks/unlink-supplier \
--header 'API-KEY: <api-key>' \
--header 'Content-Type: application/json' \
--header 'TENANT: <tenant>' \
--data '
[
{
"supplierId": "<string>",
"stockId": "<string>",
"id": "<string>",
"uoms": [
{
"supplierPartNumber": "<string>",
"uom": "AMPOULES",
"id": "<string>",
"supplierToStockId": "<string>",
"conversionFactor": 1,
"isDefault": false,
"displayLabel": "<string>",
"price": 123,
"leadTime": 1,
"createdDate": "2023-11-07T05:31:56Z",
"updatedDate": "2023-11-07T05:31:56Z",
"isArchived": false
}
],
"createdDate": "2023-11-07T05:31:56Z",
"updatedDate": "2023-11-07T05:31:56Z",
"isArchived": false
}
]
'{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}The tenant you are making this request on behalf of
Your api key
ID of the supplier
ID of the stock
Unique identifier for the supplier-to-stock relationship
UOM variants for this supplier-stock link
Show child attributes
Date the link was created
Date the link was last updated
Whether the link is archived
Successful Response