How can I set collection availability for newly created collections using admin graphql endpoint

I have created new smart collection using the admin graphql endpoint. But this collection is not listing in the get all collections API. So I need to set collection availability.

I got following attribute in docs . But It seems deprecated and when I tried it’s saying invalid publication ID. Let me know if I am doing something wrong.