Ask an agent to rewrite a tag key's rules
Queues one costgraph-ai run that rewrites the rules under the given tag keys. A tenant runs one proposal at a time, so a request made while a run is in flight answers that run rather than starting a second one, from each key’s description, the saved suggestion context and the billing fields the tenant actually has spend on. Pass one key_id to recompile a single key. guidance is layered on top of each key’s description rather than replacing it, unless the key has no description, in which case it becomes the whole brief. The run is asynchronous and writes nothing to any key: poll it with the returned id, and on done read the new suggestion group of kind regenerate from /virtual-tag-suggestions, which a person applies or ignores. Rules a person wrote by hand are never proposed over and never removed. Repeat presses for the same key set inside the same minute collapse into the run already in flight, which is what queued=false reports; the id still points at that run.
Authorizations
Enter "Bearer {token}"
Headers
Tenant ID