Zum Hauptinhalt springen
GET
/
files
/
v3
/
files
/
import-from-url
/
async
/
tasks
/
{taskId}
/
status
Importstatus überprüfen
curl --request GET \
  --url https://api.hubapi.com/files/v3/files/import-from-url/async/tasks/{taskId}/status \
  --header 'Authorization: Bearer <token>'
{
  "completedAt": "2023-11-07T05:31:56Z",
  "errors": [
    {
      "category": "<string>",
      "context": {},
      "errors": [
        {
          "code": "<string>",
          "context": "{missingScopes=[scope1, scope2]}",
          "in": "<string>",
          "message": "<string>",
          "subCategory": "<string>"
        }
      ],
      "id": "<string>",
      "links": {},
      "message": "<string>",
      "status": "<string>",
      "subCategory": {}
    }
  ],
  "links": {},
  "numErrors": 123,
  "requestedAt": "2023-11-07T05:31:56Z",
  "result": {
    "access": "HIDDEN_INDEXABLE",
    "archived": true,
    "archivedAt": "2023-11-07T05:31:56Z",
    "createdAt": "2023-11-07T05:31:56Z",
    "defaultHostingUrl": "<string>",
    "encoding": "<string>",
    "expiresAt": 123,
    "extension": "<string>",
    "fileMd5": "<string>",
    "height": 123,
    "id": "<string>",
    "isUsableInContent": true,
    "name": "<string>",
    "parentFolderId": "<string>",
    "path": "<string>",
    "size": 123,
    "sourceGroup": "<string>",
    "type": "<string>",
    "updatedAt": "2023-11-07T05:31:56Z",
    "url": "<string>",
    "width": 123
  },
  "startedAt": "2023-11-07T05:31:56Z",
  "status": "CANCELED",
  "taskId": "<string>"
}

Unterstützte Produkte

Erfordert eines der folgenden Produkte oder höher.
Marketing HubMarketing Hub -Kostenlos
Sales HubSales Hub -Kostenlos
Service HubService Hub -Kostenlos
Content HubContent Hub -Starter
Diese API erfordert einen der folgenden Bereiche:
files
files.ui_hidden.read

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

taskId
string
required

Anhand der URL-Aufgaben-ID importieren

Response

successful operation

completedAt
string<date-time>
required

Zeit bis zum Abschluss der Aufgabe.

startedAt
string<date-time>
required

Zeitstempel, wann die Aufgabe gestartet wurde.

status
enum<string>
required

Aktueller Status der Aufgabe.

Verfügbare Optionen:
CANCELED,
COMPLETE,
PENDING,
PROCESSING
taskId
string
required

ID der angeforderten Aufgabe.

errors
object[]

Beschreibende Fehlermeldung.

Link zur Überprüfung des Status der angeforderten Aufgabe.

numErrors
integer

Anzahl der Fehler, die sich aus der Aufgabe ergeben.

requestedAt
string<date-time>

Zeitstempel, wann die Aufgabe angefragt wurde.

result
object

File