POST
/
v0
/
project
/
favorites
curl --request POST \
  --url 'https://api.unify.ai/v0/project/favorites' \
  --header "Authorization: Bearer $UNIFY_KEY" \
  --header 'Content-Type: application/json' \
  --data '{}'
{
    "id": 1,
    "project": "my-project",
    "icon": "star",
    "position": 0
}

Creates a new favorite project for the user.

Each favorite must include a project name, icon, and position.

Authorizations

Authorization
string
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

project
string
required

The name of the project to favorite

icon
string
required

Icon identifier for the favorite project

position
integer
required

Position of the project in the favorites list

curl --request POST \
  --url 'https://api.unify.ai/v0/project/favorites' \
  --header "Authorization: Bearer $UNIFY_KEY" \
  --header 'Content-Type: application/json' \
  --data '{}'
{
    "id": 1,
    "project": "my-project",
    "icon": "star",
    "position": 0
}