Skip to content
Management API Reference

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

  • ref
    Required
    string

    Project ref

  • id
    Required
    string

    Log drains identifier

Body

  • data
    Required
    object

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"
}
}
}