# Modify Data

## Agent & MCP

<table data-full-width="true"><thead><tr><th width="50">#</th><th width="420">API</th><th>Description</th></tr></thead><tbody><tr><td>1</td><td><strong>POST /api/createCollection</strong></td><td>Create a new Agentic Collection in Akto.</td></tr><tr><td>2</td><td><strong>POST /api/createCustomCollection</strong></td><td>Create a custom Agentic Collection by grouping selected Agentic Components.</td></tr><tr><td>3</td><td><strong>POST /api/addApisToCustomCollection</strong></td><td>Add Agentic Components to an existing custom agentic collection.</td></tr><tr><td>4</td><td><strong>POST /api/saveCollectionDescription</strong></td><td>Save or update the description of an agentic collection.</td></tr><tr><td>5</td><td><strong>POST /api/updateEnvType</strong></td><td>Update the environment type (e.g., prod, staging) for an agentic collection.</td></tr><tr><td>6</td><td><strong>POST /api/toggleCollectionsOutOfTestScope</strong></td><td>Mark/unmark agentic collections as out of scan scope.</td></tr><tr><td>7</td><td><strong>POST /api/deactivateCollections</strong></td><td>Deactivate specific agentic collections so they are no longer active.</td></tr><tr><td>8</td><td><strong>POST /api/deleteMultipleCollections</strong></td><td>Delete multiple agentic collections at once.</td></tr><tr><td>9</td><td><strong>POST /api/redactCollection</strong></td><td>Redact sensitive data within an agentic collection.</td></tr><tr><td>10</td><td><strong>POST /api/saveEndpointDescription</strong></td><td>Save or update the description of a specific Agentic component.</td></tr><tr><td>11</td><td><strong>POST /api/loadParamsOfEndpoint</strong></td><td>Load the Agentic Parameters (query, path, body) of a given Agentic component.</td></tr><tr><td>12</td><td><strong>POST /api/loadSensitiveParameters</strong></td><td>Load Agentic Parameters identified as sensitive for a given agentic component/collection.</td></tr><tr><td>13</td><td><strong>POST /api/importDataFromOpenApiSpec</strong></td><td>Import Agentic components and Agentic Collections from an OpenAPI specification file.</td></tr><tr><td>14</td><td><strong>POST /api/uploadHar</strong></td><td>Upload a HAR (HTTP Archive) file to create or update Agentic Component data in Akto.</td></tr><tr><td>15</td><td><strong>POST /api/importDataFromPostmanFile</strong></td><td>Import Agentic Component data from a Postman agentic collection file.</td></tr><tr><td>16</td><td><strong>POST /api/importPostmanWorkspace</strong></td><td>Import Agentic Components from a Postman workspace.</td></tr><tr><td>17</td><td><strong>POST /api/addSensitiveField</strong></td><td>Add or mark a field as containing Sensitive in Response data.</td></tr><tr><td>18</td><td><strong>POST /api/saveAktoDataType</strong></td><td>Save or update a custom data type configuration.</td></tr><tr><td>19</td><td><strong>POST /api/addMcpRegistryIntegration</strong></td><td>Adds or updates MCP registry integrations with validation for duplicate names/URLs and maximum limits (10 registries max).</td></tr><tr><td>20</td><td><strong>POST /api/createAgentRun</strong></td><td>Creates a new agent run with initialization data, checking for existing running agents and validating the model.</td></tr><tr><td>21</td><td><strong>POST /api/deleteAgentModel</strong></td><td>Deletes an agent model by name with audit logging.</td></tr><tr><td>22</td><td><strong>POST /api/deleteAgentRun</strong></td><td>Deletes an agent run (only allowed for SCHEDULED, RUNNING, or STOPPED states) and associated subprocesses.</td></tr><tr><td>23</td><td><strong>POST /api/feedDataToAgent</strong></td><td>Polling endpoint for agent to get initialization data or next subprocess task.</td></tr><tr><td>24</td><td><strong>POST /api/feedDiscoveryDataToAgent</strong></td><td>Polling endpoint for discovery agent to get initialization or next discovery subprocess task.</td></tr><tr><td>25</td><td><strong>POST /api/initiateAIAgentConnectorImport</strong></td><td>Initiates a recurring import job for AI agent connector data with connector-specific validation and configuration.</td></tr><tr><td>26</td><td><strong>POST /api/saveAgentModel</strong></td><td>Saves a new AI model configuration with type-specific validation.</td></tr><tr><td>27</td><td><strong>POST /api/updateAgentHealthCheck</strong></td><td>Updates agent health check status with instance ID, version, and process information.</td></tr><tr><td>28</td><td><strong>POST /api/updateAgentRun</strong></td><td>Updates the state of an agent run, setting appropriate timestamps for RUNNING and COMPLETED states.</td></tr><tr><td>29</td><td><strong>POST /api/updateAgentSubprocess</strong></td><td>Updates subprocess state, heading, and user input with upsert behavior and validation. RE_ATTEMPT state is only allowed if current state is COMPLETED.</td></tr><tr><td>30</td><td><strong>POST /api/updateStateOfDiscoveryAgentRun</strong></td><td>Updates state and optionally results for a discovery agent run.</td></tr><tr><td>31</td><td><strong>POST /api/createSensitiveResponseDataTypes</strong></td><td>Asynchronously creates custom Sensitive in Response data types from detected data in Agentic Responses using pattern matching and machine learning.</td></tr><tr><td>32</td><td><strong>POST /api/createSubProcessNew</strong></td><td>Creates a new discovery subprocess with user input data for hostname and auth token.</td></tr><tr><td>33</td><td><strong>POST /api/initiateMCPRecon</strong></td><td>Initiates MCP reconnaissance for specified IP ranges, creating a pending reconnaissance request.</td></tr><tr><td>34</td><td><strong>POST /api/initiateMCPScan</strong></td><td>Initiates an MCP server scan by creating an Agentic Collection and scheduling a MCP tools sync job.</td></tr><tr><td>35</td><td><strong>POST /api/saveVulnerabilities</strong></td><td>Saves source code vulnerabilities found by agent to the database for tracking and remediation.</td></tr><tr><td>36</td><td><strong>POST /api/activateCollections</strong></td><td>Activate one or more Agentic Collections.</td></tr><tr><td>37</td><td><strong>POST /api/deleteApis</strong></td><td>Delete one or more Agentic Components.</td></tr><tr><td>38</td><td><strong>POST /api/removeApisFromCustomCollection</strong></td><td>Remove Agentic Components from a custom agentic collection.</td></tr><tr><td>39</td><td><strong>POST /api/computeCustomCollections</strong></td><td>Compute and create custom Agentic Collections based on criteria.</td></tr><tr><td>40</td><td><strong>POST /api/uploadTcp</strong></td><td>Upload TCP traffic data (HAR format).</td></tr><tr><td>41</td><td><strong>POST /api/updateCustomCollection</strong></td><td>Update details of a custom agentic collection.</td></tr><tr><td>42</td><td><strong>POST /api/deleteCollection</strong></td><td>Delete an entire Agentic Collection.</td></tr><tr><td>43</td><td><strong>POST /api/deleteUntrackedCollections</strong></td><td>Delete agentic collections that are not being tracked.</td></tr><tr><td>44</td><td><strong>POST /api/updateUserCollections</strong></td><td>Update user permissions for agentic collections.</td></tr><tr><td>45</td><td><strong>POST /api/addApiCollectionNameMapper</strong></td><td>Add a mapping for Agentic Collection names.</td></tr><tr><td>46</td><td><strong>POST /api/deleteApiCollectionNameMapper</strong></td><td>Delete an Agentic Collection name mapper.</td></tr><tr><td>47</td><td><strong>POST /api/deMergeApi</strong></td><td>Separate a merged Agentic Component into individual components.</td></tr><tr><td>48</td><td><strong>POST /api/bulkDeMergeApis</strong></td><td>Bulk de-merge multiple Agentic Components.</td></tr><tr><td>49</td><td><strong>POST /api/undoDemergedApis</strong></td><td>Undo de-merging of Agentic Components.</td></tr><tr><td>50</td><td><strong>POST /api/editCollectionName</strong></td><td>Edit the name of an Agentic Collection.</td></tr><tr><td>51</td><td><strong>POST /api/deleteApisBasedOnHeader</strong></td><td>Delete Agentic Components based on header matching criteria.</td></tr><tr><td>52</td><td><strong>POST /api/syncExtractedAPIs</strong></td><td>Sync Agentic Components extracted from code analysis.</td></tr></tbody></table>

