DELETE v4/packages/:pkg_sku/assets - Delete

The v4/packages APIs require a special API Key permission. Please contact your Customer Success Manager if you wish to use them.

This API allows the removal of assets/SKUs from a specific package. You can only remove assets from a package in which the requesting API key created the package.

Verb/URI

DELETE https://api.vitalsource.com/v4/packages/:pkg_sku/assets

Data Definitions

Name
Usage
Description
Data Type
Example
Required
products Message body  Product(s) your wish removed from package array ["{{variable_vbid}}", "{{variable_vbid2}}"] Yes

 

Request Headers

X-VitalSource-API-Key: AllCAPSANDNUMBERS
Content-Type: application/json

Request Body

{ 
"products": ["{{variable_vbid}}", "{{variable_vbid2}}"]
}

 

Response

Response body

{
"removed_count": 2
}

 

Response descriptions

Name
Description
removed_count Number of items successfully removed from the package.


Error Codes

HTTP & Error messages 
Message
Notes
200

 

Success. Errors provided simultaneously
403

 Permission denied

 
404

Package not found

 

 

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.