- PATCH [/instances/$INSTANCE]/private/categories/$CATEGORY_ID#
This is used to edit a category. Since API version v16.
Required permission:
categories-writeRequest:
The request is a CategoryPatchRequest.
Response:
- 204 No Content:
The category was modified successfully.
- 400 Bad Request:
The
$CATEGORY_IDparameter is malformed. Returned withTALER_EC_GENERIC_PARAMETER_MALFORMED.- 404 Not found:
The category is unknown. Returned with
TALER_EC_MERCHANT_GENERIC_CATEGORY_UNKNOWN.- 500 Internal Server Error:
The server experienced an internal failure. Returned with
TALER_EC_GENERIC_DB_STORE_FAILEDorTALER_EC_GENERIC_INTERNAL_INVARIANT_FAILURE.
Details:
interface CategoryPatchRequest { // Name of the category. name: string; // Translations of the name into various // languages. name_i18n?: { [lang_tag: string]: string }; }