## POST /api/addApisToCustomCollection

> POST request for endpoint /api/addApisToCustomCollection

```json
{"openapi":"3.0.1","info":{"title":"AktoSwagger","version":"1.0.0"},"paths":{"/api/addApisToCustomCollection":{"post":{"summary":"POST request for endpoint /api/addApisToCustomCollection","operationId":"/api/addApisToCustomCollection-POST","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"collectionName":{"type":"string","description":"Name of the existing custom collection to add APIs into"},"apiList":{"type":"array","items":{"type":"object"},"description":"List of API endpoints to add"}},"description":"Sample description"}}}},"responses":{"200":{"description":"APIs added to collection","content":{"application/json":{"schema":{"type":"object","properties":{"apiCollections":{"type":"array","items":{"type":"object"}}},"description":"Sample description"}}}}}}}}}
```

## POST /api/saveEndpointDescription

> POST request for endpoint /api/saveEndpointDescription

```json
{"openapi":"3.0.1","info":{"title":"AktoSwagger","version":"1.0.0"},"paths":{"/api/saveEndpointDescription":{"post":{"summary":"POST request for endpoint /api/saveEndpointDescription","operationId":"/api/saveEndpointDescription-POST","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"apiCollectionId":{"type":"integer"},"url":{"type":"string"},"method":{"type":"string","enum":["GET","POST","PUT","DELETE","PATCH","HEAD","OPTIONS"]},"description":{"type":"string"}},"description":"Sample description"}}}},"responses":{"200":{"description":"Endpoint description saved","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string"}},"description":"Sample description"}}}}}}}}}
```

## POST /api/updateEnvType

> POST request for endpoint /api/updateEnvType

```json
{"openapi":"3.0.1","info":{"title":"AktoSwagger","version":"1.0.0"},"paths":{"/api/updateEnvType":{"post":{"summary":"POST request for endpoint /api/updateEnvType","operationId":"/api/updateEnvType-POST","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"apiCollectionIds":{"type":"array","items":{"type":"integer"}},"envType":{"type":"array","items":{"type":"object"},"description":"List of environment tags to apply"},"resetEnvTypes":{"type":"boolean","default":false,"description":"If true, clears all existing environment tags"}},"description":"Sample description"}}}},"responses":{"200":{"description":"Environment types updated","content":{"application/json":{"schema":{"type":"object","properties":{"response":{"type":"object"}},"description":"Sample description"}}}}}}}}}
```

## POST /api/toggleCollectionsOutOfTestScope

> POST request for endpoint /api/toggleCollectionsOutOfTestScope

```json
{"openapi":"3.0.1","info":{"title":"AktoSwagger","version":"1.0.0"},"paths":{"/api/toggleCollectionsOutOfTestScope":{"post":{"summary":"POST request for endpoint /api/toggleCollectionsOutOfTestScope","operationId":"/api/toggleCollectionsOutOfTestScope-POST","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"apiCollectionIds":{"type":"array","items":{"type":"integer"}},"currentIsOutOfTestingScopeVal":{"type":"boolean","description":"Current value being toggled FROM"}},"description":"Sample description"}}}},"responses":{"200":{"description":"Test scope toggled successfully","content":{"application/json":{"schema":{"type":"object","properties":{"response":{"type":"object","properties":{"success":{"type":"boolean"}}}},"description":"Sample description"}}}}}}}}}
```

## POST /api/uploadHar

> POST request for endpoint /api/uploadHar

```json
{"openapi":"3.0.1","info":{"title":"AktoSwagger","version":"1.0.0"},"paths":{"/api/uploadHar":{"post":{"summary":"POST request for endpoint /api/uploadHar","operationId":"/api/uploadHar-POST","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"apiCollectionId":{"type":"integer","description":"ID of an existing collection to import into"},"apiCollectionName":{"type":"string","description":"Name for a new collection to create"},"harString":{"type":"string","description":"HAR file contents as a JSON string"},"content":{"type":"object","description":"Alternative to harString — HAR contents as parsed JSON"}},"description":"Sample description"}}}},"responses":{"200":{"description":"HAR uploaded and processing started","content":{"application/json":{"schema":{"type":"object","properties":{"harErrors":{"type":"array","items":{"type":"string"},"description":"Non-fatal warnings during HAR parsing"}},"description":"Sample description"}}}}}}}}}
```

## POST /api/deleteMultipleCollections

> POST request for endpoint /api/deleteMultipleCollections

```json
{"openapi":"3.0.1","info":{"title":"AktoSwagger","version":"1.0.0"},"paths":{"/api/deleteMultipleCollections":{"post":{"summary":"POST request for endpoint /api/deleteMultipleCollections","operationId":"/api/deleteMultipleCollections-POST","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"apiCollections":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"}}}}},"description":"Sample description"}}}},"responses":{"200":{"description":"Collections deleted successfully","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string"}},"description":"Sample description"}}}}}}}}}
```

## POST /api/saveCollectionDescription

> POST request for endpoint /api/saveCollectionDescription

```json
{"openapi":"3.0.1","info":{"title":"AktoSwagger","version":"1.0.0"},"paths":{"/api/saveCollectionDescription":{"post":{"summary":"POST request for endpoint /api/saveCollectionDescription","operationId":"/api/saveCollectionDescription-POST","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"apiCollectionId":{"type":"integer"},"description":{"type":"string"}},"description":"Sample description"}}}},"responses":{"200":{"description":"Description saved successfully","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string"}},"description":"Sample description"}}}}}}}}}
```

