---
title: "Replace the agent draft version config"
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.cloudraker.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Replace the agent draft version config

Path: CloudRaker Workspace API › Workspace Agents

`PUT /agents/{agentRef}/draft`

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 } }`.

## Authentication

- `bearerAuth`, http, header `Authorization`

## Path parameters

- `agentRef` (`putPaperworkAgentDraft.path.agentRef`; string, required)

## Request body

_Required._

- `documentAgent` (`putPaperworkAgentDraft.documentAgent`; boolean, optional) — Offer this published agent as a document reviewer. Requires file reading and document editing tools.
- `harness` (`putPaperworkAgentDraft.harness`; string, optional) — Automatic execution keeps the agent loop in the platform and starts isolated compute only when a tool needs it. Default: `auto`. Legacy `native` and `sandbox` values remain accepted for existing integrations.
  - one of `"auto"`, `"native"`, `"sandbox"`
- `instructions` (`putPaperworkAgentDraft.instructions`; string, optional) — The standing instructions the agent runs under. A `native` version must also fit the engine ceiling (8000 chars) to publish.
  - maxLength 32768
- `model` (`putPaperworkAgentDraft.model`; object, optional)
  - `policy` (`putPaperworkAgentDraft.model.policy`; string, optional)
    - minLength 1; maxLength 64
  - `maxSteps` (`putPaperworkAgentDraft.model.maxSteps`; integer, optional)
    - min 1; max 100
  - `budgetCredits` (`putPaperworkAgentDraft.model.budgetCredits`; integer, optional)
    - min 1; max 9007199254740991
- `memory` (`putPaperworkAgentDraft.memory`; object, optional) — Saved memory the agent reads and updates across sessions. Private agents only: publishing an org agent with memory enabled answers 422 `memory_requires_private`. Default: on for `sandbox`, off otherwise.
  - `enabled` (`putPaperworkAgentDraft.memory.enabled`; boolean, required)
- `skills` (`putPaperworkAgentDraft.skills`; array<string>, optional)
  - minLength 1; maxLength 64
- `tools` (`putPaperworkAgentDraft.tools`; array<one of>, optional)
  - one of:
    - `object`
      - `kind` (`putPaperworkAgentDraft.tools.1.kind`; string, required)
        - one of `"action"`
      - `installedActionId` (`putPaperworkAgentDraft.tools.1.installedActionId`; string, required)
        - minLength 1; maxLength 128
      - `preApproval` (`putPaperworkAgentDraft.tools.1.preApproval`; boolean, optional)
      - `postApproval` (`putPaperworkAgentDraft.tools.1.postApproval`; boolean, optional)
    - `object`
      - `kind` (`putPaperworkAgentDraft.tools.2.kind`; string, required)
        - one of `"connector"`
      - `connectionId` (`putPaperworkAgentDraft.tools.2.connectionId`; string, required)
        - minLength 1; maxLength 128
      - `readOnlyTools` (`putPaperworkAgentDraft.tools.2.readOnlyTools`; array<string>, optional)
        - minLength 1; maxLength 64
    - `object`
      - `kind` (`putPaperworkAgentDraft.tools.3.kind`; string, required)
        - one of `"platform"`
      - `name` (`putPaperworkAgentDraft.tools.3.name`; string, required)
        - one of `"files"`, `"artifacts"`, `"spaces"`, `"compose"`, `"sign"`, `"search"`, `"objects"`, `"ontology"`, `"markdown"`
    - `object`
      - `kind` (`putPaperworkAgentDraft.tools.4.kind`; string, required)
        - one of `"sandbox"`
      - `name` (`putPaperworkAgentDraft.tools.4.name`; string, required)
        - one of `"fs"`, `"shell"`, `"browser"`, `"code"`, `"net"`
    - `object`
      - `kind` (`putPaperworkAgentDraft.tools.5.kind`; string, required)
        - one of `"delegate"`
    - `object`
      - `kind` (`putPaperworkAgentDraft.tools.6.kind`; string, required)
        - one of `"ask_human"`
- `spaces` (`putPaperworkAgentDraft.spaces`; object, optional)
  - `mode` (`putPaperworkAgentDraft.spaces.mode`; string, optional)
    - one of `"session"`, `"fixed"`, `"any"`
  - `spaceIds` (`putPaperworkAgentDraft.spaces.spaceIds`; array<string>, optional)
    - minLength 1; maxLength 128
  - `spaceTypes` (`putPaperworkAgentDraft.spaces.spaceTypes`; array<string>, optional)
    - pattern `^[a-z][a-z0-9-]{0,38}[a-z0-9]$`
- `network` (`putPaperworkAgentDraft.network`; object, optional)
  - `policyId` (`putPaperworkAgentDraft.network.policyId`; string, optional, nullable)
    - maxLength 128
- `approvals` (`putPaperworkAgentDraft.approvals`; object, optional)
  - `defaultForWrite` (`putPaperworkAgentDraft.approvals.defaultForWrite`; string, optional)
    - one of `"ask"`, `"allow"`
  - `sensitive` (`putPaperworkAgentDraft.approvals.sensitive`; string, optional)
    - one of `"ask"`
  - `approvers` (`putPaperworkAgentDraft.approvals.approvers`; array<string>, optional)
    - minLength 1; maxLength 128
- `delegation` (`putPaperworkAgentDraft.delegation`; object, optional)
  - `canInvite` (`putPaperworkAgentDraft.delegation.canInvite`; any of, optional)
    - any of:
      - `array<string>`
      - `string`: one of `"any"`, `"none"`
- `tasks` (`putPaperworkAgentDraft.tasks`; array<object>, optional)
  - `id` (`putPaperworkAgentDraft.tasks.id`; string, required)
    - minLength 1; maxLength 64
  - `title` (`putPaperworkAgentDraft.tasks.title`; string, required)
    - minLength 1; maxLength 200
  - `instructions` (`putPaperworkAgentDraft.tasks.instructions`; string, optional, nullable)
    - maxLength 4000
  - `dependsOn` (`putPaperworkAgentDraft.tasks.dependsOn`; array<string>, optional)
  - `executor` (`putPaperworkAgentDraft.tasks.executor`; string, optional)
    - one of `"agent"`, `"human"`
  - `assignee` (`putPaperworkAgentDraft.tasks.assignee`; string, optional, nullable)
    - minLength 1; maxLength 128

## Example request

```json
{
  "documentAgent": true,
  "harness": "auto",
  "instructions": "string",
  "model": {
    "policy": "string",
    "maxSteps": 1,
    "budgetCredits": 1
  },
  "memory": {
    "enabled": true
  },
  "skills": [
    "string"
  ],
  "tools": [
    {
      "kind": "action",
      "installedActionId": "string",
      "preApproval": true,
      "postApproval": true
    }
  ],
  "spaces": {
    "mode": "session",
    "spaceIds": [
      "string"
    ],
    "spaceTypes": [
      "string"
    ]
  },
  "network": {
    "policyId": "string"
  },
  "approvals": {
    "defaultForWrite": "ask",
    "sensitive": "ask",
    "approvers": [
      "string"
    ]
  },
  "delegation": {
    "canInvite": [
      "string"
    ]
  },
  "tasks": [
    {
      "id": "string",
      "title": "string",
      "instructions": "string",
      "dependsOn": [
        "string"
      ],
      "executor": "agent",
      "assignee": "string"
    }
  ]
}
```

## Code samples

### cURL

```bash
curl --request PUT \
  --url 'https://api.cloudraker.com/agents/<agentRef>/draft' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "documentAgent": true,
  "harness": "auto",
  "instructions": "string",
  "model": {
    "policy": "string",
    "maxSteps": 1,
    "budgetCredits": 1
  },
  "memory": {
    "enabled": true
  },
  "skills": [
    "string"
  ],
  "tools": [
    {
      "kind": "action",
      "installedActionId": "string",
      "preApproval": true,
      "postApproval": true
    }
  ],
  "spaces": {
    "mode": "session",
    "spaceIds": [
      "string"
    ],
    "spaceTypes": [
      "string"
    ]
  },
  "network": {
    "policyId": "string"
  },
  "approvals": {
    "defaultForWrite": "ask",
    "sensitive": "ask",
    "approvers": [
      "string"
    ]
  },
  "delegation": {
    "canInvite": [
      "string"
    ]
  },
  "tasks": [
    {
      "id": "string",
      "title": "string",
      "instructions": "string",
      "dependsOn": [
        "string"
      ],
      "executor": "agent",
      "assignee": "string"
    }
  ]
}
'
```

### TypeScript

```typescript
const url = 'https://api.cloudraker.com/agents/<agentRef>/draft';
const options = {
  method: 'PUT',
  headers: {'Content-Type': 'application/json', Authorization: 'Bearer <token>'},
  body: JSON.stringify({
    documentAgent: true,
    harness: 'auto',
    instructions: 'string',
    model: {policy: 'string', maxSteps: 1, budgetCredits: 1},
    memory: {enabled: true},
    skills: ['string'],
    tools: [
      {
        kind: 'action',
        installedActionId: 'string',
        preApproval: true,
        postApproval: true
      }
    ],
    spaces: {mode: 'session', spaceIds: ['string'], spaceTypes: ['string']},
    network: {policyId: 'string'},
    approvals: {defaultForWrite: 'ask', sensitive: 'ask', approvers: ['string']},
    delegation: {canInvite: ['string']},
    tasks: [
      {
        id: 'string',
        title: 'string',
        instructions: 'string',
        dependsOn: ['string'],
        executor: 'agent',
        assignee: 'string'
      }
    ]
  })
};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.cloudraker.com/agents/<agentRef>/draft"

