Appearance
Modify favorites
About 130 wordsLess than 1 minute
apiFavorites
2025-03-13
MethodPOST
Request URL
/plugin/datafor-modeler/api/user-settings/favorites
Authorization
This API requires authentication.
Content Typeapplication/json
Request Example
[
{
"fullPath": "/public/workshop.datafor",
"title": "workshop",
"lastUse": 1722844154850
}
]
Params
Name | Location | Type | Required | Description |
---|---|---|---|---|
body | body | array[object] | No | Array of favorite items to modify. |
Response Examples
✅ Success Response
{
"data": "[{\"fullPath\":\"/public/workshop.datafor\",\"title\":\"workshop\",\"lastUse\":1722844154850}]",
"success": true
}
HTTP Responses
HTTP Status Code | Meaning | Description |
---|---|---|
200 | OK | Request successful. |
400 | Bad Request | Invalid input provided. |
401 | Unauthorized | Authentication required. |
500 | Internal Server Error | Unexpected error occurred. |
Response Data Schema
Name | Type | Required | Description |
---|---|---|---|
data | string | Yes | JSON string of modified favorites. |
success | boolean | Yes | true if modification is successful, otherwise false . |