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

# Create or update a native raffle entry



## OpenAPI

````yaml /openapi/developer-api.json post /api/v1/raffles/{slug}/entries
openapi: 3.1.0
info:
  title: CollabOS Developer API
  version: 1.0.0
  description: >-
    Formal contract for CollabOS API-key data-plane endpoints, authenticated
    developer-management endpoints, and webhook delivery payloads. API-key
    cursors are opaque and must not be constructed by clients.
servers:
  - url: https://api.collabos.app
    description: Production
security: []
tags:
  - name: Personal API
    description: Personal API-key data-plane endpoints.
  - name: Workspace API
    description: Workspace API-key data-plane endpoints.
  - name: Entries
    description: Native raffle entry operations for personal API keys.
  - name: Developer Management
    description: JWT-authenticated developer capabilities and API-key management.
  - name: Webhook Management
    description: JWT-authenticated webhook endpoint management.
paths:
  /api/v1/raffles/{slug}/entries:
    post:
      tags:
        - Entries
      summary: Create or update a native raffle entry
      operationId: createRaffleEntry
      parameters:
        - name: slug
          in: path
          required: true
          description: Raffle slug.
          schema:
            type: string
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateRaffleEntryRequest'
      responses:
        '200':
          description: Sanitized entry response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeveloperEntryResponse'
        '201':
          description: Sanitized entry response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeveloperEntryResponse'
        '400':
          description: Invalid query, cursor, or request body.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: API key missing or invalid.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: API key type/scope mismatch or workspace mismatch.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Resource not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '409':
          description: Request conflicts with current resource state.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '422':
          description: Request could not be processed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: API rate limit exceeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Internal server error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - ApiKeyBearer: []
        - ApiKeyHeader: []
components:
  schemas:
    CreateRaffleEntryRequest:
      type: object
      additionalProperties: false
      properties:
        walletAddress:
          type:
            - string
            - 'null'
        walletId:
          type:
            - string
            - 'null'
        rememberWalletForCommunity:
          type: boolean
        autoRotateWallet:
          type: boolean
        xIdentityId:
          type:
            - string
            - 'null'
        autoRotateX:
          type: boolean
        discordIdentityId:
          type:
            - string
            - 'null'
        autoRotateDiscord:
          type: boolean
        answers:
          type: object
          additionalProperties: true
        secrets:
          type: object
          additionalProperties:
            type: string
        sourceContext:
          type: object
          additionalProperties: false
          properties:
            source:
              type: string
            medium:
              type: string
            guildId:
              type:
                - string
                - 'null'
            channelId:
              type:
                - string
                - 'null'
            messageId:
              type:
                - string
                - 'null'
            ref:
              type:
                - string
                - 'null'
    DeveloperEntryResponse:
      type: object
      additionalProperties: true
      description: >-
        Sanitized developer entry object. Requirement evaluation data is
        projected to safe public fields.
    ErrorResponse:
      type: object
      required:
        - statusCode
        - error
        - code
        - message
        - requestId
        - timestamp
        - path
      properties:
        statusCode:
          type: integer
          minimum: 400
          maximum: 599
        error:
          type: string
        code:
          type: string
          pattern: ^[A-Z][A-Z0-9_]{1,63}$
        message:
          oneOf:
            - type: string
            - type: array
              items:
                type: string
        requestId:
          type:
            - string
            - 'null'
        timestamp:
          type: string
          format: date-time
        path:
          type: string
        failedRequirements:
          type: array
          items: {}
        requirementFailures:
          type: array
          items: {}
        incompleteRequirements:
          type: array
          items: {}
        failures:
          type: array
          items: {}
        results:
          type: array
          items: {}
        evaluation: {}
  securitySchemes:
    ApiKeyBearer:
      type: http
      scheme: bearer
      bearerFormat: CollabOS API key
      description: >-
        Pass a personal (`co_u_...`) or workspace (`co_w_...`) API key as
        `Authorization: Bearer <key>`. If both supported API-key headers are
        sent, Authorization takes precedence.
    ApiKeyHeader:
      type: apiKey
      in: header
      name: X-API-Key
      description: >-
        Alternative API-key header. Authorization Bearer takes precedence when
        both are supplied.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.