https://api.bitsighttech.com/ratings/v1/subscriptions/bulk
Subscribe to up to 1000 companies.
Parameters
* Required.
add-
* Required.
[Body] Identify companies to subscribe to.
Value: [Array] Objects containing company details.
guid-
* Required.
[Body] Identify the company to query.
Value: [String] Company unique identifier [
entity_guid]. See GET: Portfolio Details. folder-
[Body] Assign one or multiple folders for the company.
Value: [Array] Comma-separated folder names. See GET: Folder Details.
tier-
[Body] Assign a tier for the company.
Value: [String] Tier name. See GET: Tiers.
type-
* Required.
[Body] Select a subscription to use.
Value: [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 | |
|---|---|---|
added Array [ |
Companies that were subscribed to. | |
modified Array [ |
Companies that were switched. | |
errors Array |
Unsuccessful subscription modifications. | |
guid String [ |
The unique identifier of this company. | |
message String |
The reason for the error. Payload Validation Related Error Messages:
Subscription Related Error Messages:
|
|
Status Codes
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.