---
title: "Update a dynamic parsing rule."
method: PUT
path: "/v1/dynamicParsingRules/{id}"
tags: ["dynamicParsingRuleManagement"]
---

# Update a dynamic parsing rule.

`PUT /v1/dynamicParsingRules/{id}`

Update an existing dynamic parsing rule. All properties specified in the request are replaced. Missing properties are set to their default values.

## Path parameters

- `id` string, required

## Request body

- DynamicRuleDefinition
  - `name` string, required — Name of the dynamic parsing rule. Use a name that makes it easy to identify the rule.
  - `scope` string, required — Scope of the dynamic parsing rule. This could be a sourceCategory, sourceHost, or any other metadata that describes the data you want to extract from. Think of the Scope as the first portion of an ad hoc search, before the first pipe ( | ). You'll use the Scope to run a search against the rule.
  - `enabled` boolean, required — Is the dynamic parsing rule enabled.

## Response `200`

The dynamic parsing rule was successfully modified.

- DynamicRule
  - `name` string, required — Name of the dynamic parsing rule. Use a name that makes it easy to identify the rule.
  - `scope` string, required — Scope of the dynamic parsing rule. This could be a sourceCategory, sourceHost, or any other metadata that describes the data you want to extract from. Think of the Scope as the first portion of an ad hoc search, before the first pipe ( | ). You'll use the Scope to run a search against the rule.
  - `enabled` boolean, required — Is the dynamic parsing rule enabled.
  - `createdAt` string, dateTime, required — Creation timestamp in UTC in [RFC3339](https://tools.ietf.org/html/rfc3339) format.
  - `createdBy` string, required — Identifier of the user who created the resource.
  - `modifiedAt` string, dateTime, required — Last modification timestamp in UTC.
  - `modifiedBy` string, required — Identifier of the user who last modified the resource.
  - `id` string, required — Unique identifier for the dynamic parsing rule.
  - `isSystemRule` boolean, required — Whether the rule has been defined by the system, rather than by a user.

## Other responses

- `default` — Operation failed with an error.

---

[API](https://skmtc.net/sumologic/apis/sumo-logic-api.md) · [All operations](https://skmtc.net/sumologic/apis/sumo-logic-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/sumologic/sumo-logic-api/revisions/18a824df1e78/schema)
