curl --request POST --header "PRIVATE-TOKEN: <your_access_token>" --header "Content-Type: application/json" \
--data '{"path": "<subgroup_path>", "name": "<subgroup_name>", "parent_id": <parent_group_id> } \
"https://gitlab.example.com/api/v4/groups/"
I was following the documentation from gitlab. I just wanted to to know how to represent the part after --data
as a python request. Will it be a part of params
, json
or any other parameter in requests module?
Any help is appreciated. Thank you.