- 默认分类
- groups
- Gets a list of access requests for a group.
- Requests access for the authenticated user to a group.
- Approves an access request for the given user.
- Denies an access request for the given user.
- Get a groups list
- Create a group. Available only for users who can create groups.
- Get list of owned groups for authenticated user
- Update a group. Available only for users who can administrate groups.
- Get a single group, with containing projects.
- Remove a group.
- Get a list of projects in this group.
- Transfer a project to the group namespace. Available only for admin.
- Get a list of group issues
- Gets a list of group or project members viewable by the authenticated user.
- Adds a member to a group or project.
- Gets a member of a group or project.
- Updates a member of a group or project.
- Removes a user from a group or project.
- Get group level notification level settings, defaults to Global
- Update group level notification level settings, defaults to Global
- projects
- Gets a list of access requests for a project.GET
- Requests access for the authenticated user to a project.POST
- Approves an access request for the given user.PUT
- Denies an access request for the given user.DELETE
- Get a list of project +awardable+ award emojiGET
- Award a new EmojiPOST
- Get a specific award emojiGET
- Delete a +awardables+ award emojiDELETE
- Get a list of project +awardable+ award emojiGET
- Award a new EmojiPOST
- Get a specific award emojiGET
- Delete a +awardables+ award emojiDELETE
- Get a list of project +awardable+ award emojiGET
- Award a new EmojiPOST
- Get a specific award emojiGET
- Delete a +awardables+ award emojiDELETE
- Get a list of project +awardable+ award emojiGET
- Award a new EmojiPOST
- Get a specific award emojiGET
- Delete a +awardables+ award emojiDELETE
- Get a list of project +awardable+ award emojiGET
- Award a new EmojiPOST
- Get a specific award emojiGET
- Delete a +awardables+ award emojiDELETE
- Get a list of project +awardable+ award emojiGET
- Award a new EmojiPOST
- Get a specific award emojiGET
- Delete a +awardables+ award emojiDELETE
- Get all project boardsGET
- Get a project repository branchesGET
- Create branchPOST
- Get a single branchGET
- Delete a branchDELETE
- Protect a single branchPUT
- Unprotect a single branchPUT
- deleteV3ProjectsIdRepositoryMergedBranchesDELETE
- Get a project buildsGET
- Get builds for a specific commit of a projectGET
- Get a specific build of a projectGET
- Download the artifacts file from buildGET
- Download the artifacts file from buildGET
- Get a trace of a specific build of a projectGET
- Cancel a specific build of a projectPOST
- Retry a specific build of a projectPOST
- Erase build (remove artifacts and build trace)POST
- Keep the artifacts to prevent them from being deletedPOST
- Trigger a manual buildPOST
- Get a project repository commitsGET
- Commit multiple file changes as one commitPOST
- Get a specific commit of a projectGET
- Get the diff for a specific commit of a projectGET
- Get a commit's commentsGET
- Post comment to commitPOST
- Cherry pick commit into a branchPOST
- Get a commit's statusesGET
- Post status to a commitPOST
- Get a specific project's deploy keysGET
- Add new deploy key to currently authenticated userPOST
- Get single deploy keyGET
- Delete deploy key for a projectDELETE
- Enable a deploy key for a projectPOST
- Disable a deploy key for a projectDELETE
- Get a specific project's deploy keysGET
- Add new deploy key to currently authenticated userPOST
- Get single deploy keyGET
- Delete deploy key for a projectDELETE
- Enable a deploy key for a projectPOST
- Disable a deploy key for a projectDELETE
- Get all deployments of the projectGET
- Gets a specific deploymentGET
- Get all environments of the projectGET
- Creates a new environmentPOST
- Updates an existing environmentPUT
- Deletes an existing environmentDELETE
- Get a file from repositoryGET
- Create new file in repositoryPOST
- Update existing file in repositoryPUT
- Delete an existing file in repositoryDELETE
- Set a time estimate for a project issuePOST
- Reset the time estimate for a project issuePOST
- Add spent time for a project issuePOST
- Reset spent time for a project issuePOST
- Show time stats for a project issueGET
- Get a list of project issuesGET
- Create a new project issuePOST
- Get a single project issueGET
- Update an existing issuePUT
- Delete a project issueDELETE
- Move an existing issuePOST
- Get all labels of the projectGET
- Create a new labelPOST
- Delete an existing labelDELETE
- Update an existing label. At least one optional parameter is required.PUT
- Gets a list of group or project members viewable by the authenticated user.GET
- Adds a member to a group or project.POST
- Gets a member of a group or project.GET
- Updates a member of a group or project.PUT
- Removes a user from a group or project.DELETE
- Get a list of merge request diff versionsGET
- Get a single merge request diff versionGET
- Set a time estimate for a project merge_requestPOST
- Reset the time estimate for a project merge_requestPOST
- Add spent time for a project merge_requestPOST
- Reset spent time for a project merge_requestPOST
- Show time stats for a project merge_requestGET
- List merge requestsGET
- Create a merge requestPOST
- Delete a merge requestDELETE
- Get a single merge requestGET
- Update a merge requestPUT
- Get a single merge requestGET
- Update a merge requestPUT
- Get the commits of a merge requestGET
- Show the merge request changesGET
- Merge a merge requestPUT
- Cancel merge if "Merge When Pipeline Succeeds" is enabledPOST
- Get the comments of a merge requestGET
- Post a comment to a merge requestPOST
- List issues that will be closed on mergeGET
- Get the commits of a merge requestGET
- Show the merge request changesGET
- Merge a merge requestPUT
- Cancel merge if "Merge When Pipeline Succeeds" is enabledPOST
- Get the comments of a merge requestGET
- Post a comment to a merge requestPOST
- List issues that will be closed on mergeGET
- Get a list of project milestonesGET
- Create a new project milestonePOST
- Get a single project milestoneGET
- Update an existing project milestonePUT
- Get all issues for a single project milestoneGET
- Get a list of project +noteable+ notesGET
- Create a new +noteable+ notePOST
- Get a single +noteable+ noteGET
- Update an existing +noteable+ notePUT
- Delete a +noteable+ noteDELETE
- Get a list of project +noteable+ notesGET
- Create a new +noteable+ notePOST
- Get a single +noteable+ noteGET
- Update an existing +noteable+ notePUT
- Delete a +noteable+ noteDELETE
- Get a list of project +noteable+ notesGET
- Create a new +noteable+ notePOST
- Get a single +noteable+ noteGET
- Update an existing +noteable+ notePUT
- Delete a +noteable+ noteDELETE
- Get project level notification level settings, defaults to GlobalGET
- Update project level notification level settings, defaults to GlobalPUT
- Get all Pipelines of the projectGET
- Create a new pipelinePOST
- Gets a specific pipeline for the projectGET
- Retry failed builds in the pipelinePOST
- Cancel all builds in the pipelinePOST
- Get project hooksGET
- Add hook to projectPOST
- Get a project hookGET
- Update an existing project hookPUT
- Deletes project hookDELETE
- Get a list of visible projects for authenticated userGET
- Get a projects list for authenticated userGET
- Create new projectPOST
- Get an owned projects list for authenticated userGET
- Gets starred project for the authenticated userGET
- Get all projects for admin userGET
- Search for projects the current user has access toGET
- Create new project for a specified user. Only available to admin users.POST
- Get a single projectGET
- Update an existing projectPUT
- Remove a projectDELETE
- Get events for a single projectGET
- Fork new project for the current user or provided namespace.POST
- Archive a projectPOST
- Unarchive a projectPOST
- Star a projectPOST
- Unstar a projectDELETE
- Mark this project as forked from anotherPOST
- Remove a forked_from relationshipDELETE
- Share the project with a groupPOST
- deleteV3ProjectsIdShareGroupIdDELETE
- Upload a filePOST
- Get the users list of a projectGET
- Get all project snippetsGET
- Create a new project snippetPOST
- Get a single project snippetGET
- Update an existing project snippetPUT
- Delete a project snippetDELETE
- Get a raw project snippetGET
- Get a project repository treeGET
- Get a raw file contentsGET
- Get a raw file contentsGET
- Get a raw blob contents by blob shaGET
- Get an archive of the repositoryGET
- Compare two branches, tags, or commitsGET
- Get repository contributorsGET
- Get runners available for projectGET
- Enable a runner for a projectPOST
- Disable project's runnerDELETE
- Set asana service for projectPUT
- Set assembla service for projectPUT
- Set bamboo service for projectPUT
- Set bugzilla service for projectPUT
- Set buildkite service for projectPUT
- Set builds-email service for projectPUT
- Set campfire service for projectPUT
- Set custom-issue-tracker service for projectPUT
- Set drone-ci service for projectPUT
- Set emails-on-push service for projectPUT
- Set external-wiki service for projectPUT
- Set flowdock service for projectPUT
- Set gemnasium service for projectPUT
- Set hipchat service for projectPUT
- Set irker service for projectPUT
- Set jira service for projectPUT
- Set kubernetes service for projectPUT
- Set mattermost-slash-commands service for projectPUT
- Set slack-slash-commands service for projectPUT
- Set pipelines-email service for projectPUT
- Set pivotaltracker service for projectPUT
- Set pushover service for projectPUT
- Set redmine service for projectPUT
- Set slack service for projectPUT
- Set mattermost service for projectPUT
- Set teamcity service for projectPUT
- Delete a service for projectDELETE
- Get the service settings for projectGET
- Trigger a slash command for mattermost-slash-commandsPOST
- Trigger a slash command for slack-slash-commandsPOST
- Subscribe to a resourcePOST
- Unsubscribe from a resourceDELETE
- Subscribe to a resourcePOST
- Unsubscribe from a resourceDELETE
- Subscribe to a resourcePOST
- Unsubscribe from a resourceDELETE
- Subscribe to a resourcePOST
- Unsubscribe from a resourceDELETE
- Get a project repository tagsGET
- Create a new repository tagPOST
- Get a single repository tagGET
- Delete a repository tagDELETE
- Add a release note to a tagPOST
- Update a tag's release notePUT
- Create a todo on an issuablePOST
- Create a todo on an issuablePOST
- Trigger a GitLab project buildPOST
- Get triggers listGET
- Create a triggerPOST
- Get specific trigger of a projectGET
- Delete a triggerDELETE
- Get project variablesGET
- Create a new variable in a projectPOST
- Get a specific variable from a projectGET
- Update an existing variable from a projectPUT
- Delete an existing variable from a projectDELETE
- Get the lists of a project boardGET
- Create a new board listPOST
- Get a list of a project boardGET
- Moves a board list to a new positionPUT
- Delete a board listDELETE
- internal
- issues
- keys
- ci
- namespaces
- notification_settings
- runners
- snippets
- hooks
- todos
- users
- Get the list of users
- Create a user. Available only for admins.
- Get a single user
- Update a user. Available only for admins.
- Delete a user. Available only for admins.
- Add an SSH key to a specified user. Available only for admins.
- Get the SSH keys of a specified user. Available only for admins.
- Delete an existing SSH key from a specified user. Available only for admins.
- Add an email address to a specified user. Available only for admins.
- Get the emails addresses of a specified user. Available only for admins.
- Delete an email address of a specified user. Available only for admins.
- Block a user. Available only for admins.
- Unblock a user. Available only for admins.
- Get the contribution events of a specified user
- user
- Get the currently authenticated user
- Get the currently authenticated user's SSH keys
- Add a new SSH key to the currently authenticated user
- Get a single key owned by currently authenticated user
- Delete an SSH key from the currently authenticated user
- Get the currently authenticated user's email addresses
- Add new email address to the currently authenticated user
- Get a single email address owned by the currently authenticated user
- Delete an email address from the currently authenticated user
- deploy_keys
- session
- application
- sidekiq
- licenses
- templates
- Get the list of the available license template
- Get the text for a specific license
- Get the list of the available template
- Get the text for a specific template present in local filesystem
- Get the list of the available template
- Get the text for a specific template present in local filesystem
- Get the list of the available template
- Get the text for a specific template present in local filesystem
- gitignores
- gitlab_ci_ymls
- dockerfiles
- version
Removes a user from a group or project.
DELETE
/v3/projects/{id}/members/{user_id}
projects
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location -g --request DELETE 'http://gitlab.example.com/v3/projects//members/'
响应示例响应示例
{}
请求参数
Path 参数
id
string
必需
user_id
integer <int32>
必需
返回响应
🟢204删除成功
application/json
Body
object {0}

【GitLab】API开发者 微信交流群
用微信扫右侧二维码,加入【GitLab】API开发者 交流群,互助沟通


修改于 2025-04-16 11:00:09