Skip to main content
POST
/
api
/
favorites
/
reorder
Reorder favorites
curl --request POST \
  --url https://api.morphic.io/api/favorites/reorder \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "favorite_ids": [
    "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  ]
}
'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}

Authorizations

X-API-Key
string
header
required

API key (sk_xxx) from Developer Settings. No X-Account-ID needed.

Headers

x-account-id
string | null

Body

application/json

Request to reorder favorites.

favorite_ids
string<uuid>[]
required

List of favorite IDs in new order

Response

Successful Response