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

# Get fresh links for the pieces of an upload not landed yet

> For an upload created with `parts: true`: answers a fresh link for every piece not yet stored, so an upload slower than one link's expiry can go on. A piece already stored gets no link; its link was signed no-overwrite and the piece stays as it is. A refresh counts as use of the upload, so an upload resumed late is not removed as abandoned before it completes. Answers 409 UPLOAD_NOT_IN_PARTS for an upload created without `parts`, and 409 UPLOAD_COMPLETE once the pieces are joined.




## OpenAPI

````yaml /openapi-builder.yaml post /v1/blobs/{id}/parts
openapi: 3.0.3
info:
  title: Comfy Builder API
  version: 0.1.0
  description: >
    Builder owns builds (editable environment definitions) and cuts immutable,
    deployable releases that Deploy later runs.
servers:
  - url: https://platformapi.comfy.org/builder
    description: Comfy Developer Platform
security:
  - BearerAuth: []
  - ApiKeyAuth: []
paths:
  /v1/blobs/{id}/parts:
    post:
      summary: Get fresh links for the pieces of an upload not landed yet
      description: >
        For an upload created with `parts: true`: answers a fresh link for every
        piece not yet stored, so an upload slower than one link's expiry can go
        on. A piece already stored gets no link; its link was signed
        no-overwrite and the piece stays as it is. A refresh counts as use of
        the upload, so an upload resumed late is not removed as abandoned before
        it completes. Answers 409 UPLOAD_NOT_IN_PARTS for an upload created
        without `parts`, and 409 UPLOAD_COMPLETE once the pieces are joined.
      operationId: refreshBlobUploadParts
      parameters:
        - $ref: '#/components/parameters/PathID'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BlobUploadParts'
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          description: >-
            The upload was not created in pieces, or its pieces are already
            joined.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  parameters:
    PathID:
      name: id
      in: path
      required: true
      schema:
        type: string
  schemas:
    BlobUploadParts:
      type: object
      required:
        - blobId
        - parts
      properties:
        blobId:
          type: string
        parts:
          type: array
          description: >-
            A fresh link for each piece not stored yet, in order; empty when
            every piece is in.
          items:
            $ref: '#/components/schemas/BlobUploadPart'
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: string
          description: Machine-readable error code.
        message:
          type: string
          description: Human-readable detail.
    BlobUploadPart:
      type: object
      required:
        - partNumber
        - offsetBytes
        - sizeBytes
        - uploadUrl
        - expiresAt
      properties:
        partNumber:
          type: integer
          description: The piece's place in the file, from 1.
        offsetBytes:
          type: integer
          format: int64
          description: Where the piece starts in the file.
        sizeBytes:
          type: integer
          format: int64
          description: The piece's length; the link refuses a body of any other length.
        uploadUrl:
          type: string
          description: >-
            Presigned PUT for this piece; size-locked and no-overwrite. The PUT
            must send the header `x-goog-if-generation-match: 0`. The link is
            signed with that header, so a PUT without it is refused.
        expiresAt:
          type: string
          format: date-time
          description: When uploadUrl stops being accepted.
  responses:
    NotFound:
      description: Not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >
        A workspace-scoped Cloud JWT. A missing or invalid token is 401
        UNAUTHORIZED in the Error body.
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: >
        A workspace API key, sent alone. The service checks it on every request
        and acts as the key's user in the key's workspace. A request carrying a
        key and a Bearer token is 400 INVALID_REQUEST, and a value that is not a
        key's shape is 401 UNAUTHORIZED. A refused key answers 401
        (UNAUTHORIZED), 403 (FORBIDDEN), 404 (NOT_FOUND) or 429 (RATE_LIMITED)
        with its message and Retry-After; a 503 (SERVICE_UNAVAILABLE) means the
        key could not be checked right now, so retry. Each refusal answers the
        Error body.

````

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