# Refresh presigned URLs for a multipart storage upload

Returns fresh presigned upload URLs for specific parts of an in-progress multipart upload created by `/v2/storage/uploads`. Use this to resume an upload after part URLs expire instead of restarting the whole upload. Only uploads owned by the authenticated user can be refreshed.

URL: /reference/storage/refreshStorageUploadUrls

## POST /v2/storage/uploads/refresh

```json
{
  "openapi": "3.2.0",
  "info": {
    "title": "Refresh presigned URLs for a multipart storage upload",
    "description": "Lingopal v2 public API for text translation, storage uploads, registered jobs, job workflows, and job outputs.",
    "version": "v2"
  },
  "servers": [
    {
      "url": "https://vod-api.lingopal.ai"
    }
  ],
  "security": [
    {
      "APIKeyHeader": []
    }
  ],
  "paths": {
    "/v2/storage/uploads/refresh": {
      "post": {
        "tags": [
          "Storage"
        ],
        "summary": "Refresh presigned URLs for a multipart storage upload",
        "description": "Returns fresh presigned upload URLs for specific parts of an in-progress multipart upload created by `/v2/storage/uploads`. Use this to resume an upload after part URLs expire instead of restarting the whole upload. Only uploads owned by the authenticated user can be refreshed.",
        "operationId": "refreshStorageUploadUrls",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RefreshStorageUploadRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Fresh presigned upload URLs for the requested parts.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefreshStorageUploadResponse"
                },
                "example": {
                  "upload_urls": [
                    {
                      "part_number": 3,
                      "upload_url": "https://example-bucket.s3.amazonaws.com/presigned_upload/user_123/source.mp4?partNumber=3&X-Amz-Signature=..."
                    }
                  ],
                  "method": "PUT"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid authentication token."
          },
          "403": {
            "description": "The authenticated user cannot access this resource."
          },
          "422": {
            "description": "Request validation error."
          }
        },
        "security": [
          {
            "APIKeyHeader": []
          }
        ]
      }
    }
  },
  "tags": [
    {
      "name": "Storage",
      "description": "Create and complete presigned storage uploads for source files."
    }
  ],
  "components": {
    "schemas": {
      "RefreshStorageUploadRequest": {
        "properties": {
          "file_path": {
            "type": "string",
            "title": "File Path",
            "description": "Storage path returned by `/v2/storage/uploads` for the multipart upload.",
            "examples": [
              "presigned_upload/user_123/source.mp4"
            ]
          },
          "upload_id": {
            "type": "string",
            "title": "Upload Id",
            "description": "Multipart upload ID returned by `/v2/storage/uploads`.",
            "examples": [
              "2~example-upload-id"
            ]
          },
          "part_numbers": {
            "items": {
              "type": "integer"
            },
            "type": "array",
            "maxItems": 10000,
            "minItems": 1,
            "title": "Part Numbers",
            "description": "One-based part numbers that need fresh presigned upload URLs.",
            "examples": [
              [
                3,
                7
              ]
            ]
          }
        },
        "type": "object",
        "required": [
          "file_path",
          "upload_id",
          "part_numbers"
        ],
        "title": "RefreshStorageUploadRequest"
      },
      "RefreshStorageUploadResponse": {
        "properties": {
          "upload_urls": {
            "items": {
              "$ref": "#/components/schemas/UploadPart"
            },
            "type": "array",
            "title": "Upload Urls",
            "description": "Fresh presigned upload URLs for the requested parts."
          },
          "method": {
            "type": "string",
            "const": "PUT",
            "title": "Method",
            "description": "HTTP method clients must use for each presigned upload URL.",
            "default": "PUT"
          }
        },
        "type": "object",
        "required": [
          "upload_urls"
        ],
        "title": "RefreshStorageUploadResponse",
        "examples": [
          {
            "method": "PUT",
            "upload_urls": [
              {
                "part_number": 3,
                "upload_url": "https://example-bucket.s3.amazonaws.com/presigned_upload/user_123/source.mp4?partNumber=3&X-Amz-Signature=..."
              }
            ]
          }
        ]
      },
      "UploadPart": {
        "properties": {
          "part_number": {
            "type": "integer",
            "title": "Part Number",
            "description": "One-based multipart upload part number.",
            "examples": [
              1
            ]
          },
          "upload_url": {
            "type": "string",
            "title": "Upload Url",
            "description": "Presigned URL used to upload this part with the documented HTTP method.",
            "examples": [
              "https://example-bucket.s3.amazonaws.com/presigned_upload/user/file.mp4?X-Amz-Signature=..."
            ]
          }
        },
        "type": "object",
        "required": [
          "part_number",
          "upload_url"
        ],
        "title": "UploadPart"
      }
    },
    "securitySchemes": {
      "APIKeyHeader": {
        "in": "header",
        "name": "X-API-Key",
        "type": "apiKey"
      }
    }
  }
}
```
