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

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-super-api.md) · [All operations](https://skmtc.dev/fieldwire/apis/fieldwire-super-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/fieldwire/fieldwire-super-api/revisions/66ee1c20b92d/schema)
