---
updatedAt: 2026-05-27T10:25:03.000Z
agentTools:
  projectIndex: https://docs.v7labs.com/llms.txt
---

# Sign upload of locally stored files

After getting upload ID(s), sign the incoming upload of local files. After this step, the upload URL needs to be used to upload the data, and finally the upload must be confirmed.

# OpenAPI definition

```json
{
  "components": {
    "schemas": {
      "JsonErrorResponse": {
        "properties": {
          "errors": {
            "items": {
              "properties": {
                "detail": {
                  "example": "null value where string expected",
                  "type": "string",
                  "x-struct": null,
                  "x-validate": null
                },
                "source": {
                  "properties": {
                    "pointer": {
                      "example": "/data/attributes/petName",
                      "type": "string",
                      "x-struct": null,
                      "x-validate": null
                    }
                  },
                  "required": [
                    "pointer"
                  ],
                  "type": "object",
                  "x-struct": null,
                  "x-validate": null
                },
                "title": {
                  "example": "Invalid value",
                  "type": "string",
                  "x-struct": null,
                  "x-validate": null
                }
              },
              "required": [
                "title",
                "source",
                "detail"
              ],
              "type": "object",
              "x-struct": null,
              "x-validate": null
            },
            "type": "array",
            "x-struct": null,
            "x-validate": null
          }
        },
        "required": [
          "errors"
        ],
        "title": "JsonErrorResponse",
        "type": "object",
        "x-struct": "Elixir.OpenApiSpex.JsonErrorResponse",
        "x-validate": null
      },
      "Common.APIError": {
        "additionalProperties": false,
        "properties": {
          "errors": {
            "properties": {
              "code": {
                "enum": [
                  "OUT_OF_ANNOTATION_CREDITS",
                  "NOT_ARCHIVED",
                  "ASSIGN_WORKFLOW_TEMPLATE_UNAVAILABLE",
                  "REJECT_REASON_REQUIRED",
                  "WORKFLOW_UPDATE_FAILURE",
                  "GATED_FEATURE_SSO_AND_SAML",
                  "UPLOAD_DISABLED",
                  "ITEM_REGISTRATION_LIMIT_EXCEEDED",
                  "SSO_REQUIRED",
                  "TOO_MANY_PENDING_EXPORTS",
                  "STORAGE_VALIDATION_FAILED",
                  "INVALID_ITEM_LAYOUT",
                  "WORKFLOW_ALREADY_COMPLETE",
                  "SUBSCRIPTION_INCOMPLETE_EXPIRED",
                  "UNIQUE_CONSTRAINT_VIOLATION",
                  "ITEM_IS_NOT_READY_FOR_ANNOTATIONS_IMPORT",
                  "REPORT_TOO_LARGE",
                  "NO_EXTERNAL_STORAGE_SET_FOR_TEAM",
                  "NO_DEFAULT_WORKFLOW",
                  "PLATFORM_TFA_ENFORCEMENT_LOCKED",
                  "STORAGE_LIMIT_REACHED",
                  "FEATURE_FLAG_DISABLED",
                  "MISSING_FILE_TYPE",
                  "DUPLICATED_FILE_SLOT",
                  "NO_AVAILABLE_WORK",
                  "INVALID_REJECT_REASONS",
                  "MODIFYING_COMPLETE_STAGE",
                  "ENFORCING_SSO_BLOCKS_REGULAR_MEMBERSHIPS",
                  "INVALID_SAML_REQUEST",
                  "MISSING_PARAMETERS",
                  "INCORRECT_CLASS_USAGE",
                  "GROUND_TRUTH_NAME_DUPLICATE",
                  "NOT_AUTHENTICATED",
                  "TOO_MANY_ACTIVE_REPORT_JOBS",
                  "NOT_CURRENT_STAGE",
                  "INVALID_2FA_TOKEN",
                  "DATASET_IN_WORKFLOW",
                  "INCOMPATIBLE_STAGE_TYPE",
                  "STAGE_HISTORY_REQUIRES_DARWIN_JSON",
                  "TARGET_IN_DIFFERENT_DATASET",
                  "ASSIGN_ASSIGNMENT_INVALID",
                  "INVALID_ANNOTATION_DATA",
                  "OUT_OF_SEATS",
                  "STAGE_MISSING_ASSIGNEE",
                  "NO_ANNOTATIONS_ON_SOURCE_ITEM",
                  "REVIEW_STATUS_NOT_SET",
                  "NOT_FOUND",
                  "TOO_MANY_REJECT_REASONS",
                  "SUBSCRIPTION_PAST_DUE",
                  "EXTERNAL_STORAGE_LIMIT_REACHED",
                  "UNPROCESSED_VIDEO_REGISTRATION_DISABLED",
                  "GATED_FEATURE_TFA_ENFORCEMENT",
                  "NO_ACTIVE_WORKFLOW",
                  "USER_NOT_FOUND_FOR_ACTOR",
                  "GROUND_TRUTH_VERSIONING_NOT_SUPPORTED",
                  "CLASSES_USED_IN_WORKFLOW",
                  "DUPLICATED_OBJECT_REJECTED",
                  "SUBSCRIPTION_UNPAID",
                  "MULTIBITRATE_STREAM_NOT_AVAILABLE",
                  "TIMEOUT",
                  "TARGET_STAGE_NOT_CURRENT",
                  "BAD_REQUEST",
                  "MULTIPLE_SLOTS_IN_AS_FRAMES_MODE",
                  "INCLUDES_RASTER_LAYER",
                  "OUT_OF_SUBSCRIBED_STORAGE",
                  "REPORT_JOB_NOT_FINISHED",
                  "ASSIGN_ATTRIBUTES_INVALID",
                  "NOT_AUTHORIZED",
                  "SUBSCRIPTION_CANCELLED",
                  "DATASET_ERROR",
                  "STORAGE_NOT_FOUND",
                  "NO_WORKSPACES_AVAILABLE",
                  "TARGET_REVIEW_STAGE_READONLY",
                  "TOO_MANY_ATTEMPTS",
                  "OUT_OF_SUBSCRIBED_ANNOTATION_CREDITS",
                  "SSO_SIGNUP_REQUIRED",
                  "TOO_MANY_PENDING_AI_REVIEW_BLUEPRINTS",
                  "NOTHING_TO_EXPORT",
                  "INVALID_REJECT_REASON",
                  "TARGET_STAGE_TYPE_INVALID",
                  "PAYMENT_NOT_SETUP",
                  "AWS_MARKETPLACE_FULFILLMENT_INCOMPLETE",
                  "MISSING_SELECT_ALL_FILTER",
                  "DUPLICATED_ITEM_FULL_PATH",
                  "UPLOAD_VIDEO_READONLY_STORAGE_MISSING_FRAME_SPECS",
                  "DUPLICATE_REJECT_REASON",
                  "PATH_ALREADY_TAKEN",
                  "TARGET_ALREADY_ANNOTATED",
                  "FILTER_VALIDATION_ERROR",
                  "OPERATION_ALREADY_IN_PROGRESS",
                  "DATASET_NOT_FOUND",
                  "EXTERNAL_STORAGE_ACCESS_FAILED",
                  "INVALID_URL",
                  "ALREADY_IN_WORKFLOW",
                  "ASSIGN_NOT_ALL_ITEMS_ASSIGNABLE",
                  "INCOMPATIBLE_DATASET_VERSION",
                  "ALREADY_HAS_ANNOTATIONS",
                  "BILLING_ADDRESS_INFO_MISSING",
                  "INVALID_REQUEST",
                  "GATED_FEATURE_EXTERNAL_MODEL_REGISTRATION"
                ],
                "type": "string",
                "x-struct": null,
                "x-validate": null
              },
              "detail": {
                "nullable": true,
                "type": "object",
                "x-struct": null,
                "x-validate": null
              },
              "message": {
                "example": "Error message",
                "nullable": true,
                "type": "string",
                "x-struct": null,
                "x-validate": null
              },
              "status": {
                "example": 422,
                "nullable": false,
                "type": "integer",
                "x-struct": null,
                "x-validate": null
              }
            },
            "required": [
              "message"
            ],
            "type": "object",
            "x-struct": null,
            "x-validate": null
          }
        },
        "required": [
          "errors"
        ],
        "title": "Common.APIError",
        "type": "object",
        "x-struct": "Elixir.GraphotateWeb.Schemas.Common.APIError",
        "x-validate": null
      },
      "DatasetsV2.ItemRegistration.SignUploadResponse": {
        "additionalProperties": false,
        "description": "Presents information required to upload slot. Use the provided URL to make a HTTP PUT with the slot added as raw request body.",
        "properties": {
          "upload_url": {
            "example": "https://darwin-production-data.s3.eu-west-1.amazonaws.com/data/datasets/1234567/originals/d0babb71-38c4-48fe-a5de-a81a1d213482.tif?X-Amz-Signature=f0a621e7d89ba4e7a7108eaf9873566ee5e0e3823bc5862fd3b0b9f1f44d15ac&X-Amz-Algorithm=AWS4-HMAC-SHA256",
            "type": "string",
            "x-struct": null,
            "x-validate": null
          }
        },
        "required": [
          "upload_url"
        ],
        "title": "DatasetsV2.ItemRegistration.SignUploadResponse",
        "type": "object",
        "x-struct": "Elixir.GraphotateWeb.Schemas.DatasetsV2.ItemRegistration.SignUploadResponse",
        "x-validate": null
      },
      "Common.AnyValue": {
        "anyOf": [
          {
            "nullable": true,
            "type": "string",
            "x-struct": null,
            "x-validate": null
          },
          {
            "additionalProperties": true,
            "nullable": true,
            "type": "object",
            "x-struct": null,
            "x-validate": null
          },
          {
            "nullable": true,
            "type": "number",
            "x-struct": null,
            "x-validate": null
          },
          {
            "nullable": true,
            "type": "integer",
            "x-struct": null,
            "x-validate": null
          },
          {
            "nullable": true,
            "type": "boolean",
            "x-struct": null,
            "x-validate": null
          },
          {
            "nullable": true,
            "type": "array",
            "x-struct": null,
            "x-validate": null
          }
        ],
        "description": "Any JSON value. Value provided as input can be any value. Value returned as response should not be checked.",
        "example": {},
        "nullable": true,
        "title": "Common.AnyValue",
        "x-struct": null,
        "x-validate": null
      }
    },
    "securitySchemes": {
      "ApiKeyAuth": {
        "description": "Prefix the value with 'ApiKey '.",
        "in": "header",
        "name": "Authorization",
        "type": "apiKey"
      },
      "BearerAuth": {
        "scheme": "bearer",
        "type": "http"
      }
    }
  },
  "info": {
    "title": "Darwin",
    "version": "1.0"
  },
  "openapi": "3.0.0",
  "paths": {
    "/api/v2/teams/{team_slug}/items/uploads/{upload_id}/sign": {
      "get": {
        "callbacks": {},
        "description": "After getting upload ID(s), sign the incoming upload of local files. After this step, the upload URL needs to be used to upload the data, and finally the upload must be confirmed.",
        "operationId": "imports-sign-upload",
        "parameters": [
          {
            "description": "Team's sluggified name",
            "example": "my-team",
            "in": "path",
            "name": "team_slug",
            "required": true,
            "schema": {
              "type": "string",
              "x-struct": null,
              "x-validate": null
            }
          },
          {
            "description": "ID of the previously registered upload (look for `upload_id` field in registration response).",
            "example": "99b34fc7-ba32-4a7e-9664-0e601568c54f",
            "in": "path",
            "name": "upload_id",
            "required": true,
            "schema": {
              "type": "string",
              "x-struct": null,
              "x-validate": null
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Common.AnyValue"
              }
            }
          },
          "description": "Common.AnyValue",
          "required": false
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DatasetsV2.ItemRegistration.SignUploadResponse"
                }
              }
            },
            "description": "DatasetsV2.ItemRegistration.SignUploadResponse"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Common.APIError"
                }
              }
            },
            "description": "Common.APIError"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Common.APIError"
                }
              }
            },
            "description": "Common.APIError"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JsonErrorResponse"
                }
              }
            },
            "description": "Unprocessable Entity"
          }
        },
        "summary": "Sign upload of locally stored files",
        "tags": [
          "Imports"
        ]
      }
    }
  },
  "security": [
    {
      "BearerAuth": []
    },
    {
      "ApiKeyAuth": []
    }
  ],
  "servers": [
    {
      "url": "https://darwin.v7labs.com",
      "variables": {}
    }
  ]
}
```