> ## Documentation Index
> Fetch the complete documentation index at: https://docs.member.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Admin Register Synthetic File



## OpenAPI

````yaml /openapi/mio-openapi.json post /api/v1/admin/teams/{team_id}/files/synthetic
openapi: 3.1.0
info:
  description: >-
    Production API reference for Membership.io. Use the authored guides for
    workflows and the generated endpoint pages for exact parameters and schemas.
  title: Membership.io API
  version: 0.1.0
servers:
  - description: Production
    url: https://api.member.dev
security:
  - bearerAuth: []
paths:
  /api/v1/admin/teams/{team_id}/files/synthetic:
    post:
      tags:
        - media-admin
      summary: Admin Register Synthetic File
      operationId: media_admin.post_media_admin_post_admin_teams_by_team_id_files_synthetic
      parameters:
        - in: path
          name: team_id
          required: true
          schema:
            title: Team Id
            type: string
      requestBody:
        content:
          application/vnd.api+json:
            schema:
              $ref: '#/components/schemas/SyntheticFileCreateEnvelope'
        required: true
      responses:
        '201':
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/FileResponse'
          description: Successful Response
        '422':
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      security:
        - HTTPBearer: []
components:
  schemas:
    SyntheticFileCreateEnvelope:
      additionalProperties: false
      description: Request body for POST /api/admin/teams/{team_id}/files/synthetic.
      properties:
        data:
          $ref: '#/components/schemas/SyntheticFileCreateData'
      required:
        - data
      title: SyntheticFileCreateEnvelope
      type: object
    FileResponse:
      description: Single-resource JSON:API response wrapping a FileResource.
      properties:
        data:
          $ref: '#/components/schemas/JsonApiResource_FileAttributes_'
        included:
          anyOf:
            - items: {}
              type: array
            - type: 'null'
          title: Included
        links:
          anyOf:
            - $ref: '#/components/schemas/JsonApiLinks'
            - type: 'null'
        meta:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Meta
      required:
        - data
      title: FileResponse
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    SyntheticFileCreateData:
      additionalProperties: false
      properties:
        attributes:
          $ref: '#/components/schemas/SyntheticFileCreateAttributes'
        type:
          const: files
          title: Type
          type: string
      required:
        - type
        - attributes
      title: SyntheticFileCreateData
      type: object
    JsonApiResource_FileAttributes_:
      properties:
        attributes:
          $ref: '#/components/schemas/FileAttributes'
        id:
          title: Id
          type: string
        links:
          anyOf:
            - $ref: '#/components/schemas/JsonApiLinks'
            - type: 'null'
        meta:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Meta
        relationships:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Relationships
        type:
          title: Type
          type: string
      required:
        - id
        - type
        - attributes
      title: JsonApiResource[FileAttributes]
      type: object
    JsonApiLinks:
      properties:
        self:
          anyOf:
            - type: string
            - type: 'null'
          title: Self
      title: JsonApiLinks
      type: object
    ValidationError:
      properties:
        ctx:
          title: Context
          type: object
        input:
          title: Input
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object
    SyntheticFileCreateAttributes:
      additionalProperties: false
      description: >-
        Attributes for registering a READY file with no real upload behind it.


        No `s3_path` field — the server generates a team-namespaced key via

        `s3_key_for`. Accepting a client-supplied path here would let a team
        owner

        register a file pointing at ANOTHER team's S3 key (the download/playback

        routes blindly sign whatever `s3_path` is stored), so it is
        intentionally

        absent, not merely unvalidated.
      properties:
        asset_kind:
          default: document
          description: >-
            Media asset kind (download-only; transcoded kinds are not supported
            for synthetic files).
          enum:
            - document
            - pdf
          title: Asset Kind
          type: string
        collection:
          default: documents
          description: Media collection bucket.
          maxLength: 32
          title: Collection
          type: string
        description:
          anyOf:
            - type: string
            - type: 'null'
          description: Optional file description.
          title: Description
        mime_type:
          anyOf:
            - maxLength: 128
              type: string
            - type: 'null'
          description: MIME type; defaults to application/octet-stream.
          title: Mime Type
        original_filename:
          anyOf:
            - maxLength: 512
              type: string
            - type: 'null'
          description: Original filename; defaults to title.
          title: Original Filename
        size_bytes:
          default: 0
          description: Placeholder size in bytes; a synthetic file has no real bytes.
          minimum: 0
          title: Size Bytes
          type: integer
        title:
          description: Human-readable file name.
          maxLength: 512
          minLength: 1
          title: Title
          type: string
        visibility:
          default: private
          description: Visibility of the registered media asset.
          enum:
            - public
            - unlisted
            - private
          title: Visibility
          type: string
      required:
        - title
      title: SyntheticFileCreateAttributes
      type: object
    FileAttributes:
      description: >-
        Serialisable attributes of a File resource (no id/type inside
        attributes).
      properties:
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
        durable_variants:
          additionalProperties:
            type: string
          title: Durable Variants
          type: object
        duration_seconds:
          anyOf:
            - type: integer
            - type: 'null'
          description: >-
            Media duration in seconds (from Media.duration_seconds). Null for
            non-temporal assets or when not yet known.
          title: Duration Seconds
        folder_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Folder Id
        media_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Media Id
        mime_type:
          anyOf:
            - type: string
            - type: 'null'
          title: Mime Type
        size_bytes:
          anyOf:
            - type: integer
            - type: 'null'
          title: Size Bytes
        status_transcode:
          anyOf:
            - type: string
            - type: 'null'
          title: Status Transcode
        status_transcribe:
          anyOf:
            - type: string
            - type: 'null'
          title: Status Transcribe
        status_upload:
          anyOf:
            - type: string
            - type: 'null'
          title: Status Upload
        title:
          title: Title
          type: string
        variants:
          additionalProperties:
            type: string
          description: Signed imgproxy URLs for image variants. Empty for non-image files.
          title: Variants
          type: object
        variants_expires_at:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          description: >-
            UTC datetime when the signed image variant URLs expire. Null when
            variants is empty.
          title: Variants Expires At
        visibility:
          anyOf:
            - type: string
            - type: 'null'
          title: Visibility
      required:
        - title
      title: FileAttributes
      type: object
  securitySchemes:
    bearerAuth:
      bearerFormat: JWT or mio_sk API key
      description: >-
        Send platform JWTs, contact JWTs, or team API keys as `Authorization:
        Bearer <token>`.
      scheme: bearer
      type: http
    HTTPBearer:
      scheme: bearer
      type: http

````