Replace the agent draft version config
Replaces the whole draft version config: harness, instructions, model, skills, tools (the grants the version may call), spaces, network, approvals, delegation and tasks. The body is the FULL config — omitted fields fall back to their defaults, they are not merged with the stored draft. Nothing a run sees changes until the draft is published. Authorization: organization administrators only. A private agent is visible only to its owner; every other caller gets 404. Response: { data: { agent, draft, published } }.
PUT
https://api.cloudraker.com/agents/{agentRef}/draft