curl --request PATCH \
--url https://odyssey.asteroid.ai/api/v1/agent-profiles/{profile_id} \
--header 'Content-Type: application/json' \
--header 'X-Asteroid-Agents-Api-Key: <api-key>' \
--data '{
"name": "<string>",
"description": "<string>",
"proxy_cc": "us",
"proxy_type": "residential",
"captcha_solver_active": true,
"sticky_ip": true,
"credentials_to_add": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"data": "<string>",
"created_at": "2023-11-07T05:31:56Z"
}
],
"credentials_to_delete": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}'
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"description": "<string>",
"organization_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"proxy_cc": "us",
"proxy_type": "residential",
"captcha_solver_active": true,
"sticky_ip": true,
"credentials": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"data": "<string>",
"created_at": "2023-11-07T05:31:56Z"
}
],
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
Updates an agent profile including metadata and/or credentials
curl --request PATCH \
--url https://odyssey.asteroid.ai/api/v1/agent-profiles/{profile_id} \
--header 'Content-Type: application/json' \
--header 'X-Asteroid-Agents-Api-Key: <api-key>' \
--data '{
"name": "<string>",
"description": "<string>",
"proxy_cc": "us",
"proxy_type": "residential",
"captcha_solver_active": true,
"sticky_ip": true,
"credentials_to_add": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"data": "<string>",
"created_at": "2023-11-07T05:31:56Z"
}
],
"credentials_to_delete": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}'
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"description": "<string>",
"organization_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"proxy_cc": "us",
"proxy_type": "residential",
"captcha_solver_active": true,
"sticky_ip": true,
"credentials": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"data": "<string>",
"created_at": "2023-11-07T05:31:56Z"
}
],
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
The ID of the agent profile
Agent profile updated successfully
The response is of type object
.