API referenceRules
`POST /rules/{id}/versions/{version}/restorations` — restore a version.
POST
/rules/{id}/versions/{version}/restorationsSaves a new version equal to version {version}, except the owning team,
which stays. Needs the permission an edit needs and passes the same checks.
A rule managed as code answers 409. A version the rule already equals
writes nothing and answers the rule as it is.
Path Parameters
id*string
Rule id
version*string
Version number, from 1
Response Body
application/json
curl -X POST "https://example.com/rules/string/versions/string/restorations"{ "alerting": null, "covered_through": "string", "created_at": "string", "description": "string", "enabled": true, "id": "string", "key": "string", "last_run_at": "string", "last_run_status": null, "managed_by": "string", "muted_until": "string", "name": "string", "next_run_at": "string", "org_id": "string", "owner_team_id": "string", "query": null, "schedule": "string", "status": null, "unresolved_alert_count": 0, "updated_at": "string", "version": 0}