handle multi-same key in pipeline api resource