---
title: "Image"
method: POST
path: "/clubs/{club_id}/galleries/{gallery_id}/images"
tags: ["Image"]
---

# Image

`POST /clubs/{club_id}/galleries/{gallery_id}/images`

## Request

- Base URL: `https://api.clubplatform.de/api`
- URL: `https://api.clubplatform.de/api/clubs/{club_id}/galleries/{gallery_id}/images`
- Auth: API key in query parameter `auth_token`

Creates an image.

## Path parameters

- `club_id` integer, required
- `gallery_id` string, required

## Request body

- object
  - `image` object, required
    - `id` integer: ID of the image.
    - `position` integer: Position of image in the gallery. Set to `null` to append.
    - `teaser` boolean: True sets this image as teaser for the gallery.
    - `title` string: Title of the image.
    - `description` string: Description of the image.
    - `copyright` string: Copyright notic of the image.
    - `keywords` string[]: List of keywords.
    - `external_id` string, required: ID of the image in an external system.
    - `external_image_url` string, required: URL where the image is downloaded from.
    - `external_landing_page_url` string: URL to a landing page.
    - `url` string: URL to the image.
    - `locale` string: Locale of the object. 'de-DE', 'en-GB' or 'nl-NL'. This locale must be whitelisted for your club!

## Response `200`

OK

- object
  - `data` object
    - `id` integer: ID of the image.
    - `position` integer: Position of image in the gallery. Set to `null` to append.
    - `teaser` boolean: True sets this image as teaser for the gallery.
    - `title` string: Title of the image.
    - `description` string: Description of the image.
    - `copyright` string: Copyright notic of the image.
    - `keywords` string[]: List of keywords.
    - `external_id` string, required: ID of the image in an external system.
    - `external_image_url` string, required: URL where the image is downloaded from.
    - `external_landing_page_url` string: URL to a landing page.
    - `url` string: URL to the image.
    - `locale` string: Locale of the object. 'de-DE', 'en-GB' or 'nl-NL'. This locale must be whitelisted for your club!

## Other responses

- `401`: Unauthorized
- `404`: Not Found

---

[API](https://skmtc.dev/clubplatform/apis/clubplatform-api.md) - [All operations](https://skmtc.dev/clubplatform/apis/clubplatform-api/llms.txt) - [OpenAPI document](https://skmtc.dev/clubplatform/apis/clubplatform-api/revisions/5c107a185e03?raw)
