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
https://api.vitalsource.com/v4/packages/:pkg_sku/assetsData 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 |
Comments
Please sign in to leave a comment.