# Update Tests https://api-docs.lumar.io/docs/protect/tests/update-tests The follwing mutation updates a test: ```graphql mutation UpdateTest($testId: ObjectID!, $relativeTreshold: Int, $severity: Severity) { updateTest(input: { testId: $testId, relativeThreshold: $relativeTreshold, severity: $severity }) { test { id relativeThreshold severity } } } ``` :::caution - It's not possible to update the report template code for a test suite's test. You need to delete the test and create a new one with the new report template code. - Updating test won't affect previously completed builds and test results. :::