Publish rule draft
Rules
Publish rule draft
Publish a draft rule and assign it to one or more agents.
POST
Publish rule draft
Publishes one draft
Rule and assigns it to one or more agents.
Headers
Bearer token containing your Fini workspace API key. Format:
Bearer fini_... The key needs write scope.application/jsonPath parameters
Draft rule ID to publish.
Body parameters
Agent IDs to assign after publishing. At least one ID is required.
Response
Returns the publishedRule.
Errors
400 Bad Request
400 Bad Request
The body is malformed, the
botIds array is empty, or one or more agent IDs do not belong to your workspace.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 publishing the draft or syncing agent assignments.