## POST /api/loadSensitiveParameters

> POST request for endpoint /api/loadSensitiveParameters

```json
{"openapi":"3.0.1","info":{"title":"AktoSwagger","version":"1.0.0"},"paths":{"/api/loadSensitiveParameters":{"post":{"summary":"POST request for endpoint /api/loadSensitiveParameters","operationId":"/api/loadSensitiveParameters-POST","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"apiCollectionId":{"type":"integer","format":"int32"}},"description":"Sample description"}}}},"responses":{"200":{"description":"description","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"endpoints":{"type":"array","items":{"type":"object","properties":{"isUrlParam":{"type":"boolean"},"method":{"type":"string"},"maxValue":{"type":"integer","format":"int32"},"count":{"type":"integer","format":"int32"},"sensitive":{"type":"boolean"},"apiCollectionId":{"type":"integer","format":"int32"},"isPrivate":{"type":"boolean"},"url":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"duration":{"type":"integer","format":"int32"},"minValue":{"type":"integer","format":"int32"},"lastSeen":{"type":"integer","format":"int32"},"publicCount":{"type":"integer","format":"int32"},"param":{"type":"string"},"subTypeString":{"type":"string"},"isHeader":{"type":"boolean"},"domain":{"type":"string"},"subType":{"type":"object","properties":{"sensitiveAlways":{"type":"boolean"},"name":{"type":"string"},"swaggerSchemaClass":{"type":"string"},"sensitivePosition":{"type":"array","items":{"type":"string"}},"superType":{"type":"string"}}},"uniqueCount":{"type":"integer","format":"int32"},"timestamp":{"type":"integer","format":"int32"}}}}}}},"description":"Sample description"}}}}}}}}}
```

## POST /api/loadParamsOfEndpoint

> POST request for endpoint /api/loadParamsOfEndpoint

```json
{"openapi":"3.0.1","info":{"title":"AktoSwagger","version":"1.0.0"},"paths":{"/api/loadParamsOfEndpoint":{"post":{"summary":"POST request for endpoint /api/loadParamsOfEndpoint","operationId":"/api/loadParamsOfEndpoint-POST","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"method":{"type":"string"},"apiCollectionId":{"type":"integer","format":"int32"},"url":{"type":"string"}},"description":"Sample description"}}}},"responses":{"200":{"description":"description","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"params":{"type":"array","items":{"type":"object","properties":{"isUrlParam":{"type":"boolean"},"method":{"type":"string"},"maxValue":{"type":"integer","format":"int32"},"values":{"type":"object","properties":{"elements":{"type":"array","items":{"type":"string"}}}},"count":{"type":"integer","format":"int32"},"isPrivate":{"type":"boolean"},"apiCollectionId":{"type":"integer","format":"int32"},"sensitive":{"type":"boolean"},"url":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"duration":{"type":"integer","format":"int32"},"minValue":{"type":"integer","format":"int32"},"lastSeen":{"type":"integer","format":"int32"},"publicCount":{"type":"integer","format":"int32"},"param":{"type":"string"},"isHeader":{"type":"boolean"},"subTypeString":{"type":"string"},"domain":{"type":"string"},"subType":{"type":"object","properties":{"sensitiveAlways":{"type":"boolean"},"name":{"type":"string"},"swaggerSchemaClass":{"type":"string"},"sensitivePosition":{"type":"array","items":{"type":"string"}},"superType":{"type":"string"}}},"timestamp":{"type":"integer","format":"int32"},"uniqueCount":{"type":"integer","format":"int32"}}}}}}},"description":"Sample description"}}}}}}}}}
```

## POST /api/createCollection

> POST request for endpoint /api/createCollection

```json
{"openapi":"3.0.1","info":{"title":"AktoSwagger","version":"1.0.0"},"paths":{"/api/createCollection":{"post":{"summary":"POST request for endpoint /api/createCollection","operationId":"/api/createCollection-POST","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"collectionName":{"type":"string","description":"Collection name. Rules: alphanumeric characters plus hyphen (-), dot (.), underscore (_), and spaces only. Max 60 characters."}},"description":"Sample description"}}}},"responses":{"200":{"description":"Collection created successfully","content":{"application/json":{"schema":{"type":"object","properties":{"apiCollections":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"}}}}},"description":"Sample description"}}}}}}}}}
```

## POST /api/redactCollection

> POST request for endpoint /api/redactCollection

```json
{"openapi":"3.0.1","info":{"title":"AktoSwagger","version":"1.0.0"},"paths":{"/api/redactCollection":{"post":{"summary":"POST request for endpoint /api/redactCollection","operationId":"/api/redactCollection-POST","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"apiCollectionId":{"type":"integer"},"redacted":{"type":"boolean","description":"true to redact (delete sample data), false to un-redact"}},"description":"Sample description"}}}},"responses":{"200":{"description":"Redaction flag updated. Sample data deletion is async.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string"}},"description":"Sample description"}}}}}}}}}
```

## POST /api/importDataFromOpenApiSpec

> POST request for endpoint /api/importDataFromOpenApiSpec

```json
{"openapi":"3.0.1","info":{"title":"AktoSwagger","version":"1.0.0"},"paths":{"/api/importDataFromOpenApiSpec":{"post":{"summary":"POST request for endpoint /api/importDataFromOpenApiSpec","operationId":"/api/importDataFromOpenApiSpec-POST","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"apiCollectionId":{"type":"integer","default":0,"description":"Target collection ID. Use 0 or -1 to auto-create"},"openAPIString":{"type":"string","description":"Full OpenAPI/Swagger spec as JSON or YAML string"},"triggeredWithAIAgent":{"type":"boolean","default":false,"description":"Set to true if triggered by the Discovery AI Agent"},"skipLiveReplay":{"type":"boolean","default":false,"description":"Skip replaying live traffic against imported endpoints"}},"description":"Sample description"}}}},"responses":{"200":{"description":"Import initiated (async processing)","content":{"application/json":{"schema":{"type":"object","properties":{"uploadId":{"type":"string","description":"File upload ID to track import progress"}},"description":"Sample description"}}}}}}}}}
```

## POST /api/createCustomCollection

> POST request for endpoint /api/createCustomCollection

```json
{"openapi":"3.0.1","info":{"title":"AktoSwagger","version":"1.0.0"},"paths":{"/api/createCustomCollection":{"post":{"summary":"POST request for endpoint /api/createCustomCollection","operationId":"/api/createCustomCollection-POST","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"collectionName":{"type":"string"},"conditions":{"type":"array","items":{"type":"object"},"description":"List of conditions to match APIs into this collection"}},"description":"Sample description"}}}},"responses":{"200":{"description":"Custom collection created","content":{"application/json":{"schema":{"type":"object","properties":{"apiCollections":{"type":"array","items":{"type":"object"}}},"description":"Sample description"}}}}}}}}}
```

## POST /api/deactivateCollections

