Algolia stores variants, not products, and as such we do not have pinning at the product level. When pinning a record, the record can be selected using the objectID. Each variant should have its own independent ObjectID.
As an alternative, you could explore using optional filters to promote the results that match the relevant attributes. We have in depth details of how these filters work here.