---
title: "Submit the Fill Form review"
---

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

# Submit the Fill Form review

Path: CloudRaker Workspace API › Space Runs

`POST /spaces/{spaceId}/runs/{runId}/task`

Submits the reviewed field values for a paused `fill-form` run. Body `{ values }` (by field name); unknown or invalid values are discarded, then the filled PDF is uploaded to the space and the run finishes as `done`. Requires `space:contribute` (denied → 403). Returns 404 or 410 when the review is no longer open, or 500 if production fails (the run then reads `failed`).

## Authentication

- `bearerAuth`, http, header `Authorization`

## Path parameters

- `spaceId` (`submitSpaceRunTask.path.spaceId`; string, required)
- `runId` (`submitSpaceRunTask.path.runId`; string, required)

## Request body

_Required._

- `values` (`submitSpaceRunTask.values`; map<unknown>, required) — Reviewed values keyed by field name. Unknown or ill-typed values are dropped.

## Example request

```json
{
  "values": {
    "property1": null,
    "property2": null
  }
}
```

## Code samples

### cURL

```bash
curl --request POST \
  --url 'https://api.cloudraker.com/spaces/<spaceId>/runs/<runId>/task' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "values": {
    "property1": null,
    "property2": null
  }
}
'
```

### TypeScript

```typescript
const url = 'https://api.cloudraker.com/spaces/<spaceId>/runs/<runId>/task';
const options = {
  method: 'POST',
  headers: {'Content-Type': 'application/json', Authorization: 'Bearer <token>'},
  body: JSON.stringify({values: {property1: null, property2: null}})
};

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/spaces/<spaceId>/runs/<runId>/task"

payload = { "values": {
        "property1": None,
        "property2": None
    } }
headers = {
    "Content-Type": "application/json",
    "Authorization": "Bearer <token>"
}

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

print(response.text)
```

## Responses

### 200

The review was produced and the run finished.

#### Example

```json
{
  "data": {
    "status": "done"
  }
}
```

- `data` (`submitSpaceRunTask.response.200.data`; object, required)
  - `status` (`submitSpaceRunTask.response.200.data.status`; string, required)


Source: https://docs.cloudraker.com/workspace/api/space-runs/submit-space-run-task/index.md
