Create child rule
POST
/api/v1/rules/{rule_id}/sub-rules/
const url = 'https://app.ayna.com/api/v1/rules/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/sub-rules/';const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://app.ayna.com/api/v1/rules/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/sub-rules/ \ --header 'Authorization: Bearer <token>'Create a numbered child rule under a parent rule.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”rule_id
required
Rule Id
string format: uuid
Responses
Section titled “Responses”OK
Media typeapplication/json
Response
object
key
additional properties
any
Example generated
{}