Bugfix: json-api: If a sample is reused the part (partition) variable needs to be set