/ workspaces/ {workspace_id}/ gedcom/ importsUpload a GEDCOM file to import
Starts reading the file in the background; nothing is added to the workspace yet. Poll GET .../gedcom/imports/{import_id} until status is awaiting_confirmation, check the analysis and the plan limit check, then confirm. Counts against the upload rate limit as well. Not idempotent: a retry uploads the file again.
| Name | In | Required | Description |
|---|---|---|---|
| workspace_id | path | yes | The workspace (project) id. |
Request body (multipart/form-data, required)
{
"type": "object",
"required": [
"file"
],
"properties": {
"file": {
"type": "string",
"format": "binary",
"description": "A .ged file (up to 75 MB), or a .gdz (GEDZIP) archive up to 300 MB. A GEDZIP archive named .zip is accepted too."
}
}
}Responses
- 202 The import job, analyzing. (GedcomImportStarted)
- 401 Missing, malformed, unknown or revoked API key. (ErrorResponse)
- 403 The account has no paid plan, or the key is read-only (a read_write key is required). (ErrorResponse)
- 404 The workspace does not exist or is not visible to this key's owner. (ErrorResponse)
- 409 The workspace is archived (writes are refused). (ErrorResponse)
- 422 Not multipart, no file, not a .ged, .gdz or .zip file, or the file is too large. (ErrorResponse)
- 429 Rate limit exceeded. Wait the number of seconds in Retry-After. (ErrorResponse)
- 500 Unexpected error. Retry later and quote request_id if it persists. (ErrorResponse)
202 response schema
{
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
"description": "Poll GET .../gedcom/imports/{import_id}."
},
"status": {
"type": "string",
"enum": [
"analyzing",
"awaiting_confirmation",
"importing",
"completed",
"failed",
"cancelled",
"expired"
]
}
},
"required": [
"id",
"status"
]
}