Skip to main content
POST
Create Package

Authorizations

Authorization
string
header
required

Enter your API key as the username. Leave the password field blank. Example: curl -u YOUR_API_KEY: https://api.xplenty.com/...

Headers

Accept
string
default:application/vnd.xplenty+json; version=2
required

API version header — required on all requests

Body

application/json
name
string
required
description
string
flow_type
string
raw_data
object
variables
object

Package variables. Omit to leave the package's variables unchanged on update. Send {} to clear them.

secret_variables
object

Secret variables as key-value pairs. Values of DUMMY_KEY or masked values are ignored. A key with a null value deletes that secret. Sending null for the whole field returns a 422 error.

Response

Package created

id
integer
name
string
description
string
variables
object
owner_id
integer
created_at
string<date-time>
updated_at
string<date-time>
url
string<uri>
html_url
string<uri>
status
string
missing_secret_variables
string[]

Returned on create or update when the request referenced secret variables with placeholder values that the package has no value for. Set these secrets before running the package. Present only when at least one secret is missing.