Update a package
The package id.
The brand URL of the request. This is used to identify the brand.
YOUR_BRAND_URL
This is used to authenticate the request. If the request is not authenticated, the server will return a 401 Unauthorized response.
YOUR_AUTH_KEY
This class is used to present the package command request data transfer object.
The code of the package.
The name of the package.
The image URL of the package.
The pattern avatar URL of the package.
The styles of the package. This value is a JSON string.
The description of the package.
The tags of the package.
The tier of the package.
The order of the package.
Flag to indicate if the package is default. By default, the value is false.
The request was successful.
The user is not authorized to access the requested resource. The request is missing the required Auth-Key header.
The user's access was denied.
PUT /api/v1/packages/{id} HTTP/1.1
Host: protocol.jframework.io
Brand-URL: text
Auth-Key: text
Content-Type: application/json
Accept: */*
Content-Length: 379
{
"code": "BASIC001",
"name": "Basic Package",
"imageURL": "https://cdn.jframework.io/packages/basic-package.jpg",
"patternAvatarURL": "https://cdn.jframework.io/packages/basic-pattern.png",
"styles": "{\"color\":\"#007BFF\",\"layout\":\"grid\"}",
"description": "This is a basic package suitable for individual users.",
"tags": "starter,individual,basic",
"tier": 1,
"zOrder": 1,
"isDefault": true
}
{
"success": true,
"statusCode": 200,
"message": "The request was successful.",
"data": {
"id": "sApKpllz4sAplsmzha",
"code": "CODE",
"name": "NAME",
"imageURL": "IMAGE",
"patternAvatarURL": "https://www.example.com/pattern.jpg",
"styles": "{\"color\": \"red\"}",
"description": "DESCRIPTION",
"tags": "TAGS",
"isFree": true,
"tier": 0,
"zOrder": 1,
"features": [
{
"title": "Feature Title",
"unit": "Unit",
"quantity": 10,
"isUnlimited": false,
"id": "sApKpllz4sAplsmzha",
"parentBrandId": "Brand_ID",
"eventId": "Event_ID",
"type": "Function",
"code": "Code",
"name": "Feature Name",
"image": "https://www.example.com/image.jpg",
"styles": "{\"color\": \"red\"}",
"description": "Feature Description",
"tags": "#Tag1, #Tag2",
"zOrder": 1,
"status": "Active"
}
],
"prices": [
{
"id": "sApKpllz4sAplsmzha",
"code": "Code",
"name": "Name",
"amount": 10,
"currency": "USD",
"description": "Description",
"checkoutLink": "CheckoutLink",
"tags": "Tags",
"packageName": "PackageName",
"packageId": "PackageId",
"subscriptionName": "SubscriptionName",
"subscriptionTypeId": "SubscriptionTypeId",
"zOrder": 1
}
],
"isDefault": true
},
"errors": []
}
Last updated
Was this helpful?