# General Translation Platform: Crear subidas de recursos
URL: https://generaltranslation.com/es/docs/platform/openapi/reference/organizations/create-asset-uploads.mdx
Docs index: https://generaltranslation.com/llms.txt
Description: Obtén URL prefirmadas para subir mediante PUT de 1–10 fuentes (hasta 20MB cada una) al actualizar o insertar recursos de la organización; usa una cuando esa solicitud supere los 4MB. Requiere org:assets:write.

{/* Fumadocs ha generado este archivo. No lo edites directamente. Para realizar cambios, vuelve a ejecutar el comando de generación. */}

## Endpoint

`POST https://api.gtx.dev/v2/orgs/{orgId}/assets/uploads`

**Operation ID:** `createAssetUploads`

**Tags:** `Organizations`

**Summary:** Create asset uploads

Get presigned URLs to PUT 1–10 fonts (up to 20MB each) for Upsert Organization assets; use one when that request would be over 4MB. Requires `org:assets:write`.

Authentication: required. Send an API key in the `Authorization: Bearer <key>` header when authenticating.

### Parameters

- `orgId` (path, string, required): Organization ID.
- `gt-api-version` (header, "2026-10-08.v1", required): API contract version. Must be `2026-10-08.v1` or later; requests without it or with an older version return 400.

### Request body (required)

Body (`application/json`, object):
- `files` (object[], required): 1–10 files; each sha256 may appear once.
  - `sha256` (string, required): SHA-256 of the file's bytes, as 64 lowercase hex characters.
  - `size` (integer, required): File size in bytes, at most 20000000.

### Responses

**200**: Upload target for each file, in request order.
Response body (`application/json`, object):
- `files` (object[], required): One result per file, in order.
  - `sha256` (string, required): SHA-256 of the file's bytes, as 64 lowercase hex characters.
  - `status` ("exists" | "upload_required", required): `exists` when these bytes are already stored, so the PUT is skipped; `upload_required` otherwise.
  - `upload` (object): Present when `status` is `upload_required`. Name the file by `upload` in a later request within 24 hours; later, the upload may be deleted.
    - `url` (string, required): Presigned URL to PUT the file bytes to.
    - `headers` (object, required): Headers the PUT must send exactly as given.
      - `x-amz-checksum-sha256` (string, required)
    - `expiresAt` (string, required): The PUT must start before this ISO 8601 time.

**400**: The request is malformed or failed validation, including a repeated sha256 or a size over the limit. No URL is issued.
Response body (`application/json`, object):
- `error` (string, required)
- `code` ("invalid_request" | "invalid_content_encoding" | "api_version_unsupported" | "api_version_too_old", required)

Response body (`text/html`, string):

**401**: Authentication is missing or invalid.
Response body (`application/json`, object):
- `error` (string, required)
- `code` ("unauthenticated" | "api_key_invalid", required)

Response body (`text/html`, string):

**403**: The caller is authenticated but not allowed to perform this operation or access the requested resource.
Response body (`application/json`, object):
- `error` (string, required)
- `code` ("ip_not_allowed" | "permission_missing" | "target_inaccessible", required)

Response body (`text/html`, string):

**413**: The request, or the data it would return, exceeds a size or item limit.
Response body (`application/json`, object):
- `error` (string, required)
- `code` ("payload_too_large", required)

Response body (`text/html`, string):

**415**: The request body's Content-Type is missing or not supported, or its Content-Encoding is not supported. Send the body as application/json, uncompressed or gzip-encoded.
Response body (`application/json`, object):
- `error` (string, required)
- `code` ("unsupported_media_type" | "unsupported_content_encoding", required)

Response body (`text/html`, string):

**429**: Too many requests. The rate limit was exceeded.
Response body (`application/json`, object):
- `error` (string, required)
- `code` ("rate_limited", required)

Response body (`text/html`, string):

**500**: An unexpected server error occurred.
Response body (`application/json`, object):
- `error` (string, required)
- `code` ("internal_error", required)

Response body (`text/html`, string):

Complete OpenAPI 3.1 specification: https://generaltranslation.com/openapi.yaml

OpenAPI schema: [openapi.json](https://generaltranslation.com/openapi.json)

## Sitemap

See the full [sitemap](https://generaltranslation.com/sitemap.md) for all pages.
