Create a favorite
This endpoint allows the creation of a favorite given some parameters. The workspace is required, as well as either description or project (no favorite without both will be accepted). The user is also required, but it already goes in the authentication. Also, the user must have access to all resources being referenced in the favorite attributes, and these resources should have valid relationships. For instance, if you want a favorite in a given workspace and with some tags, the tags must belong to that workspace. In case of user having no access to an attribute, a 403 status is returned, if the attributes don't relate correctly between themselves the status returned will be 400.
Request
- Base URLhttps://localhost:8080/api/v9
- AuthHTTP basic
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
Should the response contain data for meta entities
Request body
Example request
{
"billable": true,
"description": "Very often used TE",
"project_id": 222222,
"tag_ids": [
100
],
"task_id": 333333,
"workspace_id": 111111
}Response
Created favorite with its ID
Changes
No recorded changes to this operation across all 1 revision of this API.