# Get pending edit previews

`POST` `https://streetartcities.com/api/edits/views`

Get change previews for up to 100 pending edits, in the order given. Edits you can't review, or that have already been reviewed, are left out.

## Request body

- **ids** `array string[]` — required
  Only the first 100 ids are used.

## Requirements

Needs an [access token](/authentication/tokens/). When using OAuth, the token needs the [`edits:read`](/authentication/scopes/) scope.

## Responses

### `200` The edit previews

- **items** `array EditView[]` — required
  - _Array of EditView_
    - **edit** `Edit` — required
      - **id** `string` — required
      - **entityId** `string`
        Missing for pending edits that create a new entity.
      - **entityType** `string` — required
        The kind of entity being changed. `site` is a city.
        Allowed values: `marker`, `artist`, `site`, `tag`, `calendar-event`, `community-note`
      - **actions** `object` — required
        A map of changes. Keys are dot-paths into the entity (e.g. `title` or `attributes.access_note`). Values are either a literal to set, or an operation: `{ "$add": [...], "$remove": [...] }` for arrays, or `{ "$unset": true }` to remove a field. The special keys `$mergeInto` (another entity id), `$delete` (`true`, must be the only action) and `$renameTo` (a new name, tags only, not combined with `$mergeInto`) merge, delete or rename an existing entity.
        - ***** `any`
      - **status** `string` — required
        Allowed values: `submitted`, `accepted`, `rejected`, `reverted`
      - **createdBy** `string` — required
      - **createdAt** `string` — required
      - **reviewedBy** `string`
        `system` when the edit was applied automatically.
      - **reviewedAt** `string`
      - **revertedBy** `string`
      - **revertedAt** `string`
      - **editComment** `string`
      - **editAttachments** `array string[]`
        Links to images attached to the edit comment.
      - **reviewComment** `string`
      - **assignedReviewers** `array string[]` — required
        Groups and/or user ids that may review this edit.
      - **snapshotOld** `object`
        - ***** `any`
      - **snapshotNew** `object`
        - ***** `any`
      - **history** `array object[]` — required
        - _Array of object_
          - **status** `string` — required
            Allowed values: `submitted`, `accepted`, `rejected`, `reverted`
          - **at** `string` — required
          - **by** `string` — required
          - **comment** `string`
      - **site** `string`
      - **country** `string`
      - **attributes** `object`
        Extra details about the edit. `oauthClientId` is set when it was made through a third-party app.
        - ***** `any`
      - **reviewUrl** `string` — required
        Link to the page on the website where the edit can be reviewed, or its status seen.
    - **revertible** `boolean` — required
    - **reviewable** `boolean` — required
      Whether you can accept or reject this edit right now.
    - **changes** `array FieldChange[]` — required
      - _Array of FieldChange_
        - **path** `string` — required
        - **before** `any` — required
        - **after** `any` — required

### `400` Invalid request

- **error** `string` — required

### `401` Not logged in

- **error** `string` — required

### `403` No permission

- **error** `string` — required

### `404` Not found

- **error** `string` — required
