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

# Set Sale

> Update the sale configuration for a Moment on the In•Process protocol. This endpoint allows artists to update the price, sale window, token limit per address, and funds recipient for a Moment's sale.

**Note:** At least one sale field must be provided. Requires authentication via API key.



## OpenAPI

````yaml POST /moment/sale
openapi: 3.1.0
info:
  title: In•Process API
  description: >-
    The In•Process API enables browsing and managing moments from timelines.
    Retrieve moments from a specific artist's timeline, browse the in•process
    collective timeline, or filter by collection. The API supports creating
    moments, managing collections, handling payments, and interacting with the
    In•Process protocol ecosystem.
  version: 1.0.0
servers:
  - url: https://api.inprocess.world/api
    description: Production server
security: []
paths:
  /moment/sale:
    post:
      summary: Set Moment Sale
      description: >-
        Update the sale configuration for a Moment on the In•Process protocol.
        This endpoint allows artists to update the price, sale window, token
        limit per address, and funds recipient for a Moment's sale.


        **Note:** At least one sale field must be provided. Requires
        authentication via API key.
      operationId: setMomentSale
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateSaleRequest'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TransactionResponse'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Sale config not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - apiKeyAuth: []
components:
  schemas:
    UpdateSaleRequest:
      type: object
      required:
        - moment
      description: >-
        At least one of pricePerToken, saleStart, saleEnd, maxTokensPerAddress,
        or fundsRecipient must be provided.
      properties:
        moment:
          $ref: '#/components/schemas/MomentIdentifier'
        pricePerToken:
          type: string
          pattern: ^[0-9]+$
          description: >-
            Price per token in wei as a non-negative integer string (e.g., "0"
            for free, "1000000000000000" for 0.001 ETH)
        saleStart:
          type: integer
          description: Unix timestamp for when the sale starts
        saleEnd:
          type: integer
          description: Unix timestamp for when the sale ends
        maxTokensPerAddress:
          type: integer
          minimum: 0
          description: Maximum number of tokens a single address can mint (0 = unlimited)
        fundsRecipient:
          type: string
          description: Address that receives the sale proceeds
    TransactionResponse:
      type: object
      required:
        - hash
        - chainId
      properties:
        hash:
          type: string
          description: Transaction hash of the operation
        chainId:
          type: integer
          description: Chain ID where the transaction was executed
          example: 8453
    Error:
      type: object
      required:
        - status
        - message
      properties:
        status:
          type: string
          enum:
            - error
          description: Error status
        message:
          type: string
          description: Error message
        errors:
          type: array
          description: >-
            Optional array of field-level validation errors. Typically included
            in 400 Bad Request responses for validation errors.
          items:
            type: object
            required:
              - field
              - message
            properties:
              field:
                type: string
                description: The field name that failed validation
              message:
                type: string
                description: The validation error message for this field
    MomentIdentifier:
      type: object
      required:
        - collectionAddress
        - tokenId
      properties:
        collectionAddress:
          type: string
          description: Contract address of the Moment
        tokenId:
          type: string
          description: Token ID of the Moment
        chainId:
          type: integer
          description: 'Chain ID (optional, default: Base 8453)'
          default: 8453
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: >-
        Artist API key for authentication. Get your API key from
        https://inprocess.world/manage/api-keys

````