diff --git a/Koha/Item.pm b/Koha/Item.pm index b5dd6f28db..5fada53af8 100644 --- a/Koha/Item.pm +++ b/Koha/Item.pm @@ -1284,7 +1284,7 @@ sub to_api_mapping { ccode => 'collection_code', materials => 'materials_notes', uri => 'uri', - itype => 'item_type', + itype => 'item_type_id', more_subfields_xml => 'extended_subfields', enumchron => 'serial_issue_number', copynumber => 'copy_number', diff --git a/api/v1/swagger/definitions/item.json b/api/v1/swagger/definitions/item.json index 14c110714e..72e6b08214 100644 --- a/api/v1/swagger/definitions/item.json +++ b/api/v1/swagger/definitions/item.json @@ -153,7 +153,7 @@ "type": ["string", "null"], "description": "URL for the item" }, - "item_type": { + "item_type_id": { "type": ["string", "null"], "description": "Itemtype defining the type for this item" },