Is it possible to set a connection to a vocabulaty content type while creating a post

I have a content type “news”, and a content type “tags” to classify news.

Is it possible to set a connection to “tags” content type while creating a post to a new “news” contet?

i.e.;

“title”: “New Advances in AI”,
“content”: “This is the content of the post.”,
“author”: 1,
“tags”: [1, 2]