Create a deployment
POSThttps://api.freemius.com/v1/products/{product_id}/tags.json
Auth:Bearer TokenSCOPE: PRODUCT
Product-scoped API tokens allow you to operate on the product itself. This token usually allows read-only access to the product configuration and write access to several operations on subscriptions, customers, payments, and more. For most SaaS or app integrations, this is the token you will need.
- Go to the Freemius Developer Dashboard.
- Open the Settings page of the relevant product.
- Click the API & Keys tab.
- Copy the API Bearer Authorization Token from the UI.
Upload a new version of the product (for WordPress products only). The endpoint supports only the multipart/form-data content type and expects two payloads: file and data.
file- The zip file containing the product. For WordPress plugins or themes this must contain the root directory.data- Please omit this when deploying WordPress plugins and themes. In case of deploying templates and widgets, this needs to be a stringified JSON and must have theversionandrequires_platform_versionproperties.
An example of the data property:
{"version": "2.0.0", "requires_platform_version": "1.0.0"}
After you have created a deployment, please send another PUT request to the newly created version to update the
release_statusto eitherreleasedorbeta. The default value ispendingwhich means none of the customers will be able to see the new version.
You can learn more about the deployment process here.
Request
Responses
- 200
- 400
- 401
- 402
- 404
OK
Schema
The Freemius SDK version. Only relevant for WordPress products using the Freemius WP SDK.
The maximum number of downloads allowed for this version. This is used for staged rollout of WordPress products. Unlimited number is set as null.
Bad request. The request could not be understood by the server due to malformed syntax or arguments.
Schema
Unauthorized access error. The request requires authentication but was not provided or the provided authentication does not satisfy the required permissions.
Schema
The request is missing the specified argument.
Schema
The requested resource was not found.