---
title: An Example POST Body Request for the API /task/packages Endpoint
slug: user-guide-10x/an-example-post-body-request-for-the-api-taskpackages-endpoint
docTags: 
createdAt: 2025-12-12T21:36:11.728Z
---

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:

:::BlockQuote
$ 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:

:::BlockQuote
\{"$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.
