Update a feature
The id of the feature to update.
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
This class represents the feature data transfer object for the command request.
The event id. This value represents the event that the feature belongs to.
The code of the feature.
The name of the feature.
The unit of the feature.
The default value of the feature.
The help URL of the feature. This value must be a valid URL.
The image of the feature. This value must be a valid URL.
The style of the feature. It is a JSON string. You can use this property to store the CSS styles of the feature.
The description of the feature. The description can be a long text.
The tags of the feature. You can use this property to store the tags of the feature.
The zOrder number in the list. This property is used to sort the features in the list when displaying them. By default, the value is 1.
This enum is used to define the common status of an object in JFW.
Supported values:
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.
PUT /api/v1/features/{id} HTTP/1.1
Host: protocol.jframework.io
Brand-URL: text
Auth-Key: text
Content-Type: application/json
Accept: */*
Content-Length: 366
{
"eventId": "EVT12345",
"code": "FEATURE_LOGIN",
"name": "Login Feature",
"unit": null,
"defaultValue": null,
"helpURL": null,
"image": "https://cdn.jframework.io/features/login-icon.png",
"styles": "{\"iconColor\":\"#4CAF50\",\"background\":\"#F9F9F9\"}",
"description": "Allows users to log into the system using secure authentication.",
"tags": "#auth",
"zOrder": 1,
"status": "Active"
}
{
"success": true,
"statusCode": 200,
"message": "The request was successful.",
"data": {
"id": "sApKpllz4sAplsmzha",
"parentBrandId": "ParentBrandId",
"eventId": "TrackingEventId",
"code": "Code",
"name": "Name",
"unit": null,
"defaultValue": null,
"helpURL": null,
"image": "https://www.example.com/image.jpg",
"styles": "{\"color\": \"red\"}",
"description": "Description",
"tags": "Tag1, Tag2",
"zOrder": 1,
"status": "Active"
},
"errors": []
}
Last updated
Was this helpful?