The following one-liner to create software repositories versions doesn't work well in a pipeline as the version is not accepted.
c8y devices get --id device0001 \
| jq -r '.c8y_SoftwareList[] | select(.type = "apt")' -c \
| c8y software versions create --template "{c8y_Software:{version: input.value.version}}" --dry