> POST request for endpoint /api/deactivateCollections

```json
{"openapi":"3.0.1","info":{"title":"AktoSwagger","version":"1.0.0"},"paths":{"/api/deactivateCollections":{"post":{"summary":"POST request for endpoint /api/deactivateCollections","operationId":"/api/deactivateCollections-POST","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"apiCollections":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"deactivated":{"type":"boolean"}}}}},"description":"Sample description"}}}},"responses":{"200":{"description":"Collections deactivated successfully","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string"}},"description":"Sample description"}}}}}}}}}
```

## POST /api/importDataFromPostmanFile

> POST request for endpoint /api/importDataFromPostmanFile

```json
{"openapi":"3.0.1","info":{"title":"AktoSwagger","version":"1.0.0"},"paths":{"/api/importDataFromPostmanFile":{"post":{"summary":"POST request for endpoint /api/importDataFromPostmanFile","operationId":"/api/importDataFromPostmanFile-POST","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"postmanCollectionFile":{"type":"string"},"allowReplay":{"type":"boolean"}},"description":"Sample description"}}}},"responses":{"200":{"description":"description","content":{"application/json":{"schema":{"type":"object","properties":{"postmanCred":{"type":"string"},"aktoDashboardStackName":{"type":"string"},"configuredItems":{"type":"array","items":{"type":"string"}},"aktoDashboardRoleName":{"type":"string"}},"description":"Sample description"}}}}}}}}}
```

## POST /api/importPostmanWorkspace

> POST request for endpoint /api/importPostmanWorkspace

```json
{"openapi":"3.0.1","info":{"title":"AktoSwagger","version":"1.0.0"},"paths":{"/api/importPostmanWorkspace":{"post":{"summary":"POST request for endpoint /api/importPostmanWorkspace","operationId":"/api/importPostmanWorkspace-POST","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"workspace_id":{"type":"string"},"api_key":{"type":"string"},"allowReplay":{"type":"boolean"}},"description":"Sample description"}}}},"responses":{"200":{"description":"description","content":{"application/json":{"schema":{"type":"object","properties":{"postmanCred":{"type":"string"},"workspaces":{"type":"string"}},"description":"Sample description"}}}}}}}}}
```

## POST /api/addSensitiveField

> POST request for endpoint /api/addSensitiveField

```json
{"openapi":"3.0.1","info":{"title":"AktoSwagger","version":"1.0.0"},"paths":{"/api/addSensitiveField":{"post":{"summary":"POST request for endpoint /api/addSensitiveField","operationId":"/api/addSensitiveField-POST","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"isUrlParam":{"type":"boolean"},"method":{"type":"string"},"maxValue":{"type":"integer","format":"int32"},"values":{"type":"object","properties":{"elements":{"type":"array","items":{"type":"integer","format":"int32"}}}},"count":{"type":"integer","format":"int32"},"apiCollectionId":{"type":"integer","format":"int32"},"isPrivate":{"type":"boolean"},"sensitive":{"type":"boolean"},"url":{"type":"string"},"responseCode":{"type":"integer","format":"int32"},"duration":{"type":"integer","format":"int32"},"minValue":{"type":"integer","format":"int32"},"lastSeen":{"type":"integer","format":"int32"},"publicCount":{"type":"integer","format":"int32"},"param":{"type":"string"},"isHeader":{"type":"boolean"},"subTypeString":{"type":"string"},"domain":{"type":"string"},"subType":{"type":"object","properties":{"sensitiveAlways":{"type":"boolean"},"name":{"type":"string"},"swaggerSchemaClass":{"type":"string"},"superType":{"type":"string"}}},"timestamp":{"type":"integer","format":"int32"},"uniqueCount":{"type":"integer","format":"int32"}},"description":"Sample description"}}}},"responses":{"200":{"description":"description","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"string"}},"description":"Sample description"}}}}}}}}}
```

## POST /api/saveAktoDataType

> POST request for endpoint /api/saveAktoDataType

```json
{"openapi":"3.0.1","info":{"title":"AktoSwagger","version":"1.0.0"},"paths":{"/api/saveAktoDataType":{"post":{"summary":"POST request for endpoint /api/saveAktoDataType","operationId":"/api/saveAktoDataType-POST","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"sensitiveAlways":{"type":"boolean"},"name":{"type":"string"},"sensitivePosition":{"type":"array","items":{"type":"string"}}},"description":"Sample description"}}}},"responses":{"200":{"description":"description","content":{"application/json":{"schema":{"type":"object","properties":{"totalSampleDataCount":{"type":"integer","format":"int32"},"dataTypes":{"type":"string"},"currentProcessed":{"type":"integer","format":"int32"},"customSubTypeMatches":{"type":"string"},"customDataType":{"type":"string"},"allDataTypes":{"type":"string"},"sensitivePosition":{"type":"array","items":{"type":"string"}},"aktoDataType":{"type":"object","properties":{"sensitiveAlways":{"type":"boolean"},"name":{"type":"string"},"ignoreData":{"type":"object","properties":{"ignoredKeysInSelectedAPIs":{"type":"string"}}},"sensitivePosition":{"type":"array","items":{"type":"string"}},"timestamp":{"type":"integer","format":"int32"}}}},"description":"Sample description"}}}}}}}}}
```

## POST /api/addMcpRegistryIntegration

> POST request for endpoint /api/addMcpRegistryIntegration

```json
{"openapi":"3.0.1","info":{"title":"AktoSwagger","version":"1.0.0"},"paths":{"/api/addMcpRegistryIntegration":{"post":{"summary":"POST request for endpoint /api/addMcpRegistryIntegration","operationId":"/api/addMcpRegistryIntegration-POST","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["registries"],"properties":{"registries":{"type":"array","description":"List of MCP registries to add or update.","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"url":{"type":"string"}}}}}}}}},"responses":{"200":{"description":"Registry integrations added. Returns the current configuration.","content":{"application/json":{"schema":{"type":"object","properties":{"mcpRegistryConfig":{"type":"object","description":"Current MCP registry configuration with all registries.","properties":{"registries":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"url":{"type":"string"}}}}}}}}}}}}}}}}
```

## POST /api/createAgentRun

> POST request for endpoint /api/createAgentRun

```json
{"openapi":"3.0.1","info":{"title":"AktoSwagger","version":"1.0.0"},"paths":{"/api/createAgentRun":{"post":{"summary":"POST request for endpoint /api/createAgentRun","operationId":"/api/createAgentRun-POST","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["agent","data"],"properties":{"agent":{"type":"string","description":"Required agent type/name. Must be a valid Agent enum value."},"data":{"type":"object","description":"Agent initialization document with configuration."},"modelName":{"type":"string","description":"Optional AI model name to use. Defaults to AKTO_AGENT_MODEL."},"githubAccessToken":{"type":"string","description":"Optional GitHub token for source code agents."}}}}}},"responses":{"200":{"description":"Agent run created successfully.","content":{"application/json":{"schema":{"type":"object","properties":{"agentRun":{"type":"object","description":"Created AgentRun object.","properties":{"processId":{"type":"string"},"agent":{"type":"string"},"state":{"type":"string"},"createdTs":{"type":"integer"},"startedTs":{"type":"integer"}}}}}}}}}}}}}
```

