---
title: "Add one marketing asset to the portal's materials section."
method: POST
path: "/api/v1/admin/affiliate-assets"
tags: ["Affiliate Admin"]
---

# Add one marketing asset to the portal's materials section.

`POST /api/v1/admin/affiliate-assets`

## Request

- Base URL: `https://api.avatarfactory.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.avatarfactory.io/api/v1/admin/affiliate-assets`
- Auth: one of:
  - API key in cookie `session`
  - HTTP bearer

## Request body

- AdminAssetRequest: A marketing asset the admin creates or edits.
  - `description` string, nullable
  - `is_active` boolean
  - `kind` string, required
  - `sort_order` integer
  - `title` string, required
  - `url` string, required

## Response `201`

Created

- AdminAssetItem: An asset as the admin editor sees it, `is_active` included.
  - `description` string, nullable
  - `id` integer, required
  - `is_active` boolean, required
  - `kind` string, required
  - `sort_order` integer, required
  - `title` string, required
  - `url` string, required

## Other responses

- `422`: Unprocessable Entity

---

[API](https://skmtc.dev/avatarfactory/apis/avatarfactory-api.md) · [All operations](https://skmtc.dev/avatarfactory/apis/avatarfactory-api/llms.txt) · [OpenAPI document](https://skmtc.dev/avatarfactory/apis/avatarfactory-api/revisions/66fc7aa3f296?raw)
