Skip to main content

Import portable task archive

POST
/tasks/import

Applies the agent mapping to a .pa-task-export archive and creates the task on the current deployment.

Contract

Parameter
Value
Sectiontasks
AuthenticationCookieAuth
Consumesmultipart/form-data
Producesapplication/json

Parameters

2 parameters

Name
Location
Required
Type
Description
fileformDatayesfile.pa-task-export archive
mappingsformDatanostringAgent/PCI mapping JSON
  • {}

Responses

4 responses

Status
Description
Type
200
Created task IDobject
400
Invalid archive or mappingobject
401
Unauthorizedobject
500
Failed to create taskobject
  • {
      "<key>": 0
    }
  • {
      "data": {},
      "error": "<string>"
    }
  • {
      "data": {},
      "error": "<string>"
    }
  • {
      "data": {},
      "error": "<string>"
    }