Create a rule
Spaces method and path for this operation:
<div><span class="operation-verb post">post</span> <span class="operation-path">/s/{space_id}/api/alerting/v2/rules</span></div>Refer to Spaces for more information.
Creates a rule with a server-generated identifier. To create or replace a rule with a client-supplied identifier, use PUT /api/alerting/v2/rules/{id}/.<br/><br/>[Required authorization] Route required privileges: manage_alerting-v2-rules.
Headers
A required header to protect against CSRF attacks
Request body
Response
Returns the newly created rule.
Changes
Changed in 5 of the 176 revisions of this API.5414
- ●
the
/request property's maxLength was set to32request-property-max-length-set
- ●
the
/request property's maxLength was set to32request-property-max-length-set
- ●
the
/request property's maxLength was set to32request-property-max-length-set
- ●
the
/request property's maxLength was set to32request-property-max-length-set
- ●
- ▲
removed
subschema #1subschema #2from therequest propertyanyOflistrequest-property-any-of-removed
- ▲
removed
subschema #1subschema #2subschema #3from therequest propertyanyOflistrequest-property-any-of-removed
- ▲
removed
subschema #1subschema #2subschema #3subschema #4from therequest propertyanyOflistrequest-property-any-of-removed
- ○
added
subschema #1subschema #2to therequest propertyanyOflistrequest-property-any-of-added
- ○
added
subschema #1subschema #2subschema #3to therequest propertyanyOflistrequest-property-any-of-added
- ○
added
subschema #1subschema #2subschema #3subschema #4to therequest propertyanyOflistrequest-property-any-of-added
- ○
added
subschema #1subschema #2to theresponse propertyanyOflist for the response statusresponse-property-any-of-added
- ○
added
subschema #1subschema #2subschema #3to theresponse propertyanyOflist for the response statusresponse-property-any-of-added
- ○
added
subschema #1subschema #2subschema #3subschema #4to theresponse propertyanyOflist for the response statusresponse-property-any-of-added
- ○
removed
subschema #1subschema #2from theresponse propertyanyOflist for the response statusresponse-property-any-of-removed
- ○
removed
subschema #1subschema #2subschema #3from theresponse propertyanyOflist for the response statusresponse-property-any-of-removed
- ○
removed
subschema #1subschema #2subschema #3subschema #4from theresponse propertyanyOflist for the response statusresponse-property-any-of-removed
- ▲
- ▲
the response property
/////became optional for the statusresponse-property-became-optional
- ○
the request property
/////became optionalrequest-property-became-optional
- ▲
- ▲
removed
subschema #1subschema #2from therequest propertyanyOflistrequest-property-any-of-removed
- ○
added
subschema #1subschema #2to therequest propertyanyOflistrequest-property-any-of-added
- ○
added
subschema #1subschema #2to theresponse propertyanyOflist for the response statusresponse-property-any-of-added
- ○
removed
subschema #1subschema #2from theresponse propertyanyOflist for the response statusresponse-property-any-of-removed
- ▲
- ○
endpoint added
endpoint-added
- ○
Of the 176 revisions, 20 have no diff computed.