I found the rest api to create jira project https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-projects/#api-rest-api-3-project-post
but it seems that the parameters of request body have no such thing as inherit.
Because I want my created project share the same config with the appointed project.