---
title: "Create Resource"
method: POST
path: "/api/tryon/resources"
tags: ["tryon"]
---

# Create Resource

`POST /api/tryon/resources`

## Request

- Base URL: `https://api.tintin-x.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.tintin-x.com/api/tryon/resources`
- Auth: HTTP bearer

## Request body

- TryonResourceCreate
  - `project_id` string, uuid, required
  - `kind` string, required
  - `role` string, nullable
  - `label` string, nullable
  - `s3_key` string, nullable
  - `external_url` string, nullable
  - `metadata` object

## Response `201`

Successful Response

- TryonResourceResponse
  - `id` string, uuid, required
  - `project_id` string, uuid, required
  - `owner_user_id` string, uuid, required
  - `owner_team_id` string, uuid, nullable, required
  - `kind` string, required
  - `role` string, nullable, required
  - `label` string, nullable, required
  - `s3_key` string, nullable, required
  - `external_url` string, nullable, required
  - `metadata` object
  - `archived_at` string, date-time, nullable, required
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/tintin-x/apis/tintin-api.md) · [All operations](https://skmtc.dev/tintin-x/apis/tintin-api/llms.txt) · [OpenAPI document](https://skmtc.dev/tintin-x/apis/tintin-api/revisions/8839a8d0a66c?raw)
