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",
"http": "http1",
"gzip": true,
"headers": {
"property1": "lorem",
"property2": "lorem"
}
},
"backend_type": "postgres"
}
}
}