Contents

PATCH [/instances/$INSTANCE]/private/categories/$CATEGORY_ID#

This is used to edit a category. Since API version v16.

Required permission: categories-write

Request:

The request is a CategoryPatchRequest.

Response:

204 No Content:

The category was modified successfully.

400 Bad Request:

The $CATEGORY_ID parameter is malformed. Returned with TALER_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_FAILED or TALER_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 };

}