Update a ruleset.
Update an existing ruleset. RulesetID is never changed by an update. action and resource_type fall back to their existing values when omitted. Accepts application/json or multipart/form-data (individual fields: name, description, active, action, resource_type, ruleset_id, categories; optional file field: ruleset for the Spectral definition).
Authorizations
The Tyk Dashboard API Access Credentials
Path Parameters
ObjectId hex or custom ruleset_id.
Body
Full Spectral ruleset definition stored as a JSON string.
Optional stable identifier. If not provided, defaults to the record's internal ID hex. Must be unique within the org. Never changed after creation.
oas-api, mcp-api none, warn Optional list of category names to associate with this ruleset. Each value must match an existing org API category (as returned by GET /apis/categories); matching is case-insensitive. Unknown values are rejected with 400. Entries are sanitized before validation and storage: surrounding whitespace is trimmed, empty entries are dropped, and case-insensitive duplicates are removed (first occurrence wins).
Response
Ruleset updated.
Stable migration identifier. Same value across environments.
ID of the user who created the ruleset. Set server-side from the session; cannot be supplied by the caller.
Full Spectral ruleset definition stored as a JSON string.