v1
latestOpenAPI 3.1.02026-07-24239123562.1 KBAgents
Create an agent
Use this endpoint to create a new agent.
post/v1/agents
Request body
Example request
{
"name": "Agent name",
"description": "Agent description",
"type": "file-log",
"integrationId": "6f166302-df8a-4044-ab4b-7ddd3eefb50b",
"tags": [
"tag1"
],
"metadata": {
"metadataKey": "metadataValue"
},
"labels": {
"labelsToAdd": [
{
"name": "labelKey",
"value": "labelValue"
}
]
}
}Response
Successful response with agent details
Example response
{
"id": "9b9f275c-a60d-454f-8c6c-1ea094e3fd38",
"name": "File-Log Agent",
"description": "description",
"type": "file-log",
"integrationType": "api",
"integrationId": "6f166302-df8a-4044-ab4b-7ddd3eefb50b",
"sourceId": "9201d7a7-2282-4ef2-b295-a1d1d1927b9a",
"isEnabled": true,
"tags": [
"tag1"
],
"config": {
"group_user": {
"user_name": "user1",
"password": "-1943064076"
},
"agent_configuration": {
"s3_direct_upload": true,
"receive_commands": true,
"destination_id": "2e72c40f-432e-46a9-a027-e70686e8cd39",
"agent_id": "f82d2230-eed1-443c-9ed8-2e1fef9039c2",
"org_slug": "tetrascience",
"Authentication": "-1943064076",
"advanced_setting": {
"heart_beat_interval": 30,
"agent_log_upload_job_interval": 30,
"compression_type": "zip",
"retry_limit": 3,
"tdpApiUrlOverride": "https://api.tetrascience.com",
"validateAwsCertificate": true,
"proxyUseCustom": true,
"proxyHost": "proxy.example.com",
"proxyPort": 8080,
"proxyBypassList": "example.com,example.org",
"proxyUsername": "proxyuser",
"proxyPassword": "-1943064076"
}
},
"services_enabled": [
"fileWatcher"
],
"services_configuration": {
"fileWatcher": {
"use_path_configuration": true,
"paths": [
{
"path": "C:\\FLA\\test1",
"file_watch_mode": "file",
"source_type": "unknown",
"interval": 30,
"start_date": "2023-03-27",
"patterns": [
"*.*"
],
"metadata": {
"meta1": "value1"
},
"tags": "tag1,tag2",
"labels": [
{
"name": "vendor",
"value": "Beckman Coulter"
}
],
"archive": {
"path": "c:\\archive",
"wait_time": 1,
"wait_time_unit": "Days",
"delete": {
"wait_time": 7,
"wait_time_unit": "Days"
}
}
}
]
}
},
"windows_scheduled_task": {
"enabled": true,
"time": "1:00pm"
}
}
}