---
title: "Review a single object field"
---

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

# Review a single object field

Path: CloudRaker Workspace API › Data Objects

`PATCH /spaces/{spaceId}/objects/{definitionId}/{objectId}/fields/{fieldKey}/review`

Sets the review status of one field (`:fieldKey`) on an object. Authorization: requires `space:contribute` on `:spaceId` — lacking it gives **403** (no `space:read` → 404). Body: `{ status, note? }` where `status` is `pending`|`approved`|`rejected`; `approved`/`rejected` review-locks the field against edits, `pending` dismisses the lock. Archived fields are still reviewable. Unknown field key → 404, invalid `status` → 422 `invalid_status`. Returns the updated `{ object }`.

## Authentication

- `bearerAuth`, http, header `Authorization`

## Path parameters

- `spaceId` (`reviewObjectField.path.spaceId`; string, required)
- `definitionId` (`reviewObjectField.path.definitionId`; string, required)
- `objectId` (`reviewObjectField.path.objectId`; string, required)
- `fieldKey` (`reviewObjectField.path.fieldKey`; string, required)

## Request body

_Required._

- `status` (`reviewObjectField.status`; string, required)
  - one of `"pending"`, `"approved"`, `"rejected"`
- `note` (`reviewObjectField.note`; string, optional)

## Example request

```json
{
  "status": "pending",
  "note": "string"
}
```

## Code samples

### cURL

```bash
curl --request PATCH \
  --url 'https://api.cloudraker.com/spaces/<spaceId>/objects/<definitionId>/<objectId>/fields/<fieldKey>/review' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "status": "pending",
  "note": "string"
}
'
```

### TypeScript

```typescript
const url = 'https://api.cloudraker.com/spaces/<spaceId>/objects/<definitionId>/<objectId>/fields/<fieldKey>/review';
const options = {
  method: 'PATCH',
  headers: {'Content-Type': 'application/json', Authorization: 'Bearer <token>'},
  body: JSON.stringify({status: 'pending', note: '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/spaces/<spaceId>/objects/<definitionId>/<objectId>/fields/<fieldKey>/review"

payload = {
    "status": "pending",
    "note": "string"
}
headers = {
    "Content-Type": "application/json",
    "Authorization": "Bearer <token>"
}

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

print(response.text)
```

## Responses

### 200

The object with the field's review state updated.

#### Example

```json
{
  "object": {
    "_id": "string",
    "spaceId": "string",
    "definitionId": "string",
    "definitionVersion": 0,
    "data": {
      "property1": null,
      "property2": null
    },
    "fieldMeta": {
      "property1": {
        "modifiedBy": "string",
        "modifiedAt": "2019-08-24T14:15:22Z",
        "source": "string",
        "locked": true
      },
      "property2": {
        "modifiedBy": "string",
        "modifiedAt": "2019-08-24T14:15:22Z",
        "source": "string",
        "locked": true
      }
    },
    "createdAt": "2019-08-24T14:15:22Z",
    "updatedAt": "2019-08-24T14:15:22Z",
    "createdBy": "string",
    "updatedBy": "string",
    "deletedAt": "2019-08-24T14:15:22Z",
    "provenance": {
      "property1": [
        {
          "property1": null,
          "property2": null
        }
      ],
      "property2": [
        {
          "property1": null,
          "property2": null
        }
      ]
    },
    "review": {
      "property1": {
        "status": "pending",
        "by": "string",
        "at": "2019-08-24T14:15:22Z",
        "note": "string"
      },
      "property2": {
        "status": "pending",
        "by": "string",
        "at": "2019-08-24T14:15:22Z",
        "note": "string"
      }
    },
    "origin": {
      "actionRunId": "string",
      "playbookRunId": "string"
    }
  }
}
```

- `object` (`reviewObjectField.response.200.object`; object, required)
  - `_id` (`reviewObjectField.response.200.object._id`; string, required)
  - `spaceId` (`reviewObjectField.response.200.object.spaceId`; string, required)
  - `definitionId` (`reviewObjectField.response.200.object.definitionId`; string, required)
  - `definitionVersion` (`reviewObjectField.response.200.object.definitionVersion`; number, required)
  - `data` (`reviewObjectField.response.200.object.data`; map<unknown>, required) — Field values keyed by field key.
  - `fieldMeta` (`reviewObjectField.response.200.object.fieldMeta`; map<object>, required)
  - `createdAt` (`reviewObjectField.response.200.object.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` (`reviewObjectField.response.200.object.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` (`reviewObjectField.response.200.object.createdBy`; string, required)
  - `updatedBy` (`reviewObjectField.response.200.object.updatedBy`; string, required)
  - `deletedAt` (`reviewObjectField.response.200.object.deletedAt`; any of, required)
    - any of: `string`, `null`
  - `provenance` (`reviewObjectField.response.200.object.provenance`; map<array<map<unknown>>>, optional) — Per-field grounding: field key → citation pointers, imported verbatim from the extraction feed.
  - `review` (`reviewObjectField.response.200.object.review`; map<object>, optional) — Per-field review state. An approved or rejected field is locked against edits.
  - `origin` (`reviewObjectField.response.200.object.origin`; object, optional) — Set on create, never patchable.
    - `actionRunId` (`reviewObjectField.response.200.object.origin.actionRunId`; string, optional)
    - `playbookRunId` (`reviewObjectField.response.200.object.origin.playbookRunId`; string, optional) — Set only when a playbook dispatched the run; callers cannot claim it.

### 403

Missing `space:contribute`.

### 404

Unknown object/field (or missing `space:read`).

### 422

`invalid_status` — status is not pending/approved/rejected.


Source: https://docs.cloudraker.com/workspace/api/data-objects/review-object-field/index.md
