I'm trying to write script in google apps script to create project from project template in easyredmine.

Here is reference documentation:

The problem is that server responses with 422 code. (Now I'm trying api with Insomnia). Server says only that there are missing required fields in my request.

Here is my xml:

    <project id="2020">

I've omitted custom fields because I turned off required custom fields in templates in my easy redmine.

Interesting is fact that without section "project" I can create project from project template, but it has default name (same as template). Every parameters from section "project" generates error 422.