## POST /api/deleteAgentModel

> POST request for endpoint /api/deleteAgentModel

```json
{"openapi":"3.0.1","info":{"title":"AktoSwagger","version":"1.0.0"},"paths":{"/api/deleteAgentModel":{"post":{"summary":"POST request for endpoint /api/deleteAgentModel","operationId":"/api/deleteAgentModel-POST","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["name"],"properties":{"name":{"type":"string","description":"Model name to delete (must exist)."}}}}}},"responses":{"200":{"description":"Model deleted successfully.","content":{"application/json":{"schema":{"type":"object","description":"Empty response body on success."}}}}}}}}}
```

## POST /api/deleteAgentRun

> POST request for endpoint /api/deleteAgentRun

```json
{"openapi":"3.0.1","info":{"title":"AktoSwagger","version":"1.0.0"},"paths":{"/api/deleteAgentRun":{"post":{"summary":"POST request for endpoint /api/deleteAgentRun","operationId":"/api/deleteAgentRun-POST","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["processId"],"properties":{"processId":{"type":"string","description":"Process ID of agent run to delete."}}}}}},"responses":{"200":{"description":"Agent run deleted successfully.","content":{"application/json":{"schema":{"type":"object","description":"Empty response body on success."}}}}}}}}}
```

## POST /api/feedDataToAgent

> POST request for endpoint /api/feedDataToAgent

```json
{"openapi":"3.0.1","info":{"title":"AktoSwagger","version":"1.0.0"},"paths":{"/api/feedDataToAgent":{"post":{"summary":"POST request for endpoint /api/feedDataToAgent","operationId":"/api/feedDataToAgent-POST","requestBody":{"content":{"application/json":{"schema":{"type":"object","description":"No request body required."}}}},"responses":{"200":{"description":"Returns initialization data or next subprocess task for the agent.","content":{"application/json":{"schema":{"type":"object","properties":{"response":{"type":"object","description":"Response containing type and data for agent.","properties":{"type":{"type":"string","description":"Either 'init' or 'subTask'."},"data":{"type":"object","description":"Initialization or subprocess task data."}}}}}}}}}}}}}
```

## POST /api/feedDiscoveryDataToAgent

> POST request for endpoint /api/feedDiscoveryDataToAgent

```json
{"openapi":"3.0.1","info":{"title":"AktoSwagger","version":"1.0.0"},"paths":{"/api/feedDiscoveryDataToAgent":{"post":{"summary":"POST request for endpoint /api/feedDiscoveryDataToAgent","operationId":"/api/feedDiscoveryDataToAgent-POST","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"processId":{"type":"string","description":"Optional discovery agent process ID."}}}}}},"responses":{"200":{"description":"Returns initialization or discovery subprocess task data.","content":{"application/json":{"schema":{"type":"object","properties":{"response":{"type":"object","description":"Response containing type, data, and optional apiToken.","properties":{"type":{"type":"string"},"data":{"type":"object"},"apiToken":{"type":"string","description":"Optional API token for discovery."}}}}}}}}}}}}}
```

## POST /api/initiateAIAgentConnectorImport

> POST request for endpoint /api/initiateAIAgentConnectorImport

```json
{"openapi":"3.0.1","info":{"title":"AktoSwagger","version":"1.0.0"},"paths":{"/api/initiateAIAgentConnectorImport":{"post":{"summary":"POST request for endpoint /api/initiateAIAgentConnectorImport","operationId":"/api/initiateAIAgentConnectorImport-POST","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["connectorType","dataIngestionUrl"],"properties":{"connectorType":{"type":"string","description":"Connector type. One of: N8N, LANGCHAIN, COPILOT_STUDIO, SNOWFLAKE, DATABRICKS, VERTEX_AI_CUSTOM_DEPLOYED_MODEL, SALESFORCE."},"dataIngestionUrl":{"type":"string","description":"Required data ingestion service URL."},"recurringIntervalSeconds":{"type":"integer","description":"Optional recurring interval in seconds (defaults to 3600)."},"n8nUrl":{"type":"string","description":"Required for N8N connector."},"n8nApiKey":{"type":"string","description":"Required for N8N connector."},"langsmithUrl":{"type":"string","description":"Required for LANGCHAIN connector."},"langsmithApiKey":{"type":"string","description":"Required for LANGCHAIN connector."},"dataverseEnvironmentUrl":{"type":"string","description":"Required for COPILOT_STUDIO connector."},"dataverseTenantId":{"type":"string","description":"Required for COPILOT_STUDIO connector."},"dataverseClientId":{"type":"string","description":"Required for COPILOT_STUDIO connector."},"dataverseClientSecret":{"type":"string","description":"Required for COPILOT_STUDIO connector."},"snowflakeAccountUrl":{"type":"string","description":"Required for SNOWFLAKE connector."},"snowflakeAuthType":{"type":"string","description":"SNOWFLAKE auth type: PASSWORD, TOKEN, KEYPAIR."},"snowflakeUsername":{"type":"string","description":"SNOWFLAKE username."},"snowflakePassword":{"type":"string","description":"SNOWFLAKE password (for PASSWORD auth)."},"snowflakeToken":{"type":"string","description":"SNOWFLAKE token (for TOKEN auth)."},"snowflakePrivateKey":{"type":"string","description":"SNOWFLAKE private key (for KEYPAIR auth)."},"snowflakePrivateKeyPassphrase":{"type":"string","description":"SNOWFLAKE private key passphrase (for KEYPAIR auth)."},"snowflakeWarehouse":{"type":"string","description":"SNOWFLAKE warehouse name."},"snowflakeDatabase":{"type":"string","description":"SNOWFLAKE database name."},"snowflakeSchema":{"type":"string","description":"SNOWFLAKE schema name."},"databricksHost":{"type":"string","description":"Required for DATABRICKS connector."},"databricksClientId":{"type":"string","description":"Required for DATABRICKS connector."},"databricksClientSecret":{"type":"string","description":"Required for DATABRICKS connector."},"databricksCatalog":{"type":"string","description":"DATABRICKS catalog name."},"databricksSchema":{"type":"string","description":"DATABRICKS schema name."},"databricksPrefix":{"type":"string","description":"DATABRICKS table prefix."},"vertexAIProjectId":{"type":"string","description":"Required for VERTEX_AI_CUSTOM_DEPLOYED_MODEL."},"vertexAIBigQueryDataset":{"type":"string","description":"VERTEX_AI BigQuery dataset."},"vertexAIBigQueryTable":{"type":"string","description":"VERTEX_AI BigQuery table."},"vertexAIJsonAuthFilePath":{"type":"string","description":"Path to VERTEX_AI JSON auth file."},"salesforceUrl":{"type":"string","description":"Required for SALESFORCE connector."},"salesforceConsumerKey":{"type":"string","description":"Required for SALESFORCE connector."},"salesforceConsumerSecret":{"type":"string","description":"Required for SALESFORCE connector."},"ingestionApiKey":{"type":"string","description":"API key for data ingestion service."}}}}}},"responses":{"200":{"description":"Import job created and scheduled.","content":{"application/json":{"schema":{"type":"object","properties":{"jobId":{"type":"string","description":"Created job ID in hex format."}}}}}}}}}}}
```

