Add features to a package
The package id.
The brand URL of the request. This is used to identify the brand.
YOUR_BRAND_URL
Auth-Key is required to authenticate the request. If missing, the server will return 401 Unauthorized.
YOUR_AUTH_KEY
The package feature request to add feature into package.
Provides the feature types. See link: https://docs.jframework.io/lap-trinh/thiet-ke-database/phan-loai-theo-logic/logic-tables/package-and-feature-and-price/1-feature/hang-so
The feature id.
The title of the feature. This title is used to display the feature in the UI.
The quantity of the feature follow by package.
Flag to indicate if the feature is unlimited. Default is false.
Defines the available reset policies for quotas. A reset policy determines how often a quota is replenished (e.g., daily, monthly, yearly).
Supported values:
Optional number of days to use when Jfw.Api.Models.requests.PackageFeatureRequest.ResetPolicy is set to Jfw.Core.EntityClasses.QuotaResetPolicy.Custom.
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.
POST /api/v1/packages/{packageId}/features HTTP/1.1
Host: protocol.jframework.io
Brand-URL: text
Auth-Key: text
Content-Type: application/json
Accept: */*
Content-Length: 132
[
{
"type": "Function",
"featureId": "text",
"title": "text",
"value": 1,
"isUnlimited": true,
"resetPolicy": "Lifetime",
"customIntervalDays": 1
}
]
{
"success": true,
"statusCode": 200,
"message": "The request was successful.",
"data": true,
"errors": []
}
Last updated
Was this helpful?