Since you are creating private message via API call, you could also change the topic status:
It looks like status=archived and enabled=true sets the archived flag.
status=archived
enabled=true