Publication Date – March 29, 2022
https://api.bitsighttech.com/ratings/v1/subscriptions/bulk
Unsubscribe from multiple companies in your portfolio.
Parameters
*Required.
Parameter | Description | Values | |
---|---|---|---|
deleteBody |
Companies to unsubscribe from. | [Array] Objects containing company details. | |
guidBody |
Identify companies to unsubscribe from. | [String] Company unique identifier [entity_guid ]. See GET: Portfolio Details. |
Example Request
cURL:
curl 'https://api.bitsighttech.com/ratings/v1/subscriptions/bulk' -H 'Content-Type: application/json' --data-binary '{ "delete": [ { "guid": "a5e23bf0-38d4-4cea-aa50-19ee75da481d", } ] }' --compressed -u api_token:
JSON:
{ "delete": [ { "guid": "a5e23bf0-38d4-4cea-aa50-19ee75da481d", } ] }
Example Response
{ "added": [], "modified": [], "deleted": [ { "guid": "a5e23bf0-38d4-4cea-aa50-19ee75da481d" }, ], "error": [ { "guid": "1b3d260c-9e23-4e19-b3a5-a0bcf67d74d9", "message": "insufficient-permissions" } ] }
Response Attributes
Field | Description | ||
---|---|---|---|
addedArray |
New subscriptions. | ||
modifiedArray |
Modified subscriptions. | ||
deletedArray |
Removed subscriptions. | ||
Object | A deleted subscription. | ||
guidString [ entity_guid ] |
The unique identifier of this unsubscribed company. | ||
errorArray |
Request errors. | ||
Object | A request error. | ||
guidString [ entity_guid ] |
The unique identifier of this company. | ||
messageString |
The error summary. |
Status Codes
See common errors and status codes.
Code | Description |
---|---|
200 – OK |
Everything worked as expected. |
403 – Unauthorized |
You do not have subscription permissions. |