PostCreator for creating pinned topics

There is a way to create a pinned topic through PostCreator? The only way I’ve found is by putting pinned_at: Time.current, but I don’t know if it’s the right way to do it. And above all, the topic is pinned but as soon as you view it, it is unpinned. It would be great to be able to make it pinned but until a date. Just like you do it manually from the interface. Thanks in advance!