---
title: "Set keyframe of type poster as asset keyframe"
method: POST
path: "/v1/assets/{asset_id}/custom_keyframe/{poster_id}/"
---

# Set keyframe of type poster as asset keyframe

`POST /v1/assets/{asset_id}/custom_keyframe/{poster_id}/`

## Request

- Base URL: `https://app.iconik.io/API/files`
- URL: `https://app.iconik.io/API/files/v1/assets/{asset_id}/custom_keyframe/{poster_id}/`
- Auth: none declared. Required headers: `App-ID`, `Auth-Token`
- TypeScript: <https://skmtc.dev/iconik/apis/iconik-files/docs/v1/assets/:asset_id/custom_keyframe/:poster_id/post.ts> (a function with typed inputs; its response is checked against the schema)

Required roles:
 - can_write_keyframes

## Path parameters

- `asset_id` string, required
- `poster_id` string, required

## Query parameters

- `overwrite` boolean

## Headers

- `App-ID` string, required
- `Auth-Token` string, required

## Response `201`

Returns custom keyframe

- KeyframeSchema
  - `asset_id` string, uuid, nullable
  - `collection_id` string, uuid, nullable
  - `date_created` string, date-time
  - `date_modified` string, date-time
  - `filename` string
  - `format` string, nullable
  - `id` string, uuid
  - `is_custom_keyframe` boolean
  - `is_public` boolean
  - `name` string
  - `resolution` ResolutionType
    - `height` integer
    - `width` integer
  - `rotation` integer, nullable
  - `size` integer, nullable
  - `status` 'OPEN' | 'GROWING' | 'AWAITED' | 'CLOSED' | 'FAILED' | 'ARCHIVED' | 'MISSING' | 'REDISCOVERED' | 'DELETED'
  - `storage_id` string, uuid
  - `storage_method` string
  - `time_code` TimeCodeType
    - `frames_number` integer
    - `is_drop_frame` boolean
    - `time_base` TimeBaseType
      - `denominator` integer
      - `numerator` integer
  - `type` 'KEYFRAME_MAP' | 'KEYFRAME' | 'POSTER', required
  - `upload_credentials` object
  - `upload_headers` object
  - `upload_method` string
  - `upload_url` string
  - `url` string
  - `version_id` string, uuid, nullable

## Other responses

- `400`: Bad request
- `401`: Token is invalid
- `default`: Error response

---

[API](https://skmtc.dev/iconik/apis/iconik-files.md) - [All operations](https://skmtc.dev/iconik/apis/iconik-files/llms.txt) - [OpenAPI document](https://skmtc.dev/iconik/apis/iconik-files/revisions/ed57d13791a2?raw)
