Dokumentation
ReferenzSkills

Read the state of a skill library import.

GET
/skill-library-imports/{importId}

The run from the presigned upload to the finished library. A client polls this until the state is ready or rejected; error means the run itself failed and may be started again with a new import. Only the user who started the run can read it.

Authorization

apiKey
headerX-API-Key<token>

API key issued in the Galilea settings.

Path Parameters

importId*string

ID of the import run, as returned when it was started.

Formatuuid

Response Body

The import run.

application/json
  1. response

One run of a skill library import, from the presigned upload to the finished library. Nothing is written until the malware scan has passed, and any find refuses the whole archive; there is no half import.

id*string
Formatuuid
filename*string
state*string
  • pending: the upload URL was issued, the archive has not arrived yet.
  • scanning: the archive is being checked for malware; nothing is written.
  • importing: the check passed, the library is being written.
  • ready: the library exists; library names it.
  • rejected: the archive was refused; error names the reason.
  • error: the run itself failed and may be repeated with a new import.
Value in"pending""scanning""importing""ready""rejected""error"
library*

The library the archive goes into, created together with the run.

result?

Present once the state is ready.

error?

Present once the state is rejected or error. The service writes no language: reason is the stable code a client maps to its own text, with where put in, and message stays empty. The API carries no language keys; its callers have no language files.

createdAt*string
Formatdate-time
curl -X GET "https://example.com/skill-library-imports/497f6eca-6276-4993-bfeb-53cbbbba6f08"
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "filename": "sales-skills.zip",  "state": "pending",  "library": {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "name": "Vertriebsregeln (2)"  },  "result": {    "library": {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "name": "string"    },    "created": [      {        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",        "name": "angebot-standard",        "description": "string",        "library": {          "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",          "name": "string",          "level": "string"        },        "lastModifiedAt": "2019-08-24T14:15:22Z"      }    ]  },  "error": {    "reason": "archiveUnreadable",    "message": "",    "where": "references/a/b/c/d/liste.md"  },  "createdAt": "2019-08-24T14:15:22Z"}