Commercetools allows you to create attributes set that points to references, to be able to set those using keys you need to use this format that is not yet documented:
With this you will be able to set references using Key
What is documeted is using Id which is a little bit different:
Comments