---
title: "Flatten image with markups for markupable"
method: POST
path: "/api/v3/projects/{project_id}/attachment_markups/flatten"
tags: ["attachment markups"]
---

# Flatten image with markups for markupable

`POST /api/v3/projects/{project_id}/attachment_markups/flatten`

## Request

- Base URL: `https://client-api.us.fieldwire.com`
- URL: `https://client-api.us.fieldwire.com/api/v3/projects/{project_id}/attachment_markups/flatten`
- Auth: HTTP bearer

Flattening a markupable means that Fieldwire will rasterize the image along with its markups to make it a single image for the thumbnail.Currently only the most recent 100 attachment markups will be flattened for performance reasons.

## Path parameters

- `project_id` string, uuid, required

## Query parameters

- `last_synced_at` string, date-time

## Headers

- `Fieldwire-Version` string, date, required
- `Fieldwire-Filter` 'active' | 'deleted'
- `Fieldwire-Per-Page` integer

## Request body

- AttachmentMarkupFlattenInput: Schema for flattening attachment_markups
  - `markupable_id` string, uuid: ID of the attachment entity this markup lives on
  - `markupable_type` 'Attachment' | 'RfiAttachment': Type of the attachment entity this markup lives on

## Response `200`

Successful response

---

[API](https://skmtc.dev/fieldwire/apis/fieldwire-regional-api.md) - [All operations](https://skmtc.dev/fieldwire/apis/fieldwire-regional-api/llms.txt) - [OpenAPI document](https://skmtc.dev/fieldwire/apis/fieldwire-regional-api/revisions/34b820438c0b?raw)