## POST /api/saveAgentModel

> POST request for endpoint /api/saveAgentModel

```json
{"openapi":"3.0.1","info":{"title":"AktoSwagger","version":"1.0.0"},"paths":{"/api/saveAgentModel":{"post":{"summary":"POST request for endpoint /api/saveAgentModel","operationId":"/api/saveAgentModel-POST","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["name","model","type"],"properties":{"name":{"type":"string","description":"Model name (required, must be unique)."},"model":{"type":"string","description":"Model identifier (e.g., 'gpt-4o', 'claude-3')."},"type":{"type":"string","description":"Model type. One of: OPENAI, AZURE_OPENAI, ANTHROPIC, OLLAMA, DATABRICKS."},"apiKey":{"type":"string","description":"API key (not required for OLLAMA)."},"azureOpenAIEndpoint":{"type":"string","description":"Required for AZURE_OPENAI type."},"ollamaAIEndpoint":{"type":"string","description":"Required for OLLAMA type."},"databricksEndpoint":{"type":"string","description":"Required for DATABRICKS type."}}}}}},"responses":{"200":{"description":"Model saved successfully.","content":{"application/json":{"schema":{"type":"object","description":"Empty response body on success."}}}}}}}}}
```

## POST /api/updateAgentHealthCheck

> POST request for endpoint /api/updateAgentHealthCheck

```json
{"openapi":"3.0.1","info":{"title":"AktoSwagger","version":"1.0.0"},"paths":{"/api/updateAgentHealthCheck":{"post":{"summary":"POST request for endpoint /api/updateAgentHealthCheck","operationId":"/api/updateAgentHealthCheck-POST","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["instanceId","version","processId"],"properties":{"instanceId":{"type":"string","description":"Agent instance ID."},"version":{"type":"string","description":"Agent version."},"processId":{"type":"string","description":"Process ID being executed."}}}}}},"responses":{"200":{"description":"Health check status updated.","content":{"application/json":{"schema":{"type":"object","description":"Empty response body on success."}}}}}}}}}
```

## POST /api/updateAgentRun

> POST request for endpoint /api/updateAgentRun

```json
{"openapi":"3.0.1","info":{"title":"AktoSwagger","version":"1.0.0"},"paths":{"/api/updateAgentRun":{"post":{"summary":"POST request for endpoint /api/updateAgentRun","operationId":"/api/updateAgentRun-POST","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["processId","state"],"properties":{"processId":{"type":"string","description":"Process ID of agent run to update."},"state":{"type":"string","description":"New state for the agent."}}}}}},"responses":{"200":{"description":"Agent run state updated successfully.","content":{"application/json":{"schema":{"type":"object","properties":{"agentRun":{"type":"object","description":"Updated AgentRun object with new state and timestamps.","properties":{"processId":{"type":"string"},"state":{"type":"string"},"startedTs":{"type":"integer"}}}}}}}}}}}}}
```

## POST /api/updateAgentSubprocess

> POST request for endpoint /api/updateAgentSubprocess

```json
{"openapi":"3.0.1","info":{"title":"AktoSwagger","version":"1.0.0"},"paths":{"/api/updateAgentSubprocess":{"post":{"summary":"POST request for endpoint /api/updateAgentSubprocess","operationId":"/api/updateAgentSubprocess-POST","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["processId","subProcessId","attemptId","state"],"properties":{"processId":{"type":"string","description":"Process ID of agent run."},"subProcessId":{"type":"string","description":"Sub-process ID."},"attemptId":{"type":"integer","description":"Attempt ID."},"state":{"type":"string","description":"New state. Allowed: ACCEPTED, DISCARDED, RE_ATTEMPT (only if current is COMPLETED)."},"subProcessHeading":{"type":"string","description":"Optional subprocess heading to update."},"data":{"type":"object","description":"Optional user input data."},"agent":{"type":"string","description":"Agent type (for discovery agent handling)."}}}}}},"responses":{"200":{"description":"Subprocess updated successfully.","content":{"application/json":{"schema":{"type":"object","properties":{"subprocess":{"type":"object","description":"Updated AgentSubProcessSingleAttempt.","properties":{"state":{"type":"string"},"subProcessHeading":{"type":"string"}}}}}}}}}}}}}
```

## POST /api/updateStateOfDiscoveryAgentRun

> POST request for endpoint /api/updateStateOfDiscoveryAgentRun

```json
{"openapi":"3.0.1","info":{"title":"AktoSwagger","version":"1.0.0"},"paths":{"/api/updateStateOfDiscoveryAgentRun":{"post":{"summary":"POST request for endpoint /api/updateStateOfDiscoveryAgentRun","operationId":"/api/updateStateOfDiscoveryAgentRun-POST","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["processId","state"],"properties":{"processId":{"type":"string","description":"Discovery agent run process ID."},"state":{"type":"string","description":"New state for the discovery agent run."},"results":{"type":"object","description":"Optional discovery results to store."}}}}}},"responses":{"200":{"description":"Discovery agent run state updated.","content":{"application/json":{"schema":{"type":"object","properties":{"response":{"type":"object","properties":{"status":{"type":"string"}}}}}}}}}}}}}
```

## POST /api/createSensitiveResponseDataTypes

> POST request for endpoint /api/createSensitiveResponseDataTypes

```json
{"openapi":"3.0.1","info":{"title":"AktoSwagger","version":"1.0.0"},"paths":{"/api/createSensitiveResponseDataTypes":{"post":{"summary":"POST request for endpoint /api/createSensitiveResponseDataTypes","operationId":"/api/createSensitiveResponseDataTypes-POST","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["dataTypeKeys"],"properties":{"dataTypeKeys":{"type":"array","description":"List of data type keys to create as custom data types.","items":{"type":"string"}}}}}}},"responses":{"200":{"description":"Data types creation scheduled asynchronously.","content":{"application/json":{"schema":{"type":"object","description":"Empty response body on success; processing happens asynchronously."}}}}}}}}}
```

## POST /api/createSubProcessNew

> POST request for endpoint /api/createSubProcessNew

```json
{"openapi":"3.0.1","info":{"title":"AktoSwagger","version":"1.0.0"},"paths":{"/api/createSubProcessNew":{"post":{"summary":"POST request for endpoint /api/createSubProcessNew","operationId":"/api/createSubProcessNew-POST","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["processId","hostname","authToken"],"properties":{"processId":{"type":"string","description":"Discovery agent run process ID."},"hostname":{"type":"string","description":"Target hostname to discover."},"authToken":{"type":"string","description":"Authentication token for the hostname."}}}}}},"responses":{"200":{"description":"Discovery subprocess created.","content":{"application/json":{"schema":{"type":"object","properties":{"response":{"type":"object","properties":{"status":{"type":"string"}}}}}}}}}}}}}
```

