Update an application

Updates an existing error tracking application. Send only the parameters you wish to change.

PUT https://errors.betterstack.com/api/v1/applications/{id}

URL parameters

id
required string

Headers

Authorization
required string
Content-Type
required string

Body parameters

name
string
errors_retention
integer
ingesting_paused
boolean
200

Response body

{
  "data": {
    "id": "1234",
    "type": "application",
    "attributes": {
      "application_group_id": 5678,
      "team_id": 123456,
      "team_name": "example-team",
      "name": "updated-web-app",
      "table_name": "updated_web_app",
      "token": "abc123def456ghi789",
      "ingesting_paused": false,
      "ingesting_host": "s1234.us-east-9.betterstackdata.com",
      "created_at": "2025-01-15T10:30:00.000Z",
      "updated_at": "2025-01-15T10:35:00.000Z",
      "errors_retention": 90,
      "data_region": "us-east-9",
      "custom_bucket": null
    }
  }
}
401

Response body

{
  "errors": "Invalid authentication"
}
404

Response body

{
  "errors": "Resource with the provided ID was not found"
}
422

Response body

{
  "errors": "Validation errors",
  "invalid_attributes": {
    "name": [
      "already taken"
    ]
  }
}

Example cURL

Example
curl --request PUT \
  --url https://errors.betterstack.com/api/v1/applications/1234 \
  --header "Authorization: Bearer $TOKEN" \
  --header 'Content-Type: application/json' \
  --data '{
    "name": "updated-web-app",
    "ingesting_paused": false
  }'