iris-web
iris-web copied to clipboard
[FR] case custom attributes API PATCH
Is your feature request related to a problem? Please describe. Managing case custom attributes through the API doesn't really work. Two problems:
- There's no option to update a single custom attribute (PATCH). If you update a case and pass in a single custom attribute it empties all the other values.
- The format for pulling and pushing custom attributes from cases doesn't match, so you can't get a case, update a custom attribute and update the case with the full custom attributes object
Example:
Structure of custom attributes when using manage/cases/<id>:
{'Case Info': {'Case Type': {'type': 'html', 'mandatory': False, 'value': 'case' }}}
but expected structure when using manage/cases/update/<id>
{'Case Info': {'Case Type': 'new_value' }}}
Describe the solution you'd like I think both of the above should be looked at, but being able to patch a case/custom attributes with only update values would be enough to workaround this