Agent Actions
Update a custom External API.
Changed onRenames it, replaces its API key, or enables/disables it. At most 5 External APIs can be active at once.
put/api/v1/projects/{projectId}/actions/external-apis/{integrationId}
Request
- Base URLhttps://app.customgpt.ai
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
projectIdinteger required
Example:1
The unique agent identifier.
integrationIdinteger required
Example:1
The unique External API identifier.
Request body
Example request
{
"name": "Orders API",
"api_key": "sk_live_456",
"is_enabled": true
}Response
The External API.
Example response
{
"status": "success",
"data": {
"external_api": {
"id": 1,
"name": "Orders API",
"is_enabled": true,
"host": "api.example.com",
"base_url": "https://api.example.com/v1",
"auth_type": "bearer",
"auth_key_name": "Authorization",
"has_openapi": true,
"openapi_metadata": {
"title": "Orders API",
"version": "1.0.0",
"endpoint_count": 12
}
}
}
}Changes
- info
endpoint added
- info