ScanopyScanopy
Credentials

Bulk create Credentials

Creates multiple credentials in one request. Validation is atomic — if any credential has an invalid type, none are created. Individual creates are sequential, so a mid-batch DB error leaves earlier credentials committed.

POST
/api/v1/credentials/bulk
Authorization<token>

User API key (Bearer scp_u_...). Create in Platform > API Keys.

In: header

Request Body

application/json

Response Body

application/json

application/json

curl -X POST "https://loading/api/v1/credentials/bulk" \  -H "Content-Type: application/json" \  -d '[    {      "credential_type": {        "community": {          "mode": "Inline",          "value": "string"        },        "type": "SnmpV2c"      },      "name": "string",      "organization_id": "7c60d51f-b44e-4682-87d6-449835ea4de6",      "tags": [        "497f6eca-6276-4993-bfeb-53cbbbba6f08"      ]    }  ]'
{
  "meta": {
    "api_version": 1,
    "server_version": "0.15.0"
  },
  "success": true,
  "data": [
    {
      "credential_type": {
        "community": {
          "mode": "Inline",
          "value": "string"
        },
        "type": "SnmpV2c"
      },
      "name": "string",
      "organization_id": "7c60d51f-b44e-4682-87d6-449835ea4de6",
      "tags": [
        "497f6eca-6276-4993-bfeb-53cbbbba6f08"
      ],
      "target_ips": [
        "string"
      ],
      "created_at": "2019-08-24T14:15:22Z",
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
      "updated_at": "2019-08-24T14:15:22Z"
    }
  ],
  "error": "string"
}
{
  "meta": {
    "api_version": 1,
    "server_version": "0.15.0"
  },
  "success": true,
  "code": "string",
  "error": "string",
  "params": {
    "property1": null,
    "property2": null
  }
}