Upsert Lookup Value
Upsert endpoint for lookup values following the Router -> Manager -> DBSessionBase pattern
Body·
required
application/json
- Type: stringnamerequired
Lookup value name
- Type: integernullableid
Lookup ID (for update) or None (for create)
Responses
- application/json
- application/json
Request Example for put/departments/upsert
curl https://crm.dreamhub.ai/api/v1/users/departments/upsert \
--request PUT \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
--data '{
"id": 1,
"name": ""
}'
{
"id": 1,
"name": "string"
}
