Update Log Group

This endpoint allows you to update an existing log group’s metadata and configuration. You can modify fields such as the name, description, retention policy, service association, and enable/disable status of the log group.

This endpoint is useful for adjusting how logs are categorized, managed, or retained without needing to delete and recreate the log group.

Common Use Cases:
  • Renaming a log group for clarity or convention changes
  • Adjusting retention settings as per audit policy
  • Enabling or disabling logging temporarily
  • Reassigning a log group to a different service

Authorization: Bearer YOUR_TOKEN

Path Parameters
  • id string
    The unique ID of the log group to be updated. Example: '6766163a-568d-47b4-a1fa-91a0957e06d4'
Request Body Parameters
  • name string
    The new name for the log group. Example: '/aws/lambda/my-function'
  • service_id string
  • description string
  • retention integer
  • enabled boolean
ResponseThis section is used to view the possible HTTP response codes returned by the API. These codes indicate the status of a request, such as 201 (Created), 401 (Unauthorized), 409 (Conflict), or 422 (Unprocessable Entity).