diff --git a/models/cards.js b/models/cards.js index fedef962f..f2fc6571d 100644 --- a/models/cards.js +++ b/models/cards.js @@ -4042,7 +4042,7 @@ JsonRoutes.add('GET', '/api/boards/:boardId/cards_count', function( * @param {string} cardId the ID of the card * @param {string} customFieldId the ID of the custom field * @param {string} value the new custom field value - * @return_type {_id: string, customFields: object} + * @return_type {_id: string, customFields: [{_id: string, value: object}]} */ JsonRoutes.add( 'POST', diff --git a/public/api/wekan.yml b/public/api/wekan.yml index 7d28c3cbc..ccc1f317f 100644 --- a/public/api/wekan.yml +++ b/public/api/wekan.yml @@ -1666,7 +1666,6 @@ paths: adds the label to the board. tags: - Boards - - Boards consumes: - multipart/form-data - application/json @@ -2261,7 +2260,14 @@ paths: _id: type: string customFields: - type: object + type: array + items: + type: object + properties: + _id: + type: string + value: + type: object /api/boards/{board}/lists/{list}/cards_count: get: operationId: get_list_cards_count