Skip to main content
POST
/
api
/
category-sets
/
move-category
Move category to set
curl --request POST \
  --url https://api.ai2fin.com/api/category-sets/move-category \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "categoryId": "<string>",
  "targetSetId": "<string>"
}
'
{
  "success": true,
  "category": {
    "id": "<string>",
    "name": "<string>",
    "icon": "<string>",
    "color": "<string>",
    "isTaxDeductible": true,
    "taxCategory": "<string>",
    "defaultGstRate": 123
  },
  "message": "<string>"
}

Authorizations

Authorization
string
header
required

JWT token obtained from /api/auth/login endpoint

Body

application/json
categoryId
string
required
targetSetId
string
required

Response

Category moved successfully

success
boolean
category
object
message
string