Deletes a draft marketplace listing.
curl --request DELETE \
--url https://test-instockrx-api.azurewebsites.net/api/v1/draft-listings/{id} \
--header 'X-INVIEW-AUTH: <api-key>'const options = {method: 'DELETE', headers: {'X-INVIEW-AUTH': '<api-key>'}};
fetch('https://test-instockrx-api.azurewebsites.net/api/v1/draft-listings/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://test-instockrx-api.azurewebsites.net/api/v1/draft-listings/{id}"
headers = {"X-INVIEW-AUTH": "<api-key>"}
response = requests.delete(url, headers=headers)
print(response.text){
"error": "<string>",
"statusCode": 123,
"message": "<string>"
}{
"error": "<string>",
"statusCode": 123,
"message": "<string>"
}{
"error": "<string>",
"statusCode": 123,
"message": "<string>"
}{
"error": "<string>",
"statusCode": 123,
"message": "<string>"
}Draft Listings
Deletes a draft marketplace listing.
Removes a draft listing identified by its ID. The draft must exist and belong to the group.
Validation Rules
| Field | Required | Type | Rules |
|---|---|---|---|
| id (route) | Yes | Guid | Draft listing must exist. Group must own the draft |
DELETE
/
api
/
v1
/
draft-listings
/
{id}
Deletes a draft marketplace listing.
curl --request DELETE \
--url https://test-instockrx-api.azurewebsites.net/api/v1/draft-listings/{id} \
--header 'X-INVIEW-AUTH: <api-key>'const options = {method: 'DELETE', headers: {'X-INVIEW-AUTH': '<api-key>'}};
fetch('https://test-instockrx-api.azurewebsites.net/api/v1/draft-listings/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://test-instockrx-api.azurewebsites.net/api/v1/draft-listings/{id}"
headers = {"X-INVIEW-AUTH": "<api-key>"}
response = requests.delete(url, headers=headers)
print(response.text){
"error": "<string>",
"statusCode": 123,
"message": "<string>"
}{
"error": "<string>",
"statusCode": 123,
"message": "<string>"
}{
"error": "<string>",
"statusCode": 123,
"message": "<string>"
}{
"error": "<string>",
"statusCode": 123,
"message": "<string>"
}