---
title: "Create locker room post"
method: POST
path: "/api/locker-room"
tags: ["Locker room"]
---

# Create locker room post

`POST /api/locker-room`

Create a post. content may be empty when media, poll, collectible, or lineup is present. teamId is the about-tag. authorTeamId / postAsTeamId is who the post is authored as (403 if unauthorized). lineup is persisted: { presetKey, assignments, faces }.

## Request body

- object
  - `content` string
  - `imageUrl` string
  - `teamId` string — About-tag team
  - `authorTeamId` string — Post-as-team identity
  - `postAsTeamId` string — Native alias for authorTeamId
  - `privacy` 'public' | 'private'
  - `media` object[]
  - `poll` object
  - `collectible` object
  - `lineup` object — Formation builder attachment
    - `presetKey` string
    - `assignments` object
    - `faces` string[]

## Response `200`

{ success, data }

## Other responses

- `400` — Content is required

---

[API](https://skmtc.net/d-sports-ecosystem/apis/d-sports-api.md) · [All operations](https://skmtc.net/d-sports-ecosystem/apis/d-sports-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/d-sports-ecosystem/d-sports-api/revisions/cbc84b00330e/schema)
