Agent Actions
Replace a custom External API's OpenAPI schema.
Changed onTakes the same openapi_url (JSON) or openapi_file (multipart/form-data) field as create; exactly one of them is required.
post/api/v1/projects/{projectId}/actions/external-apis/{integrationId}/openapi
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
{
"openapi_url": "https://api.example.com/openapi.json"
}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