Add packages to a feature
The id of the feature.
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 payload for add package to a feature
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 title of the feature. This title is used to display the feature in the UI.
The value 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.Dtos.BasePackageFeatureCommandRequestDto.ResetPolicy is set to Jfw.Core.EntityClasses.QuotaResetPolicy.Custom.
The id of the package
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.
API call exceeded rate limit due to too many requests.
POST /api/v1/features/{featureId}/packages HTTP/1.1
Host: protocol.jframework.io
Brand-URL: text
Auth-Key: text
Content-Type: application/json
Accept: */*
Content-Length: 132
[
{
"type": "Function",
"title": "text",
"value": 1,
"isUnlimited": true,
"resetPolicy": "Lifetime",
"customIntervalDays": 1,
"packageId": "text"
}
]
{
"success": true,
"statusCode": 200,
"message": "The request was successful.",
"data": true,
"errors": []
}
Last updated
Was this helpful?