---
title: "Create Asset"
method: POST
path: "/assets"
tags: ["asset"]
---

# Create Asset

`POST /assets`

Use this endpoint to create a new asset

## Request body

- CreateAssetRequest
  - `data` object
    - `name` string, required — Minimum length of 1 character
    - `type` 'outfit' | 'top' | 'shirt' | 'bottom' | 'beard' | 'eye' | 'eyebrows' | 'eyeshape' | 'facemask' | 'faceshape' | 'facewear' | 'footwear' | 'glasses' | 'hair' | 'headwear' | 'lipshape' | 'noseshape' | 'costume', required — Defines which body part of the avatar this asset belongs to
    - `gender` 'male' | 'female' | 'neutral', required — Defines which avatar genders are supported
    - `modelUrl` string, uri, required — Must be a valid url pointing to a GLB file
    - `iconUrl` string, uri, required — Must be a valid url pointing to a PNG or JPG file
    - `organizationId` string, required — The id of the organization you wish to create the asset under
    - `applications` object[] — List of applications-asset relations that defines to which applications this asset should be linked to. If empty, this asset is not added to any applications
      - `id` string — ID of the application
      - `organizationId` string — Organization ID that owns the application
      - `isVisibleInEditor` boolean — Whether the asset is visible in the editor
    - `locked` boolean — Whether the asset is locked

## Response `201`

A typical successful response

- AssetInfoResponse
  - `data` AssetInfo
    - `id` string — Automatically generated numeric Identifier of an asset
    - `name` string — The name of an asset
    - `organizationId` string — The Id of the asset owner organization
    - `locked` boolean — A boolean value which when set to true requires the asset to be unlocked for specific user before it is usable by them
    - `type` 'outfit' | 'top' | 'shirt' | 'bottom' | 'beard' | 'eye' | 'eyebrows' | 'eyeshape' | 'facemask' | 'faceshape' | 'facewear' | 'footwear' | 'glasses' | 'hair' | 'headwear' | 'lipshape' | 'noseshape' | 'costume' — Defines which body part of the avatar this asset belongs to
    - `gender` 'male' | 'female' | 'neutral' — Defines which avatar genders are supported
    - `modelUrl` string — The URL where you can find the GLB model for the asset
    - `iconUrl` string — The URL where you can find the icon for the asset
    - `hasApps` boolean — A boolean value indicating if this asset is available in any applications or not
    - `createdAt` string, date-time — Datetime when this asset was created
    - `updatedAt` string, date-time — Datetime when this asset was last updated
    - `applications` ApplicationAssetRelation[] — Array of application-asset relations
      - `id` string — Id of the application
      - `organizationId` string — Application owner organization ID
      - `isVisibleInEditor` boolean — Boolean which defines if the asset is visible in provided applications avatar editor
      - `masculineOrder` integer — For male/neutral assets, defines the asset order in avatar editor for specified application
      - `feminineOrder` integer — For female/neutral assets, defines the asset order in avatar editor for specified application

---

[API](https://skmtc.net/zerobias-org/apis/zerobias-org-module-readyplayerme-readyplayerme.md) · [All operations](https://skmtc.net/zerobias-org/apis/zerobias-org-module-readyplayerme-readyplayerme/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/zerobias-org/zerobias-org-module-readyplayerme-readyplayerme/versions/34213152576e/schema)
