Unable to create or update Custom Fields via REST API – Redmine 6.0
Added by sami rolina about 8 hours ago
Hello,
I am currently working on a Talend job that retrieves values from a database column and attempts to create or update a Custom Field in Redmine via the REST API.
My goal is to automatically create (or update) a custom field of type list, and dynamically populate its possible_values based on data retrieved from my database.
Context¶
- Talaxie version: 202511
- Redmine version: 6.0
- Authentication: API key (X-Redmine-API-Key header)
- REST endpoint used:
- http://localhost/custom_fields.json
- Content-Type: application/json
The issue
When I try to create a new custom field using: POST /custom_fields.json, with a JSON body like:
{
"custom_field": {
"name": "Agrement",
"field_format": "list",
"customized_type": "Issue",
"possible_values": ["A123456789"],
"is_required": false,
"is_filter": true
}
}
I receive: HTTP 403 Forbidden
So it appears that:
Listing custom fields is allowed
Creating or updating custom fields via REST is not permitted
Question¶
1. Is it expected behavior in Redmine 6.0 that custom fields can be retrieved via REST but cannot be created or updated via REST API?
If so:
2. Is there any supported way to programmatically update possible_values of a list custom field?
3. Or is this intentionally restricted to the administration UI only?
My use case requires dynamically maintaining the list of allowed values from an external data source (via Talaxie).
Any clarification or recommended approach would be greatly appreciated.
Thank you very much.
Replies (1)
RE: Unable to create or update Custom Fields via REST API – Redmine 6.0
-
Added by Holger Just about 3 hours ago
1. Is it expected behavior in Redmine 6.0 that custom fields can be retrieved via REST but cannot be created or updated via REST API?
Yes, there is currently not an API to create or update custom field definitions. You can only list existing fields definitions with the API (if you are an administrator).
See Rest_CustomFields for a description of the API.
2. Is there any supported way to programmatically update possible_values of a list custom field?
This is currently not possible with the API.
3. Or is this intentionally restricted to the administration UI only?
Not necessarily intentionally, but yes. In the end, I guess it's just that nobody came around yet to define a proper API to create or update custom fields.