## POST /api/initiateMCPRecon

> POST request for endpoint /api/initiateMCPRecon

```json
{"openapi":"3.0.1","info":{"title":"AktoSwagger","version":"1.0.0"},"paths":{"/api/initiateMCPRecon":{"post":{"summary":"POST request for endpoint /api/initiateMCPRecon","operationId":"/api/initiateMCPRecon-POST","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["ipRange"],"properties":{"ipRange":{"type":"string","description":"Required IP range(s) to perform reconnaissance on. Can be single IP or CIDR notation."}}}}}},"responses":{"200":{"description":"MCP reconnaissance initiated.","content":{"application/json":{"schema":{"type":"object","description":"Empty response body on success."}}}}}}}}}
```

## POST /api/initiateMCPScan

> POST request for endpoint /api/initiateMCPScan

```json
{"openapi":"3.0.1","info":{"title":"AktoSwagger","version":"1.0.0"},"paths":{"/api/initiateMCPScan":{"post":{"summary":"POST request for endpoint /api/initiateMCPScan","operationId":"/api/initiateMCPScan-POST","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["serverUrl","dashboardUrl"],"properties":{"serverUrl":{"type":"string","description":"Required MCP server URL to scan."},"dashboardUrl":{"type":"string","description":"Dashboard URL for callbacks and result reporting."},"authKey":{"type":"string","description":"Optional authentication header key."},"authValue":{"type":"string","description":"Optional authentication header value."}}}}}},"responses":{"200":{"description":"MCP scan initiated. Returns the created or updated API collection.","content":{"application/json":{"schema":{"type":"object","properties":{"createdCollection":{"type":"object","description":"The created or updated ApiCollection for the MCP server.","properties":{"id":{"type":"integer"},"displayName":{"type":"string"},"startTs":{"type":"integer"}}},"apiCollectionId":{"type":"string","description":"ID of the created collection."}}}}}}}}}}}
```

## POST /api/saveVulnerabilities

> POST request for endpoint /api/saveVulnerabilities

```json
{"openapi":"3.0.1","info":{"title":"AktoSwagger","version":"1.0.0"},"paths":{"/api/saveVulnerabilities":{"post":{"summary":"POST request for endpoint /api/saveVulnerabilities","operationId":"/api/saveVulnerabilities-POST","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["vulnerabilities","agentProcessId","totalApisScanned"],"properties":{"vulnerabilities":{"type":"array","description":"List of vulnerabilities with id and output fields.","items":{"type":"object","properties":{"id":{"type":"string"},"output":{"type":"string"}}}},"agentProcessId":{"type":"string","description":"Agent process ID."},"totalApisScanned":{"type":"integer","description":"Total APIs scanned."}}}}}},"responses":{"200":{"description":"Vulnerabilities saved successfully.","content":{"application/json":{"schema":{"type":"object","description":"Empty response body on success."}}}}}}}}}
```

## POST /api/activateCollections

> POST request for endpoint /api/activateCollections

```json
{"openapi":"3.0.1","info":{"title":"AktoSwagger","version":"1.0.0"},"paths":{"/api/activateCollections":{"post":{"summary":"POST request for endpoint /api/activateCollections","operationId":"/api/activateCollections-POST","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"apiCollections":{"type":"array","items":{"type":"object","properties":{"_id":{"type":"integer"},"name":{"type":"string"}}}}}}}}},"responses":{"200":{"description":"Collections activated successfully","content":{"application/json":{"schema":{"type":"object"}}}}}}}}}
```

## POST /api/deleteApis

> POST request for endpoint /api/deleteApis

```json
{"openapi":"3.0.1","info":{"title":"AktoSwagger","version":"1.0.0"},"paths":{"/api/deleteApis":{"post":{"summary":"POST request for endpoint /api/deleteApis","operationId":"/api/deleteApis-POST","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"apiInfoKeys":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string"},"method":{"type":"string"},"apiCollectionId":{"type":"integer"}}}}}}}}},"responses":{"200":{"description":"APIs deleted successfully","content":{"application/json":{"schema":{"type":"object","properties":{"deletedCount":{"type":"integer"}}}}}}}}}}}
```

## POST /api/removeApisFromCustomCollection

> POST request for endpoint /api/removeApisFromCustomCollection

```json
{"openapi":"3.0.1","info":{"title":"AktoSwagger","version":"1.0.0"},"paths":{"/api/removeApisFromCustomCollection":{"post":{"summary":"POST request for endpoint /api/removeApisFromCustomCollection","operationId":"/api/removeApisFromCustomCollection-POST","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"customCollectionId":{"type":"integer"},"apiInfoKeys":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string"},"method":{"type":"string"},"apiCollectionId":{"type":"integer"}}}}}}}}},"responses":{"200":{"description":"APIs removed successfully","content":{"application/json":{"schema":{"type":"object"}}}}}}}}}
```

## POST /api/computeCustomCollections

> POST request for endpoint /api/computeCustomCollections

```json
{"openapi":"3.0.1","info":{"title":"AktoSwagger","version":"1.0.0"},"paths":{"/api/computeCustomCollections":{"post":{"summary":"POST request for endpoint /api/computeCustomCollections","operationId":"/api/computeCustomCollections-POST","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"conditions":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"operator":{"type":"string"},"value":{"type":"string"}}}}}}}}},"responses":{"200":{"description":"Custom collections computed successfully","content":{"application/json":{"schema":{"type":"object","properties":{"collectionId":{"type":"integer"},"apiCount":{"type":"integer"}}}}}}}}}}}
```

## POST /api/uploadTcp

> POST request for endpoint /api/uploadTcp

```json
{"openapi":"3.0.1","info":{"title":"AktoSwagger","version":"1.0.0"},"paths":{"/api/uploadTcp":{"post":{"summary":"POST request for endpoint /api/uploadTcp","operationId":"/api/uploadTcp-POST","requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}}}}}},"responses":{"200":{"description":"TCP data uploaded successfully","content":{"application/json":{"schema":{"type":"object","properties":{"uploadId":{"type":"string"},"status":{"type":"string"}}}}}}}}}}}
```

## POST /api/updateCustomCollection

> POST request for endpoint /api/updateCustomCollection

```json
{"openapi":"3.0.1","info":{"title":"AktoSwagger","version":"1.0.0"},"paths":{"/api/updateCustomCollection":{"post":{"summary":"POST request for endpoint /api/updateCustomCollection","operationId":"/api/updateCustomCollection-POST","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"customCollectionId":{"type":"integer"},"name":{"type":"string"},"description":{"type":"string"}}}}}},"responses":{"200":{"description":"Collection updated successfully","content":{"application/json":{"schema":{"type":"object"}}}}}}}}}
```