payload = {
    "documentAgent": True,
    "harness": "auto",
    "instructions": "string",
    "model": {
        "policy": "string",
        "maxSteps": 1,
        "budgetCredits": 1
    },
    "memory": { "enabled": True },
    "skills": ["string"],
    "tools": [
        {
            "kind": "action",
            "installedActionId": "string",
            "preApproval": True,
            "postApproval": True
        }
    ],
    "spaces": {
        "mode": "session",
        "spaceIds": ["string"],
        "spaceTypes": ["string"]
    },
    "network": { "policyId": "string" },
    "approvals": {
        "defaultForWrite": "ask",
        "sensitive": "ask",
        "approvers": ["string"]
    },
    "delegation": { "canInvite": ["string"] },
    "tasks": [
        {
            "id": "string",
            "title": "string",
            "instructions": "string",
            "dependsOn": ["string"],
            "executor": "agent",
            "assignee": "string"
        }
    ]
}
headers = {
    "Content-Type": "application/json",
    "Authorization": "Bearer <token>"
}

response = requests.put(url, json=payload, headers=headers)

print(response.text)
```

## Responses

### 200

The agent with its new draft.

#### Example

```json
{
  "data": {
    "agent": {
      "id": "string",
      "handle": "string",
      "name": "string",
      "role": "string",
      "avatar": {
        "kind": "initials",
        "color": "string"
      },
      "visibility": "org",
      "ownerUserId": "string",
      "publishedVersionId": "string",
      "documentAgent": true,
      "draftVersionId": "string",
      "emailTriggerId": "string",
      "sourcePlaybookId": "string",
      "createdAt": "2019-08-24T14:15:22Z",
      "updatedAt": "2019-08-24T14:15:22Z",
      "createdBy": "string",
      "archivedAt": "2019-08-24T14:15:22Z"
    },
    "draft": {
      "documentAgent": true,
      "harness": "auto",
      "instructions": "string",
      "model": {
        "policy": "string",
        "maxSteps": 1,
        "budgetCredits": 1
      },
      "memory": {
        "enabled": true
      },
      "skills": [
        "string"
      ],
      "tools": [
        {
          "kind": "action",
          "installedActionId": "string",
          "preApproval": true,
          "postApproval": true
        }
      ],
      "spaces": {
        "mode": "session",
        "spaceIds": [
          "string"
        ],
        "spaceTypes": [
          "string"
        ]
      },
      "network": {
        "policyId": "string"
      },
      "approvals": {
        "defaultForWrite": "ask",
        "sensitive": "ask",
        "approvers": [
          "string"
        ]
      },
      "delegation": {
        "canInvite": [
          "string"
        ]
      },
      "tasks": [
        {
          "id": "string",
          "title": "string",
          "instructions": "string",
          "dependsOn": [
            "string"
          ],
          "executor": "agent",
          "assignee": "string"
        }
      ],
      "id": "string",
      "agentId": "string",
      "version": -9007199254740991,
      "publishedAt": "2019-08-24T14:15:22Z",
      "createdAt": "2019-08-24T14:15:22Z",
      "updatedAt": "2019-08-24T14:15:22Z",
      "createdBy": "string"
    },
    "published": {
      "documentAgent": true,
      "harness": "auto",
      "instructions": "string",
      "model": {
        "policy": "string",
        "maxSteps": 1,
        "budgetCredits": 1
      },
      "memory": {
        "enabled": true
      },
      "skills": [
        "string"
      ],
      "tools": [
        {
          "kind": "action",
          "installedActionId": "string",
          "preApproval": true,
          "postApproval": true
        }
      ],
      "spaces": {
        "mode": "session",
        "spaceIds": [
          "string"
        ],
        "spaceTypes": [
          "string"
        ]
      },
      "network": {
        "policyId": "string"
      },
      "approvals": {
        "defaultForWrite": "ask",
        "sensitive": "ask",
        "approvers": [
          "string"
        ]
      },
      "delegation": {
        "canInvite": [
          "string"
        ]
      },
      "tasks": [
        {
          "id": "string",
          "title": "string",
          "instructions": "string",
          "dependsOn": [
            "string"
          ],
          "executor": "agent",
          "assignee": "string"
        }
      ],
      "id": "string",
      "agentId": "string",
      "version": -9007199254740991,
      "publishedAt": "2019-08-24T14:15:22Z",
      "createdAt": "2019-08-24T14:15:22Z",
      "updatedAt": "2019-08-24T14:15:22Z",
      "createdBy": "string"
    }
  }
}
```

- `data` (`putPaperworkAgentDraft.response.200.data`; object, required)
  - `agent` (`putPaperworkAgentDraft.response.200.data.agent`; object, required)
    - `id` (`putPaperworkAgentDraft.response.200.data.agent.id`; string, required)
    - `handle` (`putPaperworkAgentDraft.response.200.data.agent.handle`; string, required) — Unique per org, derived from the name when not given (`mike`, `mike-2`, …).
    - `name` (`putPaperworkAgentDraft.response.200.data.agent.name`; string, required)
    - `role` (`putPaperworkAgentDraft.response.200.data.agent.role`; string, required)
    - `avatar` (`putPaperworkAgentDraft.response.200.data.agent.avatar`; object, required)
      - `kind` (`putPaperworkAgentDraft.response.200.data.agent.avatar.kind`; string, required)
        - one of `"initials"`, `"generated"`
      - `color` (`putPaperworkAgentDraft.response.200.data.agent.avatar.color`; string, optional)
        - pattern `^#[0-9a-fA-F]{6}$`
    - `visibility` (`putPaperworkAgentDraft.response.200.data.agent.visibility`; string, required)
      - one of `"org"`, `"private"`
    - `ownerUserId` (`putPaperworkAgentDraft.response.200.data.agent.ownerUserId`; string, required)
    - `publishedVersionId` (`putPaperworkAgentDraft.response.200.data.agent.publishedVersionId`; string | null, required) — The `agv_` id a run is started with. Null until the agent is published.
    - `draftVersionId` (`putPaperworkAgentDraft.response.200.data.agent.draftVersionId`; string, required)
    - `emailTriggerId` (`putPaperworkAgentDraft.response.200.data.agent.emailTriggerId`; string | null, required)
    - `sourcePlaybookId` (`putPaperworkAgentDraft.response.200.data.agent.sourcePlaybookId`; string | null, required) — Set on agents created by the playbook migration; null otherwise.
    - `createdAt` (`putPaperworkAgentDraft.response.200.data.agent.createdAt`; string, required)
      - format `date-time`; pattern `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$`
    - `updatedAt` (`putPaperworkAgentDraft.response.200.data.agent.updatedAt`; string, required)
      - format `date-time`; pattern `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$`
    - `createdBy` (`putPaperworkAgentDraft.response.200.data.agent.createdBy`; string, required)
    - `archivedAt` (`putPaperworkAgentDraft.response.200.data.agent.archivedAt`; any of, required)
      - any of: `string`, `null`
    - `documentAgent` (`putPaperworkAgentDraft.response.200.data.agent.documentAgent`; boolean, optional)
  - `draft` (`putPaperworkAgentDraft.response.200.data.draft`; object, required)
    - `id` (`putPaperworkAgentDraft.response.200.data.draft.id`; string, required)
    - `agentId` (`putPaperworkAgentDraft.response.200.data.draft.agentId`; string, required)
    - `version` (`putPaperworkAgentDraft.response.200.data.draft.version`; integer, required)
      - min -9007199254740991; max 9007199254740991
    - `publishedAt` (`putPaperworkAgentDraft.response.200.data.draft.publishedAt`; any of, required)
      - any of: `string`, `null`
    - `createdAt` (`putPaperworkAgentDraft.response.200.data.draft.createdAt`; string, required)
      - format `date-time`; pattern `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$`
    - `updatedAt` (`putPaperworkAgentDraft.response.200.data.draft.updatedAt`; string, required)
      - format `date-time`; pattern `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$`
    - `createdBy` (`putPaperworkAgentDraft.response.200.data.draft.createdBy`; string, required)
    - `documentAgent` (`putPaperworkAgentDraft.response.200.data.draft.documentAgent`; boolean, optional) — Offer this published agent as a document reviewer. Requires file reading and document editing tools.
    - `harness` (`putPaperworkAgentDraft.response.200.data.draft.harness`; string, optional) — Automatic execution keeps the agent loop in the platform and starts isolated compute only when a tool needs it. Default: `auto`. Legacy `native` and `sandbox` values remain accepted for existing integrations.
      - one of `"auto"`, `"native"`, `"sandbox"`
    - `instructions` (`putPaperworkAgentDraft.response.200.data.draft.instructions`; string, optional) — The standing instructions the agent runs under. A `native` version must also fit the engine ceiling (8000 chars) to publish.
      - maxLength 32768
    - `model` (`putPaperworkAgentDraft.response.200.data.draft.model`; object, optional)
      - `policy` (`putPaperworkAgentDraft.response.200.data.draft.model.policy`; string, optional)
        - minLength 1; maxLength 64
      - `maxSteps` (`putPaperworkAgentDraft.response.200.data.draft.model.maxSteps`; integer, optional)
        - min 1; max 100
      - `budgetCredits` (`putPaperworkAgentDraft.response.200.data.draft.model.budgetCredits`; integer, optional)
        - min 1; max 9007199254740991
    - `memory` (`putPaperworkAgentDraft.response.200.data.draft.memory`; object, optional) — Saved memory the agent reads and updates across sessions. Private agents only: publishing an org agent with memory enabled answers 422 `memory_requires_private`. Default: on for `sandbox`, off otherwise.
      - `enabled` (`putPaperworkAgentDraft.response.200.data.draft.memory.enabled`; boolean, required)
    - `skills` (`putPaperworkAgentDraft.response.200.data.draft.skills`; array<string>, optional)
      - minLength 1; maxLength 64
    - `tools` (`putPaperworkAgentDraft.response.200.data.draft.tools`; array<ToolGrant>, optional)
      - one of:
        - `object`
          - `kind` (`putPaperworkAgentDraft.response.200.data.draft.tools.1.kind`; string, required)
          - `installedActionId` (`putPaperworkAgentDraft.response.200.data.draft.tools.1.installedActionId`; string, required)
            - minLength 1; maxLength 128
          - `preApproval` (`putPaperworkAgentDraft.response.200.data.draft.tools.1.preApproval`; boolean, optional)
          - `postApproval` (`putPaperworkAgentDraft.response.200.data.draft.tools.1.postApproval`; boolean, optional)
        - `object`
          - `kind` (`putPaperworkAgentDraft.response.200.data.draft.tools.2.kind`; string, required)
          - `connectionId` (`putPaperworkAgentDraft.response.200.data.draft.tools.2.connectionId`; string, required)
            - minLength 1; maxLength 128
          - `readOnlyTools` (`putPaperworkAgentDraft.response.200.data.draft.tools.2.readOnlyTools`; array<string>, optional)
            - minLength 1; maxLength 64
        - `object`
          - `kind` (`putPaperworkAgentDraft.response.200.data.draft.tools.3.kind`; string, required)
          - `name` (`putPaperworkAgentDraft.response.200.data.draft.tools.3.name`; string, required)
            - one of `"files"`, `"artifacts"`, `"spaces"`, `"compose"`, `"sign"`, `"search"`, `"objects"`, `"ontology"`, `"markdown"`
        - `object`
          - `kind` (`putPaperworkAgentDraft.response.200.data.draft.tools.4.kind`; string, required)
          - `name` (`putPaperworkAgentDraft.response.200.data.draft.tools.4.name`; string, required)
            - one of `"fs"`, `"shell"`, `"browser"`, `"code"`, `"net"`
        - `object`
          - `kind` (`putPaperworkAgentDraft.response.200.data.draft.tools.5.kind`; string, required)
        - `object`
          - `kind` (`putPaperworkAgentDraft.response.200.data.draft.tools.6.kind`; string, required)
    - `spaces` (`putPaperworkAgentDraft.response.200.data.draft.spaces`; object, optional)
      - `mode` (`putPaperworkAgentDraft.response.200.data.draft.spaces.mode`; string, optional)
        - one of `"session"`, `"fixed"`, `"any"`
      - `spaceIds` (`putPaperworkAgentDraft.response.200.data.draft.spaces.spaceIds`; array<string>, optional)
        - minLength 1; maxLength 128
      - `spaceTypes` (`putPaperworkAgentDraft.response.200.data.draft.spaces.spaceTypes`; array<string>, optional)
        - pattern `^[a-z][a-z0-9-]{0,38}[a-z0-9]$`
    - `network` (`putPaperworkAgentDraft.response.200.data.draft.network`; object, optional)
      - `policyId` (`putPaperworkAgentDraft.response.200.data.draft.network.policyId`; any of, optional)
        - any of: `string`, `null`
    - `approvals` (`putPaperworkAgentDraft.response.200.data.draft.approvals`; object, optional)
      - `defaultForWrite` (`putPaperworkAgentDraft.response.200.data.draft.approvals.defaultForWrite`; string, optional)
        - one of `"ask"`, `"allow"`
      - `sensitive` (`putPaperworkAgentDraft.response.200.data.draft.approvals.sensitive`; string, optional)
      - `approvers` (`putPaperworkAgentDraft.response.200.data.draft.approvals.approvers`; array<string>, optional)
        - minLength 1; maxLength 128
    - `delegation` (`putPaperworkAgentDraft.response.200.data.draft.delegation`; object, optional)
      - `canInvite` (`putPaperworkAgentDraft.response.200.data.draft.delegation.canInvite`; any of, optional)
        - any of:
          - `array<string>`
          - `string`: one of `"any"`, `"none"`
    - `tasks` (`putPaperworkAgentDraft.response.200.data.draft.tasks`; array<object>, optional)
      - `id` (`putPaperworkAgentDraft.response.200.data.draft.tasks.id`; string, required)
        - minLength 1; maxLength 64
      - `title` (`putPaperworkAgentDraft.response.200.data.draft.tasks.title`; string, required)
        - minLength 1; maxLength 200
      - `instructions` (`putPaperworkAgentDraft.response.200.data.draft.tasks.instructions`; any of, optional)
        - any of: `string`, `null`
      - `dependsOn` (`putPaperworkAgentDraft.response.200.data.draft.tasks.dependsOn`; array<string>, optional)
      - `executor` (`putPaperworkAgentDraft.response.200.data.draft.tasks.executor`; string, optional)
        - one of `"agent"`, `"human"`
      - `assignee` (`putPaperworkAgentDraft.response.200.data.draft.tasks.assignee`; any of, optional)
        - any of: `string`, `null`
  - `published` (`putPaperworkAgentDraft.response.200.data.published`; any of, required)
    - any of: `AgentVersion`, `null`

### 404

`not_found` — no such agent in this organization.


Source: https://docs.cloudraker.com/workspace/api/workspace-agents/put-paperwork-agent-draft/index.md
