Locker room

Create locker room post

Changed on

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 }. Optional mentionedUserIds are resolved and echoed as mentions[] ({ id, handle, name?, profileUrl? }[]). A malformed mentionedUserIds is 400. The write stores tags with notifiedAt null and does not call OneSignal. GET /api/cron/locker-room-post-mentions sends SOCIAL_MENTION once the post is visible (scheduledFor null or already past), using dedupe key mention:post:{postId}:{userId}. Rejects with UGC_TERMS_REQUIRED when the caller's ugcTermsVersion is missing or not equal to the current Terms of Use version.

post/api/locker-room

Request

  • Base URL
    https://app.d-sports.org
  • Auth
    HTTP bearer

Request body

contentstring
imageUrlstring
teamIdstring

About-tag team

authorTeamIdstring

Post-as-team identity

postAsTeamIdstring

Native alias for authorTeamId

scheduledForstring date-time

Scheduled publish date (ISO 8601)

privacy'public' | 'private'
mediaobject[]
pollobject
collectibleobject
mentionedUserIdsstring[] nullable

User ids to tag. Self, unknown, blocked, and private non-followers are dropped. Over-cap ids past 10 are truncated. Null is treated as omit.

Response

{ success, data }

Changes