How To
An Example POST Body Request for the API /task/packages Endpoint
to help you use the api /task/packages endpoint, here is an example post body request this example loads the servicenow plugin ( sw servicenow 2 1 1 swimbundle ) with a post to the api /task/packages endpoint $ curl k location request post 'https //xxx xxx xxx xxx/api/task/packages' header 'connection keep alive' \\ \ header 'authorization bearer xxx \\ \ header 'content type multipart/form data' \\ \ form 'file=@/home/swimlane host/sw servicenow 2 1 1 swimbundle' which returns the response body {"$type" "core models integrations actions packageddescriptorviewmodel, core", "pythonversion" "2 7","id" "sw servicenow","name" "sw servicenow","description" "servicenow ticket management", "author" "swimlane","author email" "info\@swimlane com","version" "2 1 1","url" "http //swimlane com", "installrequires" \[],"packages" \["sw servicenow"],"bundlehash" {"$type" "system byte\[], system private corelib","$value" ""}, "fileid" "acl q2y0l3qw y4qw","isemailbundle"\ false} the “bearer xxx” is the authentication token for a user defined in the swimlane ui (e g admin) before executing the curl command, sw servicenow 2 1 1 swimbundle was downloaded into /home/swimlane host