Refine rule draft
Rules
Refine rule draft
Regenerate a draft rule using refinement instructions.
POST
Refine rule draft
Refines one existing draft
Rule using natural-language refinement instructions.
Headers
Bearer token containing your Fini workspace API key. Format:
Bearer fini_... The key needs write scope.application/jsonPath parameters
Draft rule ID to refine.
Body parameters
Natural-language instructions describing how the draft should change.
Response
Returns the refined draftRule.
Draft responses return
isDraft: true and botIds: [].Errors
400 Bad Request
400 Bad Request
The body is malformed, or the draft can no longer be refined because its original source instructions are unavailable.
401 Unauthorized
401 Unauthorized
403 Forbidden
403 Forbidden
The API key does not include the
write scope required for this route.404 Not Found
404 Not Found
The draft rule ID does not exist in your workspace, or it is no longer a draft.
500 Internal Server Error
500 Internal Server Error
Fini failed while generating or storing the refined draft.

