">Introduced</a>) in GitLab 16.6. Ultimate only. |</p>
<p><code>shell
curl --request POST --header "PRIVATE-TOKEN: &lt;your_access_token&gt;" \
     --data "email=test@example.com&amp;user_id=1&amp;access_level=30" "https://gitlab.example.com/api/v4/groups/:id/invitations"
curl --request POST --header "PRIVATE-TOKEN: &lt;your_access_token&gt;" \
     --data "email=test@example.com&amp;user_id=1&amp;access_level=30" "https://gitlab.example.com/api/v4/projects/:id/invitations"</code></p>
<p>Example responses: