Update a project log drain
put
/v2/projects/{ref}/analytics/log-drains/{id}OAuth scopes
- analytics_config:write
The fine-grained token must include the following permissions to access this endpoint:
- analytics_config_write
Path parameters
- refRequiredstring
Project ref
- idRequiredstring
Log drains identifier
Body
- dataRequiredobject
Response codes
- 200
- 401
- 403
- 429
- 500
Response (200)
{ "data": { "type": "log_drain", "id": "lorem", "attributes": { "name": "lorem", "description": "lorem", "config": { "url": "lorem", "schema": "lorem", "username": "lorem", "password": "lorem", "port": 42, "hostname": "lorem" }, "backend_type": "postgres" } }}