---
updatedAt: 2026-04-21T04:46:34.000Z
agentTools:
  projectIndex: https://developer.alloy.com/public/llms.txt
---

# Assign Investigations

Assigns one or more Investigations to an Agent

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Alloy API",
    "version": "1.0.0",
    "description": "hey hey hey, it's the Alloy API!"
  },
  "servers": [
    {
      "url": "https://sandbox.alloy.co/v1",
      "description": "Sandbox endpoint"
    }
  ],
  "security": [
    {
      "oauth2": []
    },
    {
      "basic": []
    }
  ],
  "tags": [
    {
      "name": "Investigations",
      "description": "Investigations are reviewable items that contain Alerts for suspicious activities for Alloy's Ongoing Monitoring solution."
    }
  ],
  "paths": {
    "/investigations/assign": {
      "put": {
        "tags": [
          "Investigations"
        ],
        "summary": "Assign Investigations",
        "description": "Assigns one or more Investigations to an Agent",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "agent_token": {
                    "type": "string",
                    "example": "AG-L83m6iTwcXdNg3CHndS4"
                  },
                  "investigation_tokens": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "example": "INV-EAx2xoAsqF1ibKTQzkXV"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "x-summary": "OK",
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "404": {
            "x-summary": "Not found",
            "description": "Agent or Investigation not found",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/InvestigationsNotFound"
                    }
                  ]
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "basic": {
        "type": "http",
        "description": "HTTP basic authorization using a workflow token and secret",
        "scheme": "basic"
      },
      "oauth2": {
        "type": "oauth2",
        "description": "Oauth2 using a workflow token and secret to generate a bearer token",
        "flows": {
          "clientCredentials": {
            "tokenUrl": "/oauth/bearer",
            "scopes": {}
          }
        }
      }
    },
    "schemas": {
      "InvestigationsNotFound": {
        "type": "object",
        "properties": {
          "status_code": {
            "type": "integer",
            "example": 404
          },
          "error": {
            "type": "object",
            "properties": {
              "minor_code": {
                "type": "integer",
                "example": 4041
              },
              "type": {
                "type": "string",
                "example": "Not Found"
              },
              "message": {
                "type": "string",
                "example": "Unable to find the requested resource"
              },
              "details": {
                "type": "object",
                "properties": {
                  "investigation_token": {
                    "type": "string",
                    "example": "INV-EAx2xoAsqF1ibKTQzkXx"
                  }
                }
              },
              "error_token": {
                "type": "string",
                "example": "4d2743bb-d6d7-4421-a561-b7be52b3fc87"
              }
            }
          },
          "timestamp": {
            "type": "integer",
            "example": 1734014865089
          },
          "evaluation_token": {
            "type": "string",
            "nullable": true,
            "example": null
          },
          "entity_token": {
            "type": "string",
            "nullable": true,
            "example": null
          },
          "application_token": {
            "type": "string",
            "example": null
          },
          "application_version_id": {
            "type": "string",
            "nullable": true,
            "example": null
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": false
  }
}
```