Bulk create protection resources
Processes up to 100 items independently. Every item receives `created`, `already_exists`, `invalid`, `not_found`, `limit_reached` or `failed`.
POST/v1/protection-resources/bulkPOSTBulk create protection resourcescurl -X POST "https://api.darkradar.com/api/public/v1/protection-resources/bulk" \
-H "x-api-key: $DARKRADAR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"resources":[{"groupId":"64b1f0c2a9e4d21f8c3b9a10","resourceType":"domain","targetValue":"darkradar.com"}]}'Response
{
"success": true,
"message": "OK",
"data": {
"results": [
{
"index": 0,
"status": "created",
"resource": {
"_id": "64b1f0c2a9e4d21f8c3b9a11",
"resourceType": "domain",
"targetValue": "darkradar.com"
}
}
],
"summary": {
"created": 1
}
}
}Request body
| Fields | Values |
|---|---|
resources · object[] · required | 1–100 protection resources; same fields as single create |
Responses
200Success400Invalid request (malformed id, missing or invalid field)401Key missing, invalid, expired or revoked403Insufficient scope, no API access in plan, or product not enabled404Record not found or not owned by this key’s firm408The request exceeded its maximum response time429Rate limit exceeded; retry after a minuteResponse limits
Rate limit500 requests per 15 min · per IP