## POST /api/deleteCollection

> POST request for endpoint /api/deleteCollection

```json
{"openapi":"3.0.1","info":{"title":"AktoSwagger","version":"1.0.0"},"paths":{"/api/deleteCollection":{"post":{"summary":"POST request for endpoint /api/deleteCollection","operationId":"/api/deleteCollection-POST","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"apiCollectionId":{"type":"integer"}}}}}},"responses":{"200":{"description":"Collection deleted successfully","content":{"application/json":{"schema":{"type":"object"}}}}}}}}}
```

## POST /api/deleteUntrackedCollections

> POST request for endpoint /api/deleteUntrackedCollections

```json
{"openapi":"3.0.1","info":{"title":"AktoSwagger","version":"1.0.0"},"paths":{"/api/deleteUntrackedCollections":{"post":{"summary":"POST request for endpoint /api/deleteUntrackedCollections","operationId":"/api/deleteUntrackedCollections-POST","requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}},"responses":{"200":{"description":"Untracked collections deleted successfully","content":{"application/json":{"schema":{"type":"object","properties":{"deletedCount":{"type":"integer"}}}}}}}}}}}
```

## POST /api/updateUserCollections

> POST request for endpoint /api/updateUserCollections

```json
{"openapi":"3.0.1","info":{"title":"AktoSwagger","version":"1.0.0"},"paths":{"/api/updateUserCollections":{"post":{"summary":"POST request for endpoint /api/updateUserCollections","operationId":"/api/updateUserCollections-POST","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"userId":{"type":"string"},"collectionIds":{"type":"array","items":{"type":"integer"}}}}}}},"responses":{"200":{"description":"User collections updated successfully","content":{"application/json":{"schema":{"type":"object"}}}}}}}}}
```

## POST /api/addApiCollectionNameMapper

> POST request for endpoint /api/addApiCollectionNameMapper

```json
{"openapi":"3.0.1","info":{"title":"AktoSwagger","version":"1.0.0"},"paths":{"/api/addApiCollectionNameMapper":{"post":{"summary":"POST request for endpoint /api/addApiCollectionNameMapper","operationId":"/api/addApiCollectionNameMapper-POST","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"fromName":{"type":"string"},"toName":{"type":"string"},"apiCollectionId":{"type":"integer"}}}}}},"responses":{"200":{"description":"Collection name mapper added successfully","content":{"application/json":{"schema":{"type":"object"}}}}}}}}}
```

## POST /api/deleteApiCollectionNameMapper

> POST request for endpoint /api/deleteApiCollectionNameMapper

```json
{"openapi":"3.0.1","info":{"title":"AktoSwagger","version":"1.0.0"},"paths":{"/api/deleteApiCollectionNameMapper":{"post":{"summary":"POST request for endpoint /api/deleteApiCollectionNameMapper","operationId":"/api/deleteApiCollectionNameMapper-POST","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"mapperId":{"type":"string"}}}}}},"responses":{"200":{"description":"Collection name mapper deleted successfully","content":{"application/json":{"schema":{"type":"object"}}}}}}}}}
```

## POST /api/deMergeApi

> POST request for endpoint /api/deMergeApi

```json
{"openapi":"3.0.1","info":{"title":"AktoSwagger","version":"1.0.0"},"paths":{"/api/deMergeApi":{"post":{"summary":"POST request for endpoint /api/deMergeApi","operationId":"/api/deMergeApi-POST","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"apiInfoKey":{"type":"object","properties":{"url":{"type":"string"},"method":{"type":"string"},"apiCollectionId":{"type":"integer"}}}}}}}},"responses":{"200":{"description":"API de-merged successfully","content":{"application/json":{"schema":{"type":"object"}}}}}}}}}
```

## POST /api/bulkDeMergeApis

> POST request for endpoint /api/bulkDeMergeApis

```json
{"openapi":"3.0.1","info":{"title":"AktoSwagger","version":"1.0.0"},"paths":{"/api/bulkDeMergeApis":{"post":{"summary":"POST request for endpoint /api/bulkDeMergeApis","operationId":"/api/bulkDeMergeApis-POST","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"apiInfoKeys":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string"},"method":{"type":"string"},"apiCollectionId":{"type":"integer"}}}}}}}}},"responses":{"200":{"description":"APIs de-merged successfully","content":{"application/json":{"schema":{"type":"object","properties":{"deMergedCount":{"type":"integer"}}}}}}}}}}}
```

## POST /api/undoDemergedApis

> POST request for endpoint /api/undoDemergedApis

```json
{"openapi":"3.0.1","info":{"title":"AktoSwagger","version":"1.0.0"},"paths":{"/api/undoDemergedApis":{"post":{"summary":"POST request for endpoint /api/undoDemergedApis","operationId":"/api/undoDemergedApis-POST","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"deMergeGroupId":{"type":"string"}}}}}},"responses":{"200":{"description":"De-merge undone successfully","content":{"application/json":{"schema":{"type":"object"}}}}}}}}}
```

## POST /api/editCollectionName

> POST request for endpoint /api/editCollectionName

```json
{"openapi":"3.0.1","info":{"title":"AktoSwagger","version":"1.0.0"},"paths":{"/api/editCollectionName":{"post":{"summary":"POST request for endpoint /api/editCollectionName","operationId":"/api/editCollectionName-POST","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"apiCollectionId":{"type":"integer"},"newName":{"type":"string"}}}}}},"responses":{"200":{"description":"Collection name updated successfully","content":{"application/json":{"schema":{"type":"object"}}}}}}}}}
```

## POST /api/deleteApisBasedOnHeader

> POST request for endpoint /api/deleteApisBasedOnHeader

```json
{"openapi":"3.0.1","info":{"title":"AktoSwagger","version":"1.0.0"},"paths":{"/api/deleteApisBasedOnHeader":{"post":{"summary":"POST request for endpoint /api/deleteApisBasedOnHeader","operationId":"/api/deleteApisBasedOnHeader-POST","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"headerKey":{"type":"string"},"headerValue":{"type":"string"}}}}}},"responses":{"200":{"description":"APIs deleted based on header successfully","content":{"application/json":{"schema":{"type":"object","properties":{"deletedCount":{"type":"integer"}}}}}}}}}}}
```

## POST /api/syncExtractedAPIs

> POST request for endpoint /api/syncExtractedAPIs

```json
{"openapi":"3.0.1","info":{"title":"AktoSwagger","version":"1.0.0"},"paths":{"/api/syncExtractedAPIs":{"post":{"summary":"POST request for endpoint /api/syncExtractedAPIs","operationId":"/api/syncExtractedAPIs-POST","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"analysisId":{"type":"string"},"apiCollectionId":{"type":"integer"}}}}}},"responses":{"200":{"description":"Extracted APIs synced successfully","content":{"application/json":{"schema":{"type":"object","properties":{"syncedCount":{"type":"integer"}}}}}}}}}}}
```
