Publish a new version of a product
Creates a version exactly as the admin panel does, so license holders are notified and the file is downloadable straight away. The release file is either a multipart upload or a base64 encoded object, which lets a release pipeline post plain JSON.
Authorization
bearerAuth AuthorizationBearer <token>
Personal access token generated in the admin dashboard.
In: header
Path Parameters
product*integer
The product ID
Request Body
multipart/form-data
benefit_id?integer|null
version_name*string
Length
length <= 255title*string
Length
length <= 255changelog*string
changelog_format?string
Value in
"markdown" | "html"file*file
Format
binaryResponse Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "http://localhost:8000/api/products/0/versions" \ -F version_name="string" \ -F title="string" \ -F changelog="string" \ -F file="string"{
"data": {
"id": 0,
"product_id": "string",
"option_id": 0,
"purchase_benefit_id": 0,
"benefit_name": "string",
"version_number": "string",
"title": "string",
"changelog": "string",
"download_url": "string",
"file_name": "string",
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z"
}
}{
"message": "string"
}{
"message": "string"
}{
"message": "string"
}{
"message": "string",
"errors": {
"property1": [
"string"
],
"property2": [
"string"
]
}
}