Bulk create credentials
Changed onCreates 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.
Request
- Base URLhttps://app.scanopy.net
- URLhttps://app.scanopy.net/api/v1/credentials/bulk
- Auth
- API key in header Authorization
- or API key in cookie session_id
Request body
Example request
[
{
"credential_type": {
"broadcast_address": "192.168.1.1"
}
}
]Response
Credentials created successfully
Example response
{
"data": [
{
"credential_type": {
"broadcast_address": "192.168.1.1"
}
}
],
"meta": {
"api_version": 1,
"server_version": "0.19.4"
}
}Changes
- breaking
removed
subschema #1: SnmpV1subschema #2: SnmpV2cfrom the/////request propertyoneOflist - breaking
added
subschema #1: SnmpCommunityto the//////response propertyoneOflist for the response status - info
added
subschema #1: SnmpCommunityto the/////request propertyoneOflist - info
removed
subschema #1: SnmpV1subschema #2: SnmpV2cfrom the//////response propertyoneOflist for the response status
- breaking
- breaking
removed
subschema #1subschema #2subschema #3from the//////////request propertyoneOflist - breaking
added
subschema #1: NoAuthNoPrivsubschema #2: AuthNoPrivsubschema #3: AuthPrivto the///////////response propertyoneOflist for the response status - info
added
subschema #1: NoAuthNoPrivsubschema #2: AuthNoPrivsubschema #3: AuthPrivto the//////////request propertyoneOflist - info
removed
subschema #1subschema #2subschema #3from the///////////response propertyoneOflist for the response status
- breaking