API support for creating and updating custom fields on items #931
Replies: 3 comments 3 replies
-
Update item both put and patch should have the ability to update custom fields. Anything the frontend can do to the backend is done via the public API. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the guidance. Here are my test results from Homebox Test 1: PATCH to update an existing custom field Payload: {
"fields": [
{
"name": "just a test",
"type": "string",
"textValue": "updated via API"
}
]
} API Response: {
"fields": [
{
"id": "9572e432-8c7b-43a2-971d-a81e3e7a619d",
"type": "text",
"name": "just a test",
"textValue": "asdfasdf",
"numberValue": 0,
"booleanValue": false
}
]
} Field value unchanged in both API and UI. Test 2: PATCH using the field Payload: {
"fields": [
{
"id": "9572e432-8c7b-43a2-971d-a81e3e7a619d",
"name": "just a test",
"type": "text",
"textValue": "updated via API",
"numberValue": 0,
"booleanValue": false
}
]
} API Response: (still unchanged value) Test 3: POST new item with fields Payload: {
"name": "Test Item with Custom Field",
"description": "Testing field creation via API.",
"fields": [
{
"name": "ai_photo_description",
"type": "string",
"textValue": "Should be persisted"
}
]
} API Response: {"error":"Unknown Error"} In all cases, field values are not created or updated via API, and there’s either no error or just “Unknown Error” on create. UI behavior matches API response (unchanged or missing fields). For clarity: Creating new items via API works fine as long as the fields array is omitted. As soon as I include fields (as in Test 3), I get "Unknown Error". Let me know if I can provide additional info or run any specific test. |
Beta Was this translation helpful? Give feedback.
-
I’ve also found that the standard notes field on items cannot be set or updated via the API (POST or PATCH), even though it’s in the schema and UI.
API returns success, but the field remains empty. Summary: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
What is the problem you are trying to solve with this feature?
I’m looking to automate inventory entry in Homebox using the API. Currently, custom fields can only be created or edited per item via the web UI, but not via the API. This limits bulk entry, automation, and integration with AI-driven workflows.
What is the solution you are proposing?
Enable the creation and editing of custom fields for items through the Homebox API, both on item creation (POST) and item update (PATCH/PUT). This would allow automation tools and scripts to store rich, structured metadata with each item, just like the UI allows.
What alternatives have you considered?
Additional context
Enabling this would greatly help with bulk imports, integrations, and AI-driven workflows, especially where images and transcribed voice descriptions are being processed programmatically.
Contributions
Beta Was this translation helpful? Give feedback.
All reactions