v53

latestOpenAPI 3.0.3raw.githubusercontent.com2026-08-076771,7565.2 MB
Security AI Assistant API

Apply a bulk action to anonymization fields

Spaces method and path for this operation:

<div><span class="operation-verb post">post</span>&nbsp;<span class="operation-path">/s/{space_id}/api/security_ai_assistant/anonymization_fields/_bulk_action</span></div>

Refer to Spaces for more information.

Apply a bulk action to multiple anonymization fields. The bulk action is applied to all anonymization fields that match the filter or to the list of anonymization fields by their IDs.

post/api/security_ai_assistant/anonymization_fields/_bulk_action

Request body

Example request

{
  "create": [
    {
      "allowed": true,
      "anonymized": false,
      "field": "host.name"
    },
    {
      "allowed": false,
      "anonymized": true,
      "field": "user.name"
    }
  ],
  "delete": {
    "ids": [
      "field5",
      "field6"
    ],
    "query": "field: host.name"
  },
  "update": [
    {
      "allowed": true,
      "anonymized": false,
      "id": "field8"
    },
    {
      "allowed": false,
      "anonymized": true,
      "id": "field9"
    }
  ]
}

Response

Indicates a successful call.

anonymization_fields_countinteger

Total number of anonymization fields processed.

messagestring

Message providing information about the bulk action result.

status_codeinteger

HTTP status code returned.

successboolean

Indicates if the bulk action was successful.

Example response

{
  "anonymization_fields_count": 5,
  "attributes": {
    "errors": [
      {
        "anonymization_fields": [
          {
            "id": "field12",
            "name": "host.name"
          }
        ],
        "err_code": "UPDATE_FAILED",
        "message": "Failed to update anonymization field.",
        "status_code": 400
      }
    ],
    "results": {
      "created": [
        {
          "allowed": true,
          "createdAt": "2023-10-31T12:00:00Z",
          "createdBy": "user1",
          "field": "url.domain",
          "id": "I am a string",
          "namespace": "default",
          "timestamp": "2023-10-31T12:00:00Z",
          "updatedAt": "2023-10-31T12:00:00Z",
          "updatedBy": "user1"
        }
      ],
      "deleted": [
        "field3"
      ],
      "skipped": [
        {
          "id": "field4",
          "name": "user.name"
        }
      ],
      "updated": [
        {
          "allowed": true,
          "createdAt": "2023-10-31T12:00:00Z",
          "createdBy": "user1",
          "field": "url.domain",
          "id": "I am a string",
          "namespace": "default",
          "timestamp": "2023-10-31T12:00:00Z",
          "updatedAt": "2023-10-31T12:00:00Z",
          "updatedBy": "user1"
        }
      ]
    },
    "summary": {
      "skipped": 1,
      "succeeded": 10,
      "total": 12
    }
  },
  "message": "Bulk action completed successfully",
  "status_code": 200,
  "success": true
}