---
title: "Upload a new image"
method: POST
path: "/posts/{post}/image/"
tags: ["posts"]
---

# Upload a new image

`POST /posts/{post}/image/`

## Request

- Base URL: `https://dados.gov.pt/api/1`
- URL: `https://dados.gov.pt/api/1/posts/{post}/image/`
- Auth: none declared

## Headers

- `X-Fields` string, mask

## Request body `multipart/form-data`

- object
  - `file` string, binary
  - `bbox` string

## Response `200`

Success

- UploadedImage
  - `image` string
  - `success` boolean: Whether the upload succeeded or not.

## Changes

- **2025-02-18** `8a6c4a5665e6`: 1 breaking, 1 info
  - api path removed without deprecation
  - endpoint added

[Operation history](https://skmtc.dev/dados/apis/udata-api/changes/posts/:post/image/post.md)

---

[API](https://skmtc.dev/dados/apis/udata-api.md) - [All operations](https://skmtc.dev/dados/apis/udata-api/llms.txt) - [OpenAPI document](https://skmtc.dev/dados/apis/udata-api/revisions/77edaf8a00ea?raw)
