https://api.bitsighttech.com/ratings/v1/subscriptions/bulk
Subscribe to up to 1000 companies.
Parameters
* Required.
Parameter | Values | |
---|---|---|
add * [Body] Identify companies to subscribe to. |
[Array] Objects containing company details. | |
guid * [Body] Identify the company to query. |
[String] Company unique identifier [entity_guid ]. See GET: Portfolio Details. |
|
folder [Body] Assign one or multiple folders for the company. |
[Array] Comma-separated folder names. See GET: Folder Details. | |
tier [Body] Assign a tier for the company. |
[String] Tier name. See GET: Tiers. | |
type * [Body] Select a subscription to use. |
[String] Subscription slug name. See subscription types. |
Example Request
cURL Example
curl 'https://api.bitsighttech.com/ratings/v1/subscriptions/bulk' -H 'Content-Type: application/json' --data-binary '{ "add": [ { "guid": "a5e23bf0-38d4-4cea-aa50-19ee75da481d", "folder": ["my_folder", "my_other_folder"], "tier": "tier_1", "type": "continuous_monitoring" } ] }' --compressed -u api_token:
JSON Example
{ "add": [ { "guid": "a5e23bf0-38d4-4cea-aa50-19ee75da481d", "folder": ["my_folder", "my_other_folder"], "tier": "tier_1", "type": "continuous_monitoring" } ] }
Example Response
{ "added": [ "a5e23bf0-38d4-4cea-aa50-19ee75da481d", ], "modified": [ "feeccea4-e062-4cf5-9a3d-7034addb12d1", ], "errors": [ { "guid": "1b3d260c-9e23-4e19-b3a5-a0bcf67d74d9", "message": "Error message." } ] }
Response Attributes
Field | Description | |
---|---|---|
addedArray [ entity_guid ] |
Companies that were subscribed to. | |
modifiedArray [ entity_guid ] |
Companies that were switched. | |
errorsArray |
Unsuccessful subscription modifications. | |
guidString [ entity_guid ] |
The unique identifier of this company. | |
messageString |
The reason for the error. Payload Validation Related Error Messages:
Subscription Related Error Messages:
|
Status Codes
Code | Description |
---|---|
200 – Okay |
Everything worked as expected. |
403 – Unauthorized |
You do not have subscription modification permissions. |
- March 21, 2022: Published.
Feedback
0 comments
Please sign in to leave a comment.