Skip to main content
PATCH

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

Path Parameters

package_id
integer
required

The unique ID of the package

Body

application/json

Partial update payload for the variables-only endpoint. Only variables and secret_variables are accepted; any other fields are ignored.

variables
object

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

secret_variables
object

Secret variables as key-value pairs, merged into the existing secrets. Values of DUMMY_KEY or masked values are ignored. A key with a null value deletes that secret. Any other value must be a string of at least 6 characters. Sending null for the whole field returns a 422 error.

Response

Package variables updated

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.