Add latest changes from gitlab-org/gitlab@master
This commit is contained in:
parent
ac62f856df
commit
686d497df7
|
|
@ -3,6 +3,7 @@ import { GlButton, GlLink, GlTooltipDirective, GlFormCheckbox } from '@gitlab/ui
|
|||
import * as Sentry from '~/sentry/sentry_browser_wrapper';
|
||||
import { createAlert } from '~/alert';
|
||||
import { __, s__ } from '~/locale';
|
||||
import highlightCurrentUser from '~/behaviors/markdown/highlight_current_user';
|
||||
import DiscussionReplyPlaceholder from '~/notes/components/discussion_reply_placeholder.vue';
|
||||
import { updateGlobalTodoCount } from '~/sidebar/utils';
|
||||
import { confirmAction } from '~/lib/utils/confirm_via_gl_modal/confirm_via_gl_modal';
|
||||
|
|
@ -161,6 +162,16 @@ export default {
|
|||
return this.isFormRendered && this.discussionWithOpenForm === this.discussion.id;
|
||||
},
|
||||
},
|
||||
mounted() {
|
||||
this.$nextTick(() => {
|
||||
highlightCurrentUser(this.$el.querySelectorAll('.gfm-project_member'));
|
||||
});
|
||||
},
|
||||
updated() {
|
||||
this.$nextTick(() => {
|
||||
highlightCurrentUser(this.$el.querySelectorAll('.gfm-project_member'));
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
onDone({ data: { createNote } }) {
|
||||
if (hasErrors(createNote)) {
|
||||
|
|
|
|||
|
|
@ -1,9 +1,22 @@
|
|||
<script>
|
||||
import { GlTabs, GlTab, GlBadge } from '@gitlab/ui';
|
||||
import { GlTabs, GlTab, GlBadge, GlFilteredSearchToken } from '@gitlab/ui';
|
||||
import { isEqual } from 'lodash';
|
||||
import { __ } from '~/locale';
|
||||
import { TIMESTAMP_TYPE_UPDATED_AT } from '~/vue_shared/components/resource_lists/constants';
|
||||
import { numberToMetricPrefix } from '~/lib/utils/number_utils';
|
||||
import { createAlert } from '~/alert';
|
||||
import FilteredSearchAndSort from '~/groups_projects/components/filtered_search_and_sort.vue';
|
||||
import { RECENT_SEARCHES_STORAGE_KEY_PROJECTS } from '~/filtered_search/recent_searches_storage_keys';
|
||||
import { OPERATORS_IS } from '~/vue_shared/components/filtered_search_bar/constants';
|
||||
import { ACCESS_LEVEL_OWNER_INTEGER } from '~/access_level/constants';
|
||||
import {
|
||||
SORT_OPTIONS,
|
||||
SORT_DIRECTION_ASC,
|
||||
SORT_DIRECTION_DESC,
|
||||
SORT_OPTION_UPDATED,
|
||||
FILTERED_SEARCH_TERM_KEY,
|
||||
FILTERED_SEARCH_NAMESPACE,
|
||||
} from '~/projects/filtered_search_and_sort/constants';
|
||||
import {
|
||||
CONTRIBUTED_TAB,
|
||||
CUSTOM_DASHBOARD_ROUTE_NAMES,
|
||||
|
|
@ -20,12 +33,20 @@ export default {
|
|||
heading: __('Projects'),
|
||||
projectCountError: __('An error occurred loading the project counts.'),
|
||||
},
|
||||
filteredSearchAndSort: {
|
||||
sortOptions: SORT_OPTIONS,
|
||||
namespace: FILTERED_SEARCH_NAMESPACE,
|
||||
recentSearchesStorageKey: RECENT_SEARCHES_STORAGE_KEY_PROJECTS,
|
||||
searchTermKey: FILTERED_SEARCH_TERM_KEY,
|
||||
},
|
||||
components: {
|
||||
GlTabs,
|
||||
GlTab,
|
||||
GlBadge,
|
||||
TabView,
|
||||
FilteredSearchAndSort,
|
||||
},
|
||||
inject: ['initialSort', 'programmingLanguages'],
|
||||
data() {
|
||||
return {
|
||||
activeTabIndex: this.initActiveTabIndex(),
|
||||
|
|
@ -65,8 +86,65 @@ export default {
|
|||
};
|
||||
},
|
||||
},
|
||||
computed: {
|
||||
filteredSearchTokens() {
|
||||
return [
|
||||
{
|
||||
type: 'language',
|
||||
icon: 'lock',
|
||||
title: __('Language'),
|
||||
token: GlFilteredSearchToken,
|
||||
unique: true,
|
||||
operators: OPERATORS_IS,
|
||||
options: this.programmingLanguages.map(({ id, name }) => ({
|
||||
// Cast to string so it matches value from query string
|
||||
value: id.toString(),
|
||||
title: name,
|
||||
})),
|
||||
},
|
||||
{
|
||||
type: 'min_access_level',
|
||||
icon: 'user',
|
||||
title: __('Role'),
|
||||
token: GlFilteredSearchToken,
|
||||
unique: true,
|
||||
operators: OPERATORS_IS,
|
||||
options: [
|
||||
{
|
||||
// Cast to string so it matches value from query string
|
||||
value: ACCESS_LEVEL_OWNER_INTEGER.toString(),
|
||||
title: __('Owner'),
|
||||
},
|
||||
],
|
||||
},
|
||||
];
|
||||
},
|
||||
sortQuery() {
|
||||
return this.$route.query.sort;
|
||||
},
|
||||
sort() {
|
||||
if (this.sortQuery) {
|
||||
return this.sortQuery;
|
||||
}
|
||||
|
||||
return this.initialSort || `${SORT_OPTION_UPDATED.value}_${SORT_DIRECTION_ASC}`;
|
||||
},
|
||||
activeSortOption() {
|
||||
return SORT_OPTIONS.find((sortItem) => this.sort.includes(sortItem.value));
|
||||
},
|
||||
isAscending() {
|
||||
return this.sort.endsWith(SORT_DIRECTION_ASC);
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
numberToMetricPrefix,
|
||||
pushQuery(query) {
|
||||
if (isEqual(this.$route.query, query)) {
|
||||
return;
|
||||
}
|
||||
|
||||
this.$router.push({ query });
|
||||
},
|
||||
initActiveTabIndex() {
|
||||
return CUSTOM_DASHBOARD_ROUTE_NAMES.includes(this.$route.name)
|
||||
? 0
|
||||
|
|
@ -88,6 +166,23 @@ export default {
|
|||
shouldShowCountBadge(tab) {
|
||||
return this.tabCount(tab) !== undefined;
|
||||
},
|
||||
onSortDirectionChange(isAscending) {
|
||||
const sort = `${this.activeSortOption.value}_${
|
||||
isAscending ? SORT_DIRECTION_ASC : SORT_DIRECTION_DESC
|
||||
}`;
|
||||
|
||||
this.pushQuery({ ...this.$route.query, sort });
|
||||
},
|
||||
onSortByChange(sortBy) {
|
||||
const sort = `${sortBy}_${this.isAscending ? SORT_DIRECTION_ASC : SORT_DIRECTION_DESC}`;
|
||||
|
||||
this.pushQuery({ ...this.$route.query, sort });
|
||||
},
|
||||
onFilter(filters) {
|
||||
const { sort } = this.$route.query;
|
||||
|
||||
this.pushQuery({ sort, ...filters });
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
|
@ -110,6 +205,27 @@ export default {
|
|||
<tab-view v-if="tab.query" :tab="tab" />
|
||||
<template v-else>{{ tab.text }}</template>
|
||||
</gl-tab>
|
||||
|
||||
<template #tabs-end>
|
||||
<li class="gl-w-full">
|
||||
<filtered-search-and-sort
|
||||
class="gl-border-b-0"
|
||||
:filtered-search-namespace="$options.filteredSearchAndSort.namespace"
|
||||
:filtered-search-tokens="filteredSearchTokens"
|
||||
:filtered-search-term-key="$options.filteredSearchAndSort.searchTermKey"
|
||||
:filtered-search-recent-searches-storage-key="
|
||||
$options.filteredSearchAndSort.recentSearchesStorageKey
|
||||
"
|
||||
:filtered-search-query="$route.query"
|
||||
:is-ascending="isAscending"
|
||||
:sort-options="$options.filteredSearchAndSort.sortOptions"
|
||||
:active-sort-option="activeSortOption"
|
||||
@filter="onFilter"
|
||||
@sort-direction-change="onSortDirectionChange"
|
||||
@sort-by-change="onSortByChange"
|
||||
/>
|
||||
</li>
|
||||
</template>
|
||||
</gl-tabs>
|
||||
</div>
|
||||
</template>
|
||||
|
|
|
|||
|
|
@ -55,3 +55,6 @@ export const CUSTOM_DASHBOARD_ROUTE_NAMES = [
|
|||
DASHBOARD_ROUTE_NAME,
|
||||
PROJECTS_DASHBOARD_ROUTE_NAME,
|
||||
];
|
||||
|
||||
export const FILTERED_SEARCH_NAMESPACE = 'dashboard';
|
||||
export const FILTERED_SEARCH_TERM_KEY = 'name';
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@ import Vue from 'vue';
|
|||
import VueRouter from 'vue-router';
|
||||
import VueApollo from 'vue-apollo';
|
||||
import createDefaultClient from '~/lib/graphql';
|
||||
import { convertObjectPropsToCamelCase } from '~/lib/utils/common_utils';
|
||||
import routes from './routes';
|
||||
import YourWorkProjectsApp from './components/app.vue';
|
||||
|
||||
|
|
@ -22,6 +23,12 @@ export const initYourWorkProjects = () => {
|
|||
|
||||
if (!el) return false;
|
||||
|
||||
const {
|
||||
dataset: { appData },
|
||||
} = el;
|
||||
|
||||
const { initialSort, programmingLanguages } = convertObjectPropsToCamelCase(JSON.parse(appData));
|
||||
|
||||
const apolloProvider = new VueApollo({
|
||||
defaultClient: createDefaultClient(),
|
||||
});
|
||||
|
|
@ -31,6 +38,10 @@ export const initYourWorkProjects = () => {
|
|||
router: createRouter(),
|
||||
apolloProvider,
|
||||
name: 'YourWorkProjectsRoot',
|
||||
provide: {
|
||||
initialSort,
|
||||
programmingLanguages,
|
||||
},
|
||||
render(createElement) {
|
||||
return createElement(YourWorkProjectsApp);
|
||||
},
|
||||
|
|
|
|||
|
|
@ -17,8 +17,6 @@ export const NEW_BRANCH_IN_FORK = __(
|
|||
export const COMMIT_MESSAGE_SUBJECT_MAX_LENGTH = 52;
|
||||
export const COMMIT_MESSAGE_BODY_MAX_LENGTH = 72;
|
||||
|
||||
export const LIMITED_CONTAINER_WIDTH_CLASS = 'limit-container-width';
|
||||
|
||||
export const I18N_COMMIT_DATA_FETCH_ERROR = __('An error occurred while fetching commit data.');
|
||||
|
||||
export const PDF_MAX_FILE_SIZE = 10000000; // 10 MB
|
||||
|
|
|
|||
|
|
@ -4,25 +4,11 @@
|
|||
// https://gitlab.com/gitlab-org/gitlab/-/issues/323200
|
||||
|
||||
import BlobContentViewer from '../components/blob_content_viewer.vue';
|
||||
import { LIMITED_CONTAINER_WIDTH_CLASS } from '../constants';
|
||||
|
||||
export default {
|
||||
components: {
|
||||
BlobContentViewer,
|
||||
},
|
||||
beforeRouteEnter(to, from, next) {
|
||||
next(({ $options }) => {
|
||||
$options.limitedContainerElements.forEach((el) =>
|
||||
el.classList.remove(LIMITED_CONTAINER_WIDTH_CLASS),
|
||||
);
|
||||
});
|
||||
},
|
||||
beforeRouteLeave(to, from, next) {
|
||||
this.$options.limitedContainerElements.forEach((el) =>
|
||||
el.classList.add(LIMITED_CONTAINER_WIDTH_CLASS),
|
||||
);
|
||||
next();
|
||||
},
|
||||
props: {
|
||||
path: {
|
||||
type: String,
|
||||
|
|
@ -38,7 +24,6 @@ export default {
|
|||
default: null,
|
||||
},
|
||||
},
|
||||
limitedContainerElements: document.querySelectorAll(`.${LIMITED_CONTAINER_WIDTH_CLASS}`),
|
||||
};
|
||||
</script>
|
||||
<template>
|
||||
|
|
|
|||
|
|
@ -152,7 +152,14 @@ export default {
|
|||
action: {
|
||||
text: __('View details'),
|
||||
onClick: () => {
|
||||
visitUrl(workItem.webUrl);
|
||||
if (
|
||||
this.$router &&
|
||||
this.$router.options.routes.some((route) => route.name === 'workItem')
|
||||
) {
|
||||
this.$router.push({ name: 'workItem', params: { iid: workItem.iid } });
|
||||
} else {
|
||||
visitUrl(workItem.webUrl);
|
||||
}
|
||||
},
|
||||
},
|
||||
});
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
<script>
|
||||
import { GlButton, GlLink, GlTooltipDirective } from '@gitlab/ui';
|
||||
import { s__ } from '~/locale';
|
||||
import highlightCurrentUser from '~/behaviors/markdown/highlight_current_user';
|
||||
import TimeAgoTooltip from '~/vue_shared/components/time_ago_tooltip.vue';
|
||||
import DesignNotePin from '~/vue_shared/components/design_management/design_note_pin.vue';
|
||||
import { isLoggedIn } from '~/lib/utils/common_utils';
|
||||
|
|
@ -80,6 +81,16 @@ export default {
|
|||
return this.discussion.notes.some(({ id }) => id === this.activeDesignDiscussion.id);
|
||||
},
|
||||
},
|
||||
mounted() {
|
||||
this.$nextTick(() => {
|
||||
highlightCurrentUser(this.$el.querySelectorAll('.gfm-project_member'));
|
||||
});
|
||||
},
|
||||
updated() {
|
||||
this.$nextTick(() => {
|
||||
highlightCurrentUser(this.$el.querySelectorAll('.gfm-project_member'));
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
shouldScrollToDiscussion(activeDesignDiscussion) {
|
||||
const ALLOWED_ACTIVE_DISCUSSION_SOURCES = [
|
||||
|
|
|
|||
|
|
@ -18,23 +18,33 @@ export default {
|
|||
workItemType: {
|
||||
default: null,
|
||||
},
|
||||
epicsListPath: {
|
||||
listPath: {
|
||||
default: null,
|
||||
},
|
||||
isGroup: {
|
||||
default: false,
|
||||
},
|
||||
},
|
||||
computed: {
|
||||
isEpicsList() {
|
||||
return this.workItemType === WORK_ITEM_TYPE_ENUM_EPIC;
|
||||
},
|
||||
listName() {
|
||||
if (this.isEpicsList) {
|
||||
return __('Epics');
|
||||
}
|
||||
|
||||
return this.isGroup ? s__('WorkItem|Work items') : __('Issues');
|
||||
},
|
||||
crumbs() {
|
||||
const indexCrumb = {
|
||||
text: this.isEpicsList ? __('Epics') : s__('WorkItem|Work items'),
|
||||
text: this.listName,
|
||||
};
|
||||
|
||||
if (this.glFeatures.workItemEpicsList) {
|
||||
indexCrumb.to = { name: ROUTES.index, query: this.$route.query };
|
||||
} else {
|
||||
indexCrumb.href = this.epicsListPath;
|
||||
indexCrumb.href = this.listPath;
|
||||
}
|
||||
|
||||
const crumbs = [indexCrumb];
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import { GlLink, GlIcon, GlPopover } from '@gitlab/ui';
|
|||
import * as Sentry from '~/sentry/sentry_browser_wrapper';
|
||||
import { s__ } from '~/locale';
|
||||
import WorkItemSidebarDropdownWidget from '~/work_items/components/shared/work_item_sidebar_dropdown_widget.vue';
|
||||
import updateWorkItemMutation from '~/work_items/graphql/update_work_item.mutation.graphql';
|
||||
import updateParentMutation from '~/work_items/graphql/update_parent.mutation.graphql';
|
||||
import { isValidURL } from '~/lib/utils/url_utility';
|
||||
|
||||
import { updateParent } from '../graphql/cache_utils';
|
||||
|
|
@ -208,7 +208,7 @@ export default {
|
|||
workItemUpdate: { errors },
|
||||
},
|
||||
} = await this.$apollo.mutate({
|
||||
mutation: updateWorkItemMutation,
|
||||
mutation: updateParentMutation,
|
||||
variables: {
|
||||
input: {
|
||||
id: this.workItemId,
|
||||
|
|
|
|||
|
|
@ -0,0 +1,10 @@
|
|||
#import "./work_item_ancestors.fragment.graphql"
|
||||
|
||||
mutation workItemUpdateParent($input: WorkItemUpdateInput!) {
|
||||
workItemUpdate(input: $input) {
|
||||
workItem {
|
||||
...WorkItemAncestors
|
||||
}
|
||||
errors
|
||||
}
|
||||
}
|
||||
|
|
@ -8,6 +8,15 @@ fragment WorkItemAncestors on WorkItem {
|
|||
hasParent
|
||||
parent {
|
||||
id
|
||||
iid
|
||||
title
|
||||
confidential
|
||||
webUrl
|
||||
workItemType {
|
||||
id
|
||||
name
|
||||
iconName
|
||||
}
|
||||
}
|
||||
ancestors {
|
||||
nodes {
|
||||
|
|
|
|||
|
|
@ -62,14 +62,17 @@ export const initWorkItemsRoot = ({ workItemType, workspaceType } = {}) => {
|
|||
const router = createRouter({ fullPath, workItemType, workspaceType, defaultBranch, isGroup });
|
||||
let listPath = issuesListPath;
|
||||
|
||||
const breadcrumbParams = { workItemType: listWorkItemType, isGroup };
|
||||
|
||||
if (isGroup) {
|
||||
listPath = epicsListPath;
|
||||
injectVueAppBreadcrumbs(router, WorkItemBreadcrumb, apolloProvider, {
|
||||
workItemType: listWorkItemType,
|
||||
epicsListPath,
|
||||
});
|
||||
breadcrumbParams.listPath = epicsListPath;
|
||||
} else {
|
||||
breadcrumbParams.listPath = issuesListPath;
|
||||
}
|
||||
|
||||
injectVueAppBreadcrumbs(router, WorkItemBreadcrumb, apolloProvider, breadcrumbParams);
|
||||
|
||||
apolloProvider.clients.defaultClient.cache.writeQuery({
|
||||
query: activeDiscussionQuery,
|
||||
data: {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
<script>
|
||||
import { visitUrl } from '~/lib/utils/url_utility';
|
||||
import CreateWorkItem from '../components/create_work_item.vue';
|
||||
import { ROUTES } from '../constants';
|
||||
|
||||
export default {
|
||||
name: 'CreateWorkItemPage',
|
||||
|
|
@ -9,7 +10,11 @@ export default {
|
|||
},
|
||||
methods: {
|
||||
workItemCreated(workItem) {
|
||||
visitUrl(workItem.webUrl);
|
||||
if (this.$router) {
|
||||
this.$router.push({ name: ROUTES.workItem, params: { iid: workItem.iid } });
|
||||
} else {
|
||||
visitUrl(workItem.webUrl);
|
||||
}
|
||||
},
|
||||
handleCancelClick() {
|
||||
this.$router.go(-1);
|
||||
|
|
|
|||
|
|
@ -515,6 +515,7 @@ module ApplicationSettingsHelper
|
|||
:project_api_limit,
|
||||
:project_invited_groups_api_limit,
|
||||
:projects_api_limit,
|
||||
:create_organization_api_limit,
|
||||
:user_contributed_projects_api_limit,
|
||||
:user_projects_api_limit,
|
||||
:user_starred_projects_api_limit,
|
||||
|
|
|
|||
|
|
@ -660,6 +660,13 @@ module ProjectsHelper
|
|||
}.to_json
|
||||
end
|
||||
|
||||
def dashboard_projects_app_data
|
||||
{
|
||||
initial_sort: project_list_sort_by,
|
||||
programming_languages: programming_languages
|
||||
}.to_json
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def visibility_level_name(project)
|
||||
|
|
|
|||
|
|
@ -599,6 +599,7 @@ class ApplicationSetting < ApplicationRecord
|
|||
:max_terraform_state_size_bytes,
|
||||
:members_delete_limit,
|
||||
:notes_create_limit,
|
||||
:create_organization_api_limit,
|
||||
:package_registry_cleanup_policies_worker_capacity,
|
||||
:packages_cleanup_package_file_worker_capacity,
|
||||
:pages_extra_deployments_default_expiry_seconds,
|
||||
|
|
@ -630,6 +631,7 @@ class ApplicationSetting < ApplicationRecord
|
|||
group_shared_groups_api_limit: [:integer, { default: 60 }],
|
||||
groups_api_limit: [:integer, { default: 200 }],
|
||||
members_delete_limit: [:integer, { default: 60 }],
|
||||
create_organization_api_limit: [:integer, { default: 10 }],
|
||||
project_api_limit: [:integer, { default: 400 }],
|
||||
project_invited_groups_api_limit: [:integer, { default: 60 }],
|
||||
projects_api_limit: [:integer, { default: 2000 }],
|
||||
|
|
|
|||
|
|
@ -285,6 +285,7 @@ module ApplicationSettingImplementation
|
|||
group_projects_api_limit: 600,
|
||||
group_shared_groups_api_limit: 60,
|
||||
groups_api_limit: 200,
|
||||
create_organization_api_limit: 10,
|
||||
project_api_limit: 400,
|
||||
project_invited_groups_api_limit: 60,
|
||||
projects_api_limit: 2000,
|
||||
|
|
|
|||
|
|
@ -19,6 +19,11 @@
|
|||
"minimum": 1,
|
||||
"description": "Maximum number of simultaneous import jobs for GitHub importer"
|
||||
},
|
||||
"create_organization_api_limit": {
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"description": "Number of requests allowed to the POST /api/v4/organizations API."
|
||||
},
|
||||
"group_api_limit": {
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
|
|
|
|||
|
|
@ -0,0 +1,20 @@
|
|||
= render ::Layouts::SettingsBlockComponent.new(_('Organizations API rate limits'),
|
||||
id: 'js-organizations-api-limits-settings',
|
||||
testid: 'organizations-api-limits-settings',
|
||||
expanded: expanded_by_default?) do |c|
|
||||
- c.with_description do
|
||||
= _('Set the per-user rate limits for the requests to Organizations API.')
|
||||
= link_to _('Learn more.'), help_page_path('administration/settings/rate_limit_on_organizations_api'), target: '_blank', rel: 'noopener noreferrer'
|
||||
- c.with_body do
|
||||
= gitlab_ui_form_for @application_setting, url: network_admin_application_settings_path(anchor: 'js-organizations-api-limits-settings'), html: { class: 'fieldset-form' } do |f|
|
||||
= form_errors(@application_setting)
|
||||
|
||||
%fieldset
|
||||
= _("Set to 0 to disable the limits.")
|
||||
|
||||
%fieldset
|
||||
.form-group
|
||||
= f.label :create_organization_api_limit, format(_('Maximum requests to the %{api_name} API per %{timeframe} per user'), api_name: 'POST /organizations', timeframe: 'minute'), class: 'label-bold'
|
||||
= f.number_field :create_organization_api_limit, min: 0, class: 'form-control gl-form-input'
|
||||
|
||||
= f.submit _('Save changes'), pajamas_button: true
|
||||
|
|
@ -133,6 +133,8 @@
|
|||
|
||||
= render 'projects_api_limits'
|
||||
|
||||
= render 'organizations_api_limits'
|
||||
|
||||
= render 'members_api_limits'
|
||||
|
||||
= render ::Layouts::SettingsBlockComponent.new(_('Import and export rate limits'),
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
= render "projects/last_push"
|
||||
|
||||
- if Feature.enabled?(:your_work_projects_vue, current_user)
|
||||
#js-your-work-projects-app
|
||||
#js-your-work-projects-app{ data: { app_data: dashboard_projects_app_data } }
|
||||
- else
|
||||
- if show_projects?(@projects, params)
|
||||
= render 'dashboard/projects_head'
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
- if @work_item.present?
|
||||
= render 'shared/work_item_metadata', work_item: @work_item
|
||||
- add_work_item_show_breadcrumb(@project, @work_item.iid)
|
||||
- add_page_specific_style 'page_bundles/issues_show'
|
||||
- add_work_items_stylesheet
|
||||
- add_page_specific_style 'page_bundles/design_management'
|
||||
|
|
|
|||
|
|
@ -0,0 +1,3 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
ai_logging.check_ai_logging
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require_relative '../../tooling/danger/ai_logging'
|
||||
|
||||
module Danger
|
||||
class AiLogging < ::Danger::Plugin
|
||||
# Include the helper code
|
||||
include Tooling::Danger::AiLogging
|
||||
end
|
||||
end
|
||||
|
|
@ -0,0 +1,36 @@
|
|||
---
|
||||
stage: Data Stores
|
||||
group: Tenant Scale
|
||||
info: To determine the technical writer assigned to the Stage/Group associated with this page, see https://handbook.gitlab.com/handbook/product/ux/technical-writing/#assignments
|
||||
---
|
||||
|
||||
# Rate limit on Organizations API
|
||||
|
||||
DETAILS:
|
||||
**Tier:** Free, Premium, Ultimate
|
||||
**Offering:** GitLab.com, Self-managed
|
||||
**Status:** Experiment
|
||||
|
||||
> - [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/470613) in GitLab 17.5 with a [flag](../feature_flags.md) named `allow_organization_creation`. Disabled by default. This feature is an [experiment](../../policy/experiment-beta-support.md).
|
||||
|
||||
FLAG:
|
||||
The availability of this feature is controlled by a feature flag.
|
||||
For more information, see the history.
|
||||
|
||||
Requests over the rate limit are logged into the `auth.log` file.
|
||||
|
||||
For example, if you set a limit of 400 for `POST /organizations`, requests to the API endpoint that
|
||||
exceed a rate of 400 within one minute are blocked. Access to the endpoint is restored after one minute.
|
||||
|
||||
You can configure the per minute rate limit per user for requests to the [POST /organizations API](../../api/organizations.md#create-organization). The default is 10.
|
||||
|
||||
## Change the rate limit
|
||||
|
||||
To change the rate limit:
|
||||
|
||||
1. On the left sidebar, at the bottom, select **Admin**.
|
||||
1. Select **Settings > Network**.
|
||||
1. Expand **Organizations API rate limits**.
|
||||
1. Change the value of any rate limit. The rate limits are per minute per user.
|
||||
To disable a rate limit, set the value to `0`.
|
||||
1. Select **Save changes**.
|
||||
|
|
@ -34,7 +34,7 @@ GET /projects/:id/access_requests
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | -------------- | -------- | ----------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) |
|
||||
|
||||
Example request:
|
||||
|
||||
|
|
@ -110,7 +110,7 @@ PUT /projects/:id/access_requests/:user_id/approve
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| -------------- | -------------- | -------- | ----------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) |
|
||||
| `user_id` | integer | yes | The user ID of the access requester |
|
||||
| `access_level` | integer | no | A valid access level (defaults: `30`, the Developer role) |
|
||||
|
||||
|
|
@ -145,7 +145,7 @@ DELETE /projects/:id/access_requests/:user_id
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | -------------- | -------- | ----------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) |
|
||||
| `user_id` | integer | yes | The user ID of the access requester |
|
||||
|
||||
Example request:
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ POST /projects/:id/alert_management_alerts/:alert_iid/metric_images
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
|-------------|---------|----------|--------------------------------------|
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `alert_iid` | integer | yes | The internal ID of a project's alert. |
|
||||
|
||||
```shell
|
||||
|
|
@ -50,7 +50,7 @@ GET /projects/:id/alert_management_alerts/:alert_iid/metric_images
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
|-------------|---------|----------|--------------------------------------|
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `alert_iid` | integer | yes | The internal ID of a project's alert. |
|
||||
|
||||
```shell
|
||||
|
|
@ -88,7 +88,7 @@ PUT /projects/:id/alert_management_alerts/:alert_iid/metric_images/:image_id
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
|-------------|---------|----------|--------------------------------------|
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `alert_iid` | integer | yes | The internal ID of a project's alert. |
|
||||
| `image_id` | integer | yes | The ID of the image. |
|
||||
| `url` | string | no | The URL to view more metrics information. |
|
||||
|
|
@ -119,7 +119,7 @@ DELETE /projects/:id/alert_management_alerts/:alert_iid/metric_images/:image_id
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
|-------------|---------|----------|--------------------------------------|
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `alert_iid` | integer | yes | The internal ID of a project's alert. |
|
||||
| `image_id` | integer | yes | The ID of the image. |
|
||||
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ GET /projects/:id/boards
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
|
||||
```shell
|
||||
curl --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/projects/5/boards"
|
||||
|
|
@ -109,7 +109,7 @@ GET /projects/:id/boards/:board_id
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `board_id` | integer | yes | The ID of a board. |
|
||||
|
||||
```shell
|
||||
|
|
@ -186,7 +186,7 @@ POST /projects/:id/boards
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `name` | string | yes | The name of the new board. |
|
||||
|
||||
```shell
|
||||
|
|
@ -227,7 +227,7 @@ PUT /projects/:id/boards/:board_id
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| ---------------------------- | -------------- | -------- | ----------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `board_id` | integer | yes | The ID of a board. |
|
||||
| `name` | string | no | The new name of the board. |
|
||||
| `assignee_id` | integer | no | The assignee the board should be scoped to. Premium and Ultimate only. |
|
||||
|
|
@ -307,7 +307,7 @@ DELETE /projects/:id/boards/:board_id
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `board_id` | integer | yes | The ID of a board. |
|
||||
|
||||
```shell
|
||||
|
|
@ -325,7 +325,7 @@ GET /projects/:id/boards/:board_id/lists
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `board_id` | integer | yes | The ID of a board. |
|
||||
|
||||
```shell
|
||||
|
|
@ -385,7 +385,7 @@ GET /projects/:id/boards/:board_id/lists/:list_id
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `board_id` | integer | yes | The ID of a board. |
|
||||
| `list_id`| integer | yes | The ID of a board's list. |
|
||||
|
||||
|
|
@ -420,7 +420,7 @@ POST /projects/:id/boards/:board_id/lists
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `board_id` | integer | yes | The ID of a board. |
|
||||
| `label_id` | integer | no | The ID of a label. |
|
||||
| `assignee_id` | integer | no | The ID of a user. Premium and Ultimate only. |
|
||||
|
|
@ -463,7 +463,7 @@ PUT /projects/:id/boards/:board_id/lists/:list_id
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `board_id` | integer | yes | The ID of a board. |
|
||||
| `list_id` | integer | yes | The ID of a board's list. |
|
||||
| `position` | integer | yes | The position of the list. |
|
||||
|
|
@ -499,7 +499,7 @@ DELETE /projects/:id/boards/:board_id/lists/:list_id
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `board_id` | integer | yes | The ID of a board. |
|
||||
| `list_id` | integer | yes | The ID of a board's list. |
|
||||
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ Parameters:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
|:----------|:---------------|:---------|:------------|
|
||||
| `id` | integer or string | yes | ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user.|
|
||||
| `id` | integer or string | yes | ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding).|
|
||||
| `search` | string | no | Return list of branches containing the search string. Use `^term` to find branches that begin with `term`, and `term$` to find branches that end with `term`. |
|
||||
| `regex` | string | no | Return list of branches with names matching a [re2](https://github.com/google/re2/wiki/Syntax) regular expression. |
|
||||
|
||||
|
|
@ -92,7 +92,7 @@ Parameters:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
|-----------|-------------------|----------|-------------|
|
||||
| `id` | integer or string | yes | ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer or string | yes | ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `branch` | string | yes | [URL-encoded name](rest/index.md#namespaced-path-encoding) of the branch. |
|
||||
|
||||
Example request:
|
||||
|
|
@ -157,7 +157,7 @@ Parameters:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
|-----------|---------|----------|-------------|
|
||||
| `id` | integer | yes | ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer | yes | ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `branch` | string | yes | Name of the branch. |
|
||||
| `ref` | string | yes | Branch name or commit SHA to create branch from. |
|
||||
|
||||
|
|
@ -216,7 +216,7 @@ Parameters:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
|-----------|----------------|----------|-------------|
|
||||
| `id` | integer/string | yes | ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer/string | yes | ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `branch` | string | yes | Name of the branch. |
|
||||
|
||||
Example request:
|
||||
|
|
@ -241,7 +241,7 @@ Parameters:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
|:----------|:---------------|:---------|:-------------------------------------------------------------------------------------------------------------|
|
||||
| `id` | integer/string | yes | ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer/string | yes | ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
|
||||
Example request:
|
||||
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ GET /projects/:id/repository/commits
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) |
|
||||
| `ref_name` | string | no | The name of a repository branch, tag or revision range, or if not given the default branch |
|
||||
| `since` | string | no | Only commits after or on this date are returned in ISO 8601 format `YYYY-MM-DDTHH:MM:SSZ` |
|
||||
| `until` | string | no | Only commits before or on this date are returned in ISO 8601 format `YYYY-MM-DDTHH:MM:SSZ` |
|
||||
|
|
@ -235,7 +235,7 @@ Parameters:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) |
|
||||
| `sha` | string | yes | The commit hash or name of a repository branch or tag |
|
||||
| `stats` | boolean | no | Include commit stats. Default is true |
|
||||
|
||||
|
|
@ -291,7 +291,7 @@ Parameters:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) |
|
||||
| `sha` | string | yes | The commit hash |
|
||||
| `type` | string | no | The scope of commits. Possible values `branch`, `tag`, `all`. Default is `all`. |
|
||||
|
||||
|
|
@ -328,7 +328,7 @@ Parameters:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| -------------- | -------------- | -------- | ----------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `sha` | string | yes | The commit hash. |
|
||||
| `first_parent` | boolean | no | Follow only the first parent commit upon seeing a merge commit. |
|
||||
|
||||
|
|
@ -359,7 +359,7 @@ Parameters:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) |
|
||||
| `sha` | string | yes | The commit hash |
|
||||
| `branch` | string | yes | The name of the branch |
|
||||
| `dry_run` | boolean | no | Does not commit any changes. Default is false. |
|
||||
|
|
@ -504,7 +504,7 @@ Parameters:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) |
|
||||
| `sha` | string | yes | The commit hash or name of a repository branch or tag |
|
||||
| `unidiff` | boolean | no | Present diffs in the [unified diff](https://www.gnu.org/software/diffutils/manual/html_node/Detailed-Unified.html) format. Default is false. [Introduced](https://gitlab.com/gitlab-org/gitlab/-/merge_requests/130610) in GitLab 16.5. |
|
||||
|
||||
|
|
@ -542,7 +542,7 @@ Parameters:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) |
|
||||
| `sha` | string | yes | The commit hash or name of a repository branch or tag |
|
||||
|
||||
```shell
|
||||
|
|
@ -596,7 +596,7 @@ POST /projects/:id/repository/commits/:sha/comments
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) |
|
||||
| `sha` | string | yes | The commit SHA or name of a repository branch or tag |
|
||||
| `note` | string | yes | The text of the comment |
|
||||
| `path` | string | no | The file path relative to the repository |
|
||||
|
|
@ -645,7 +645,7 @@ Parameters:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) |
|
||||
| `sha` | string | yes | The commit hash or name of a repository branch or tag |
|
||||
|
||||
```shell
|
||||
|
|
@ -705,7 +705,7 @@ GET /projects/:id/repository/commits/:sha/statuses
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) |
|
||||
| `sha` | string | yes | The commit SHA |
|
||||
| `ref` | string | no | The name of a repository branch or tag or, if not given, the default branch |
|
||||
| `stage` | string | no | Filter by [build stage](../ci/yaml/index.md#stages), for example, `test` |
|
||||
|
|
@ -781,7 +781,7 @@ POST /projects/:id/statuses/:sha
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) |
|
||||
| `sha` | string | yes | The commit SHA |
|
||||
| `state` | string | yes | The state of the status. Can be one of the following: `pending`, `running`, `success`, `failed`, `canceled` |
|
||||
| `ref` | string | no | The `ref` (branch or tag) to which the status refers |
|
||||
|
|
@ -834,7 +834,7 @@ GET /projects/:id/repository/commits/:sha/merge_requests
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) |
|
||||
| `sha` | string | yes | The commit SHA |
|
||||
|
||||
```shell
|
||||
|
|
@ -907,7 +907,7 @@ Parameters:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) |
|
||||
| `sha` | string | yes | The commit hash or name of a repository branch or tag |
|
||||
|
||||
```shell
|
||||
|
|
|
|||
|
|
@ -215,7 +215,7 @@ DELETE /projects/:id/registry/repositories/:repository_id
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
|-----------------|----------------|----------|-------------|
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `repository_id` | integer | yes | The ID of registry repository. |
|
||||
|
||||
```shell
|
||||
|
|
@ -306,7 +306,7 @@ DELETE /projects/:id/registry/repositories/:repository_id/tags/:tag_name
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
|-----------------|----------------|----------|-------------|
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `repository_id` | integer | yes | The ID of registry repository. |
|
||||
| `tag_name` | string | yes | The name of tag. |
|
||||
|
||||
|
|
@ -331,7 +331,7 @@ DELETE /projects/:id/registry/repositories/:repository_id/tags
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
|---------------------|----------------|----------|-------------|
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `repository_id` | integer | yes | The ID of registry repository. |
|
||||
| `name_regex` | string | no | The [re2](https://github.com/google/re2/wiki/Syntax) regex of the name to delete. To delete all tags specify `.*`. **Note:** `name_regex` is deprecated in favor of `name_regex_delete`. This field is validated. |
|
||||
| `name_regex_delete` | string | yes | The [re2](https://github.com/google/re2/wiki/Syntax) regex of the name to delete. To delete all tags specify `.*`. This field is validated. |
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ DELETE /groups/:id/dependency_proxy/cache
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) |
|
||||
|
||||
Example request:
|
||||
|
||||
|
|
|
|||
|
|
@ -110,7 +110,7 @@ GET /projects/:id/deploy_keys
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) |
|
||||
|
||||
```shell
|
||||
curl --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/projects/5/deploy_keys"
|
||||
|
|
@ -214,7 +214,7 @@ Parameters:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) |
|
||||
| `key_id` | integer | yes | The ID of the deploy key |
|
||||
|
||||
```shell
|
||||
|
|
@ -249,7 +249,7 @@ POST /projects/:id/deploy_keys
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| ----------- | ---- | -------- | ----------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) |
|
||||
| `key` | string | yes | New deploy key |
|
||||
| `title` | string | yes | New deploy key's title |
|
||||
| `can_push` | boolean | no | Can deploy key push to the project's repository |
|
||||
|
|
@ -284,7 +284,7 @@ PUT /projects/:id/deploy_keys/:key_id
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) |
|
||||
| `can_push` | boolean | no | Can deploy key push to the project's repository |
|
||||
| `title` | string | no | New deploy key's title |
|
||||
|
||||
|
|
@ -316,7 +316,7 @@ DELETE /projects/:id/deploy_keys/:key_id
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) |
|
||||
| `key_id` | integer | yes | The ID of the deploy key |
|
||||
|
||||
```shell
|
||||
|
|
@ -333,7 +333,7 @@ POST /projects/:id/deploy_keys/:key_id/enable
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) |
|
||||
| `key_id` | integer | yes | The ID of the deploy key |
|
||||
|
||||
```shell
|
||||
|
|
|
|||
|
|
@ -110,7 +110,7 @@ Parameters:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| ---------- | -------------- | ---------------------- | ----------- |
|
||||
| `id` | integer/string | Yes | ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer/string | Yes | ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) |
|
||||
| `token_id` | integer | Yes | ID of the deploy token |
|
||||
|
||||
Example request:
|
||||
|
|
@ -148,7 +148,7 @@ Parameters:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| ------------ | ---------------- | ---------------------- | ----------- |
|
||||
| `id` | integer/string | Yes | ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer/string | Yes | ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) |
|
||||
| `name` | string | Yes | New deploy token's name |
|
||||
| `scopes` | array of strings | Yes | Indicates the deploy token scopes. Must be at least one of `read_repository`, `read_registry`, `write_registry`, `read_package_registry`, or `write_package_registry`. |
|
||||
| `expires_at` | datetime | No | Expiration date for the deploy token. Does not expire if no value is provided. Expected in ISO 8601 format (`2019-03-15T08:00:00Z`) |
|
||||
|
|
@ -191,7 +191,7 @@ Parameters:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| ---------- | -------------- | ---------------------- | ----------- |
|
||||
| `id` | integer/string | Yes | ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer/string | Yes | ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) |
|
||||
| `token_id` | integer | Yes | ID of the deploy token |
|
||||
|
||||
Example request:
|
||||
|
|
@ -258,7 +258,7 @@ Parameters:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| ----------- | -------------- | ---------------------- | ----------- |
|
||||
| `id` | integer/string | Yes | ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer/string | Yes | ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) |
|
||||
| `token_id` | integer | Yes | ID of the deploy token |
|
||||
|
||||
Example request:
|
||||
|
|
@ -296,7 +296,7 @@ Parameters:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| ------------ | ---- | --------- | ----------- |
|
||||
| `id` | integer/string | Yes | ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer/string | Yes | ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) |
|
||||
| `name` | string | Yes | New deploy token's name |
|
||||
| `scopes` | array of strings | Yes | Indicates the deploy token scopes. Must be at least one of `read_repository`, `read_registry`, `write_registry`, `read_package_registry`, or `write_package_registry`. |
|
||||
| `expires_at` | datetime | No | Expiration date for the deploy token. Does not expire if no value is provided. Expected in ISO 8601 format (`2019-03-15T08:00:00Z`) |
|
||||
|
|
@ -339,7 +339,7 @@ Parameters:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| ----------- | -------------- | ---------------------- | ----------- |
|
||||
| `id` | integer/string | Yes | ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer/string | Yes | ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) |
|
||||
| `token_id` | integer | Yes | ID of the deploy token |
|
||||
|
||||
Example request:
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ GET /projects/:id/deployments
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
|-------------------|----------------|----------|-----------------------------------------------------------------------------------------------------------------|
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `order_by` | string | no | Return deployments ordered by either one of `id`, `iid`, `created_at`, `updated_at`, `finished_at` or `ref` fields. Default is `id`. |
|
||||
| `sort` | string | no | Return deployments sorted in `asc` or `desc` order. Default is `asc`. |
|
||||
| `updated_after` | datetime | no | Return deployments updated after the specified date. Expected in ISO 8601 format (`2019-03-15T08:00:00Z`). |
|
||||
|
|
@ -200,7 +200,7 @@ GET /projects/:id/deployments/:deployment_id
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
|-----------|---------|----------|---------------------|
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) |
|
||||
| `deployment_id` | integer | yes | The ID of the deployment |
|
||||
|
||||
```shell
|
||||
|
|
@ -334,7 +334,7 @@ POST /projects/:id/deployments
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
|---------------|----------------|----------|-----------------------------------------------------------------------------------------------------------------|
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user.|
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding).|
|
||||
| `environment` | string | yes | The [name of the environment](../ci/environments/index.md) to create the deployment for. |
|
||||
| `sha` | string | yes | The SHA of the commit that is deployed. |
|
||||
| `ref` | string | yes | The name of the branch or tag that is deployed. |
|
||||
|
|
@ -392,7 +392,7 @@ PUT /projects/:id/deployments/:deployment_id
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
|------------------|----------------|----------|---------------------|
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `deployment_id` | integer | yes | The ID of the deployment to update. |
|
||||
| `status` | string | yes | The new status of the deployment. One of `running`, `success`, `failed`, or `canceled`. |
|
||||
|
||||
|
|
@ -462,7 +462,7 @@ DELETE /projects/:id/deployments/:deployment_id
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
|-----------|---------|----------|---------------------|
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) |
|
||||
| `deployment_id` | integer | yes | The ID of the deployment |
|
||||
|
||||
```shell
|
||||
|
|
@ -523,7 +523,7 @@ POST /projects/:id/deployments/:deployment_id/approval
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
|-----------------|----------------|----------|-----------------------------------------------------------------------------------------------------------------|
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `deployment_id` | integer | yes | The ID of the deployment. |
|
||||
| `status` | string | yes | The status of the approval (either `approved` or `rejected`). |
|
||||
| `comment` | string | no | A comment to go with the approval |
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ GET /groups/:id/epics/:epic_iid/issues
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| ------------------- | ---------------- | ---------- | ---------------------------------------------------------------------------------------|
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) |
|
||||
| `epic_iid` | integer/string | yes | The internal ID of the epic. |
|
||||
|
||||
```shell
|
||||
|
|
@ -128,7 +128,7 @@ POST /groups/:id/epics/:epic_iid/issues/:issue_id
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| ------------------- | ---------------- | ---------- | ---------------------------------------------------------------------------------------|
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) |
|
||||
| `epic_iid` | integer/string | yes | The internal ID of the epic. |
|
||||
| `issue_id` | integer/string | yes | The ID of the issue. |
|
||||
|
||||
|
|
@ -234,7 +234,7 @@ DELETE /groups/:id/epics/:epic_iid/issues/:epic_issue_id
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| ------------------- | ---------------- | ---------- | -----------------------------------------------------------------------------------------------------|
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) |
|
||||
| `epic_iid` | integer/string | yes | The internal ID of the epic. |
|
||||
| `epic_issue_id` | integer/string | yes | The ID of the issue - epic association. |
|
||||
|
||||
|
|
@ -340,7 +340,7 @@ PUT /groups/:id/epics/:epic_iid/issues/:epic_issue_id
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| ------------------- | ---------------- | ---------- | -----------------------------------------------------------------------------------------------------|
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) |
|
||||
| `epic_iid` | integer/string | yes | The internal ID of the epic. |
|
||||
| `epic_issue_id` | integer/string | yes | The ID of the issue - epic association. |
|
||||
| `move_before_id` | integer/string | no | The ID of the issue - epic association that should be placed before the link in the question. |
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ GET /groups/:id/epics/:epic_iid/epics
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| ---------- | -------------- | -------- | ------------------------------------------------------------------------------------------------------------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) |
|
||||
| `epic_iid` | integer | yes | The internal ID of the epic. |
|
||||
|
||||
```shell
|
||||
|
|
@ -84,7 +84,7 @@ POST /groups/:id/epics/:epic_iid/epics/:child_epic_id
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------------- | -------------- | -------- | ------------------------------------------------------------------------------------------------------------------ |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) |
|
||||
| `epic_iid` | integer | yes | The internal ID of the epic. |
|
||||
| `child_epic_id` | integer | yes | The global ID of the child epic. Internal ID can't be used because they can conflict with epics from other groups. |
|
||||
|
||||
|
|
@ -137,7 +137,7 @@ POST /groups/:id/epics/:epic_iid/epics
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------------- | -------------- | -------- | ------------------------------------------------------------------------------------------------------------------ |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) |
|
||||
| `epic_iid` | integer | yes | The internal ID of the (future parent) epic. |
|
||||
| `title` | string | yes | The title of a newly created epic. |
|
||||
| `confidential` | boolean | no | Whether the epic should be confidential. Parameter is ignored if `confidential_epics` feature flag is disabled. Defaults to the confidentiality state of the parent epic. |
|
||||
|
|
@ -171,7 +171,7 @@ PUT /groups/:id/epics/:epic_iid/epics/:child_epic_id
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| ---------------- | -------------- | -------- | ------------------------------------------------------------------------------------------------------------------ |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding). |
|
||||
| `epic_iid` | integer | yes | The internal ID of the epic. |
|
||||
| `child_epic_id` | integer | yes | The global ID of the child epic. Internal ID can't be used because they can conflict with epics from other groups. |
|
||||
| `move_before_id` | integer | no | The global ID of a sibling epic that should be placed before the child epic. |
|
||||
|
|
@ -228,7 +228,7 @@ DELETE /groups/:id/epics/:epic_iid/epics/:child_epic_id
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------------- | -------------- | -------- | ------------------------------------------------------------------------------------------------------------------ |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding). |
|
||||
| `epic_iid` | integer | yes | The internal ID of the epic. |
|
||||
| `child_epic_id` | integer | yes | The global ID of the child epic. Internal ID can't be used because they can conflict with epics from other groups. |
|
||||
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@ GET /groups/:id/epics?state=opened
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| ------------------- | ---------------- | ---------- | --------------------------------------------------------------------------------------------------------------------------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) |
|
||||
| `author_id` | integer | no | Return epics created by the given user `id` |
|
||||
| `author_username` | string | no | Return epics created by the user with the given `username`. |
|
||||
| `labels` | string | no | Return epics matching a comma-separated list of labels names. Label names from the epic group or a parent group can be used |
|
||||
|
|
@ -205,7 +205,7 @@ GET /groups/:id/epics/:epic_iid
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| ------------------- | ---------------- | ---------- | ---------------------------------------------------------------------------------------|
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) |
|
||||
| `epic_iid` | integer/string | yes | The internal ID of the epic. |
|
||||
|
||||
```shell
|
||||
|
|
@ -284,7 +284,7 @@ POST /groups/:id/epics
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| ------------------- | ---------------- | ---------- | ---------------------------------------------------------------------------------------|
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) |
|
||||
| `title` | string | yes | The title of the epic |
|
||||
| `labels` | string | no | The comma-separated list of labels |
|
||||
| `description` | string | no | The description of the epic. Limited to 1,048,576 characters. |
|
||||
|
|
@ -368,7 +368,7 @@ PUT /groups/:id/epics/:epic_iid
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| ------------------- | ---------------- | ---------- | ---------------------------------------------------------------------------------------|
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) |
|
||||
| `epic_iid` | integer/string | yes | The internal ID of the epic |
|
||||
| `add_labels` | string | no | Comma-separated label names to add to an issue. |
|
||||
| `confidential` | boolean | no | Whether the epic should be confidential |
|
||||
|
|
@ -452,7 +452,7 @@ DELETE /groups/:id/epics/:epic_iid
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| ------------------- | ---------------- | ---------- | ---------------------------------------------------------------------------------------|
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) |
|
||||
| `epic_iid` | integer/string | yes | The internal ID of the epic. |
|
||||
|
||||
```shell
|
||||
|
|
@ -471,7 +471,7 @@ POST /groups/:id/epics/:epic_iid/todo
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
|-------------|---------|----------|--------------------------------------|
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) |
|
||||
| `epic_iid` | integer | yes | The internal ID of a group's epic |
|
||||
|
||||
```shell
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ GET /projects/:id/error_tracking/settings
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | ------- | -------- | --------------------- |
|
||||
| `id` | integer | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) |
|
||||
|
||||
```shell
|
||||
curl --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/projects/1/error_tracking/settings"
|
||||
|
|
@ -59,7 +59,7 @@ Supported attributes:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| ------------ | ------- |----------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||
| `id` | integer | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `active` | boolean | yes | Pass `true` to enable the error tracking setting configuration or `false` to disable it. |
|
||||
| `integrated` | boolean | yes | Pass `true` to enable the integrated error tracking backend. |
|
||||
|
||||
|
|
@ -92,7 +92,7 @@ PATCH /projects/:id/error_tracking/settings
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| ------------ | ------- | -------- | --------------------- |
|
||||
| `id` | integer | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `active` | boolean | yes | Pass `true` to enable the already configured error tracking settings or `false` to disable it. |
|
||||
| `integrated` | boolean | no | Pass `true` to enable the integrated error tracking backend. |
|
||||
|
||||
|
|
@ -125,7 +125,7 @@ GET /projects/:id/error_tracking/client_keys
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
|
||||
```shell
|
||||
curl --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/projects/5/error_tracking/client_keys"
|
||||
|
|
@ -160,7 +160,7 @@ POST /projects/:id/error_tracking/client_keys
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
|
||||
```shell
|
||||
curl --request POST --header "PRIVATE-TOKEN: <your_access_token>" --header "Content-Type: application/json" \
|
||||
|
|
@ -188,7 +188,7 @@ DELETE /projects/:id/error_tracking/client_keys/:key_id
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `key_id` | integer | yes | The ID of the client key. |
|
||||
|
||||
```shell
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ GET /groups/:id/badges
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) |
|
||||
| `name` | string | no | Name of the badges to return (case-sensitive). |
|
||||
|
||||
```shell
|
||||
|
|
@ -76,7 +76,7 @@ GET /groups/:id/badges/:badge_id
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) |
|
||||
| `badge_id` | integer | yes | The badge ID |
|
||||
|
||||
```shell
|
||||
|
|
@ -107,7 +107,7 @@ POST /groups/:id/badges
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) |
|
||||
| `link_url` | string | yes | URL of the badge link |
|
||||
| `image_url` | string | yes | URL of the badge image |
|
||||
| `name` | string | no | Name of the badge |
|
||||
|
|
@ -142,7 +142,7 @@ PUT /groups/:id/badges/:badge_id
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) |
|
||||
| `badge_id` | integer | yes | The badge ID |
|
||||
| `link_url` | string | no | URL of the badge link |
|
||||
| `image_url` | string | no | URL of the badge image |
|
||||
|
|
@ -177,7 +177,7 @@ DELETE /groups/:id/badges/:badge_id
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) |
|
||||
| `badge_id` | integer | yes | The badge ID |
|
||||
|
||||
```shell
|
||||
|
|
@ -194,7 +194,7 @@ GET /groups/:id/badges/render
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) |
|
||||
| `link_url` | string | yes | URL of the badge link|
|
||||
| `image_url` | string | yes | URL of the badge image |
|
||||
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ GET /groups/:id/boards
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding). |
|
||||
|
||||
```shell
|
||||
curl --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/groups/5/boards"
|
||||
|
|
@ -142,7 +142,7 @@ GET /groups/:id/boards/:board_id
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding). |
|
||||
| `board_id` | integer | yes | The ID of a board. |
|
||||
|
||||
```shell
|
||||
|
|
@ -260,7 +260,7 @@ POST /groups/:id/boards
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding). |
|
||||
| `name` | string | yes | The name of the new board. |
|
||||
|
||||
```shell
|
||||
|
|
@ -297,7 +297,7 @@ PUT /groups/:id/boards/:board_id
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| ---------------------------- | -------------- | -------- | ----------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding). |
|
||||
| `board_id` | integer | yes | The ID of a board. |
|
||||
| `name` | string | no | The new name of the board. |
|
||||
| `hide_backlog_list` | boolean | no | Hide the Open list. |
|
||||
|
|
@ -369,7 +369,7 @@ DELETE /groups/:id/boards/:board_id
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding). |
|
||||
| `board_id` | integer | yes | The ID of a board. |
|
||||
|
||||
```shell
|
||||
|
|
@ -387,7 +387,7 @@ GET /groups/:id/boards/:board_id/lists
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding). |
|
||||
| `board_id` | integer | yes | The ID of a board. |
|
||||
|
||||
```shell
|
||||
|
|
@ -438,7 +438,7 @@ GET /groups/:id/boards/:board_id/lists/:list_id
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding). |
|
||||
| `board_id` | integer | yes | The ID of a board. |
|
||||
| `list_id` | integer | yes | The ID of a board's list. |
|
||||
|
||||
|
|
@ -470,7 +470,7 @@ POST /groups/:id/boards/:board_id/lists
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding). |
|
||||
| `board_id` | integer | yes | The ID of a board. |
|
||||
| `label_id` | integer | yes | The ID of a label. |
|
||||
|
||||
|
|
@ -511,7 +511,7 @@ PUT /groups/:id/boards/:board_id/lists/:list_id
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding). |
|
||||
| `board_id` | integer | yes | The ID of a board. |
|
||||
| `list_id` | integer | yes | The ID of a board's list. |
|
||||
| `position` | integer | yes | The position of the list. |
|
||||
|
|
@ -544,7 +544,7 @@ DELETE /groups/:id/boards/:board_id/lists/:list_id
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding). |
|
||||
| `board_id` | integer | yes | The ID of a board. |
|
||||
| `list_id` | integer | yes | The ID of a board's list. |
|
||||
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ POST /groups/:id/export
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | -------------- | -------- | ---------------------------------------- |
|
||||
| `id` | integer/string | yes | ID of the group owned by the authenticated user |
|
||||
| `id` | integer/string | yes | ID of the group |
|
||||
|
||||
```shell
|
||||
curl --request POST --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/groups/1/export"
|
||||
|
|
@ -70,7 +70,7 @@ GET /groups/:id/export/download
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | -------------- | -------- | ---------------------------------------- |
|
||||
| `id` | integer/string | yes | ID of the group owned by the authenticated user |
|
||||
| `id` | integer/string | yes | ID of the group |
|
||||
|
||||
```shell
|
||||
group=1
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ GET /groups/:id/labels
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding). |
|
||||
| `with_counts` | boolean | no | Whether or not to include issue and merge request counts. Defaults to `false`. |
|
||||
| `include_ancestor_groups` | boolean | no | Include ancestor groups. Defaults to `true`. |
|
||||
| `include_descendant_groups` | boolean | no | Include descendant groups. Defaults to `false`. |
|
||||
|
|
@ -76,7 +76,7 @@ GET /groups/:id/labels/:label_id
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding). |
|
||||
| `label_id` | integer or string | yes | The ID or title of a group's label. |
|
||||
| `include_ancestor_groups` | boolean | no | Include ancestor groups. Defaults to `true`. |
|
||||
| `include_descendant_groups` | boolean | no | Include descendant groups. Defaults to `false`. |
|
||||
|
|
@ -113,7 +113,7 @@ POST /groups/:id/labels
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| ------------- | ------- | -------- | ---------------------------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) |
|
||||
| `name` | string | yes | The name of the label |
|
||||
| `color` | string | yes | The color of the label given in 6-digit hex notation with leading '#' sign (for example, #FFAABB) or one of the [CSS color names](https://developer.mozilla.org/en-US/docs/Web/CSS/color_value#Color_keywords) |
|
||||
| `description` | string | no | The description of the label, |
|
||||
|
|
@ -151,7 +151,7 @@ PUT /groups/:id/labels/:label_id
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| ------------- | ------- | -------- | ---------------------------- |
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) |
|
||||
| `label_id` | integer or string | yes | The ID or title of a group's label. |
|
||||
| `new_name` | string | no | The new name of the label |
|
||||
| `color` | string | no | The color of the label given in 6-digit hex notation with leading '#' sign (for example, #FFAABB) or one of the [CSS color names](https://developer.mozilla.org/en-US/docs/Web/CSS/color_value#Color_keywords) |
|
||||
|
|
@ -192,7 +192,7 @@ DELETE /groups/:id/labels/:label_id
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | ------- | -------- | --------------------- |
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) |
|
||||
| `label_id` | integer or string | yes | The ID or title of a group's label. |
|
||||
|
||||
```shell
|
||||
|
|
@ -213,7 +213,7 @@ POST /groups/:id/labels/:label_id/subscribe
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| ---------- | ----------------- | -------- | ------------------------------------ |
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) |
|
||||
| `label_id` | integer or string | yes | The ID or title of a group's label. |
|
||||
|
||||
```shell
|
||||
|
|
@ -249,7 +249,7 @@ POST /groups/:id/labels/:label_id/unsubscribe
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| ---------- | ----------------- | -------- | ------------------------------------ |
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) |
|
||||
| `label_id` | integer or string | yes | The ID or title of a group's label. |
|
||||
|
||||
```shell
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ Parameters:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | ------ | -------- | ----------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding). |
|
||||
| `iids[]` | integer array | no | Return only the milestones having the given `iid`. Ignored if `include_ancestors` is `true`. |
|
||||
| `state` | string | no | Return only `active` or `closed` milestones. |
|
||||
| `title` | string | no | Return only the milestones having the given `title` (case-sensitive). |
|
||||
|
|
@ -89,7 +89,7 @@ Parameters:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | ------ | -------- | ----------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) |
|
||||
| `milestone_id` | integer | yes | The ID of the group milestone |
|
||||
|
||||
## Create new milestone
|
||||
|
|
@ -104,7 +104,7 @@ Parameters:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | ------ | -------- | ----------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) |
|
||||
| `title` | string | yes | The title of a milestone |
|
||||
| `description` | string | no | The description of the milestone |
|
||||
| `due_date` | date | no | The due date of the milestone, in ISO 8601 format (`YYYY-MM-DD`) |
|
||||
|
|
@ -122,7 +122,7 @@ Parameters:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | ------ | -------- | ----------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) |
|
||||
| `milestone_id` | integer | yes | The ID of a group milestone |
|
||||
| `title` | string | no | The title of a milestone |
|
||||
| `description` | string | no | The description of a milestone |
|
||||
|
|
@ -142,7 +142,7 @@ Parameters:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | ------ | -------- | ----------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) |
|
||||
| `milestone_id` | integer | yes | The ID of the group's milestone |
|
||||
|
||||
## Get all issues assigned to a single milestone
|
||||
|
|
@ -157,7 +157,7 @@ Parameters:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | ------ | -------- | ----------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) |
|
||||
| `milestone_id` | integer | yes | The ID of a group milestone |
|
||||
|
||||
Currently, this API endpoint doesn't return issues from any subgroups.
|
||||
|
|
@ -177,7 +177,7 @@ Parameters:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | ------ | -------- | ----------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) |
|
||||
| `milestone_id` | integer | yes | The ID of a group milestone |
|
||||
|
||||
## Get all burndown chart events for a single milestone
|
||||
|
|
@ -196,5 +196,5 @@ Parameters:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | ------ | -------- | ----------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) |
|
||||
| `milestone_id` | integer | yes | The ID of a group milestone |
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ GET /groups/:id/protected_branches
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding). |
|
||||
| `search` | string | no | Name or part of the name of protected branches to be searched for. |
|
||||
|
||||
```shell
|
||||
|
|
@ -120,7 +120,7 @@ GET /groups/:id/protected_branches/:name
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding). |
|
||||
| `name` | string | yes | The name of the branch or wildcard. |
|
||||
|
||||
```shell
|
||||
|
|
@ -172,7 +172,7 @@ curl --request POST --header "PRIVATE-TOKEN: <your_access_token>" \
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| -------------------------------------------- | ---- | -------- | ----------- |
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding). |
|
||||
| `name` | string | yes | The name of the branch or wildcard. |
|
||||
| `allow_force_push` | boolean | no | Allow all users with push access to force push. Default: `false`. |
|
||||
| `allowed_to_merge` | array | no | Array of access levels allowed to merge, with each described by a hash of the form `{user_id: integer}`, `{group_id: integer}`, or `{access_level: integer}`. |
|
||||
|
|
@ -352,7 +352,7 @@ curl --request DELETE --header "PRIVATE-TOKEN: <your_access_token>" \
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding). |
|
||||
| `name` | string | yes | The name of the branch. |
|
||||
|
||||
Example response:
|
||||
|
|
@ -387,7 +387,7 @@ curl --request PATCH --header "PRIVATE-TOKEN: <your_access_token>" \
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| -------------------------------------------- | ---- | -------- | ----------- |
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding). |
|
||||
| `name` | string | yes | The name of the branch. |
|
||||
| `allow_force_push` | boolean | no | When enabled, members who can push to this branch can also force push. |
|
||||
| `allowed_to_push` | array | no | Array of push access levels, with each described by a hash. |
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ POST /groups/:id/export_relations
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
|-----------|----------------|----------|--------------------------------------------------|
|
||||
| `id` | integer/string | yes | ID of the group owned by the authenticated user. |
|
||||
| `id` | integer/string | yes | ID of the group. |
|
||||
| `batched` | boolean | no | Whether to export in batches. |
|
||||
|
||||
```shell
|
||||
|
|
@ -52,7 +52,7 @@ GET /groups/:id/export_relations/status
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
|------------|----------------|----------|--------------------------------------------------|
|
||||
| `id` | integer/string | yes | ID of the group owned by the authenticated user. |
|
||||
| `id` | integer/string | yes | ID of the group. |
|
||||
| `relation` | string | no | Name of the project top-level relation to view. |
|
||||
|
||||
```shell
|
||||
|
|
@ -106,7 +106,7 @@ GET /groups/:id/export_relations/download
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
|----------------|----------------|----------|---------------------------------------------------|
|
||||
| `id` | integer/string | yes | ID of the group owned by the authenticated user. |
|
||||
| `id` | integer/string | yes | ID of the group. |
|
||||
| `relation` | string | yes | Name of the group top-level relation to download. |
|
||||
| `batched` | boolean | no | Whether the export is batched. |
|
||||
| `batch_number` | integer | no | Number of export batch to download. |
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ Parameters:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
|---------------------|----------------|----------|---------------------------------------------------------------------------------------------------------------|
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding). |
|
||||
| `sort` | string | no | The direction of the order. Either `desc` (default) for descending order or `asc` for ascending order. |
|
||||
| `simple` | boolean | no | Return only limited fields for each release. |
|
||||
|
||||
|
|
|
|||
|
|
@ -394,7 +394,7 @@ Parameters:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| -------------------------------------- | -------------- | -------- | ----------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) |
|
||||
| `archived` | boolean | no | Limit by archived status |
|
||||
| `visibility` | string | no | Limit by visibility `public`, `internal`, or `private` |
|
||||
| `order_by` | string | no | Return projects ordered by `id`, `name`, `path`, `created_at`, `updated_at`, `similarity` <sup>1</sup>, `star_count` or `last_activity_at` fields. Default is `created_at` |
|
||||
|
|
@ -476,7 +476,7 @@ Parameters:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| ------------------------------------- | ----------------- | -------- | ---------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) |
|
||||
| `skip_groups` | array of integers | no | Skip the specified group IDs |
|
||||
| `search` | string | no | Return the list of authorized groups matching the search criteria |
|
||||
| `order_by` | string | no | Order groups by `name`, `path`, `id`, or `similarity`. Default is `name` |
|
||||
|
|
@ -555,7 +555,7 @@ Parameters:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| ------------------------------------- | ----------------- | -------- | ---------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) |
|
||||
| `search` | string | no | Return the list of authorized groups matching the search criteria |
|
||||
| `min_access_level` | integer | no | Limit to groups where current user has at least the specified [role (`access_level`)](members.md#roles) |
|
||||
| `relation` | array of strings | no | Filter the groups by relation (direct or inherited) |
|
||||
|
|
@ -633,7 +633,7 @@ Parameters:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| ----------------------------- | -------------- | -------- | ----------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) |
|
||||
| `archived` | boolean | no | Limit by archived status |
|
||||
| `visibility` | string | no | Limit by visibility `public`, `internal`, or `private` |
|
||||
| `order_by` | string | no | Return projects ordered by `id`, `name`, `path`, `created_at`, `updated_at`, `star_count` or `last_activity_at` fields. Default is `created_at` |
|
||||
|
|
@ -771,7 +771,7 @@ Parameters:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| ------------------------ | -------------- | -------- | ----------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding). |
|
||||
| `with_custom_attributes` | boolean | no | Include [custom attributes](custom_attributes.md) in response (administrators only). |
|
||||
| `with_projects` | boolean | no | Include details from projects that belong to the specified group (defaults to `true`). (Deprecated, [scheduled for removal in API v5](https://gitlab.com/gitlab-org/gitlab/-/issues/213797). To get the details of all projects within a group, use the [list a group's projects endpoint](#list-a-groups-projects).) |
|
||||
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ POST /projects/:id/invitations
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project or group](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project or group](rest/index.md#namespaced-path-encoding) |
|
||||
| `email` | string | yes (if `user_id` isn't provided) | The email of the new member or multiple emails separated by commas. |
|
||||
| `user_id` | integer/string | yes (if `email` isn't provided) | The ID of the new member or multiple IDs separated by commas. |
|
||||
| `access_level` | integer | yes | A valid access level |
|
||||
|
|
@ -87,7 +87,7 @@ GET /projects/:id/invitations
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project or group](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project or group](rest/index.md#namespaced-path-encoding) |
|
||||
| `page` | integer | no | Page to retrieve |
|
||||
| `per_page`| integer | no | Number of member invitations to return per page |
|
||||
| `query` | string | no | A query string to search for invited members by invite email. Query text must match email address exactly. When empty, returns all invitations. |
|
||||
|
|
@ -124,7 +124,7 @@ PUT /projects/:id/invitations/:email
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project or group](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project or group](rest/index.md#namespaced-path-encoding). |
|
||||
| `email` | string | yes | The email address the invitation was previously sent to. |
|
||||
| `access_level` | integer | no | A valid access level (defaults: `30`, the Developer role). |
|
||||
| `expires_at` | string | no | A date string in ISO 8601 format (`YYYY-MM-DDTHH:MM:SSZ`). |
|
||||
|
|
@ -154,7 +154,7 @@ DELETE /projects/:id/invitations/:email
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project or group](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project or group](rest/index.md#namespaced-path-encoding) |
|
||||
| `email` | string | yes | The email address to which the invitation was previously sent |
|
||||
|
||||
```shell
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ Parameters:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
|-------------|---------|----------|--------------------------------------|
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) |
|
||||
| `issue_iid` | integer | yes | The internal ID of a project's issue |
|
||||
|
||||
```json
|
||||
|
|
@ -178,7 +178,7 @@ POST /projects/:id/issues/:issue_iid/links
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
|---------------------|----------------|----------|--------------------------------------|
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) |
|
||||
| `issue_iid` | integer | yes | The internal ID of a project's issue |
|
||||
| `target_project_id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) of a target project |
|
||||
| `target_issue_iid` | integer/string | yes | The internal ID of a target project's issue |
|
||||
|
|
@ -266,7 +266,7 @@ DELETE /projects/:id/issues/:issue_iid/links/:issue_link_id
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
|-------------|---------|----------|--------------------------------------|
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) |
|
||||
| `issue_iid` | integer | yes | The internal ID of a project's issue |
|
||||
| `issue_link_id` | integer/string | yes | The ID of an issue relationship |
|
||||
| `link_type` | string | no | The type of the relation (`relates_to`, `blocks`, `is_blocked_by`), defaults to `relates_to` |
|
||||
|
|
|
|||
|
|
@ -286,7 +286,7 @@ Supported attributes:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| ------------------- | ---------------- | ---------- | ----------------------------------------------------------------------------------------------------------------------------- |
|
||||
| `id` | integer/string | Yes | The global ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer/string | Yes | The global ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding). |
|
||||
| `assignee_id` | integer | No | Return issues assigned to the given user `id`. Mutually exclusive with `assignee_username`. `None` returns unassigned issues. `Any` returns issues with an assignee. |
|
||||
| `assignee_username` | string array | No | Return issues assigned to the given `username`. Similar to `assignee_id` and mutually exclusive with `assignee_id`. In GitLab CE, the `assignee_username` array should only contain a single value. Otherwise, an invalid parameter error is returned. |
|
||||
| `author_id` | integer | No | Return issues created by the given user `id`. Mutually exclusive with `author_username`. Combine with `scope=all` or `scope=assigned_to_me`. |
|
||||
|
|
@ -493,7 +493,7 @@ Supported attributes:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| ------------------- | ---------------- | ---------- | ----------------------------------------------------------------------------------------------------------------------------- |
|
||||
| `id` | integer/string | Yes | The global ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer/string | Yes | The global ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `assignee_id` | integer | No | Return issues assigned to the given user `id`. Mutually exclusive with `assignee_username`. `None` returns unassigned issues. `Any` returns issues with an assignee. |
|
||||
| `assignee_username` | string array | No | Return issues assigned to the given `username`. Similar to `assignee_id` and mutually exclusive with `assignee_id`. In GitLab CE, the `assignee_username` array should only contain a single value. Otherwise, an invalid parameter error is returned. |
|
||||
| `author_id` | integer | No | Return issues created by the given user `id`. Mutually exclusive with `author_username`. Combine with `scope=all` or `scope=assigned_to_me`. |
|
||||
|
|
@ -865,7 +865,7 @@ Supported attributes:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
|-------------|---------|----------|--------------------------------------|
|
||||
| `id` | integer/string | Yes | The global ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer/string | Yes | The global ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `issue_iid` | integer | Yes | The internal ID of a project's issue. |
|
||||
|
||||
Example request:
|
||||
|
|
@ -1027,7 +1027,7 @@ Supported attributes:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
|-------------------------------------------|----------------|----------|--------------|
|
||||
| `id` | integer/string | Yes | The global ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer/string | Yes | The global ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `assignee_id` | integer | No | The ID of the user to assign the issue to. Only appears on GitLab Free. |
|
||||
| `assignee_ids` | integer array | No | The IDs of the users to assign the issue to. Premium and Ultimate only.|
|
||||
| `confidential` | boolean | No | Set an issue to be confidential. Default is `false`. |
|
||||
|
|
@ -1199,7 +1199,7 @@ Supported attributes:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
|----------------|---------|----------|------------------------------------------------------------------------------------------------------------|
|
||||
| `id` | integer/string | Yes | The global ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer/string | Yes | The global ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `issue_iid` | integer | Yes | The internal ID of a project's issue. |
|
||||
| `add_labels` | string | No | Comma-separated label names to add to an issue. If a label does not already exist, this creates a new project label and assigns it to the issue. |
|
||||
| `assignee_ids` | integer array | No | The ID of the users to assign the issue to. Set to `0` or provide an empty value to unassign all assignees. |
|
||||
|
|
@ -1361,7 +1361,7 @@ Supported attributes:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
|-------------|---------|----------|--------------------------------------|
|
||||
| `id` | integer/string | Yes | The global ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer/string | Yes | The global ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `issue_iid` | integer | Yes | The internal ID of a project's issue. |
|
||||
|
||||
Example request:
|
||||
|
|
@ -1386,7 +1386,7 @@ Supported attributes:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
|-------------|---------|----------|--------------------------------------|
|
||||
| `id` | integer/string | Yes | The global ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer/string | Yes | The global ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `issue_iid` | integer | Yes | The internal ID of the project's issue. |
|
||||
| `move_after_id` | integer | No | The global ID of a project's issue that should be placed after this issue. |
|
||||
| `move_before_id` | integer | No | The global ID of a project's issue that should be placed before this issue. |
|
||||
|
|
@ -1416,7 +1416,7 @@ Supported attributes:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
|-----------------|---------|----------|--------------------------------------|
|
||||
| `id` | integer/string | Yes | The global ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer/string | Yes | The global ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `issue_iid` | integer | Yes | The internal ID of a project's issue. |
|
||||
| `to_project_id` | integer | Yes | The ID of the new project. |
|
||||
|
||||
|
|
@ -1570,7 +1570,7 @@ Supported attributes:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------------- | -------------- | ---------------------- | --------------------------------- |
|
||||
| `id` | integer/string | Yes | ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer/string | Yes | ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `issue_iid` | integer | Yes | Internal ID of a project's issue. |
|
||||
| `to_project_id` | integer | Yes | ID of the new project. |
|
||||
| `with_notes` | boolean | No | Clone the issue with [notes](notes.md). Default is `false`. |
|
||||
|
|
@ -1688,7 +1688,7 @@ Supported attributes:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
|-------------|---------|----------|--------------------------------------|
|
||||
| `id` | integer/string | Yes | The global ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer/string | Yes | The global ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `issue_iid` | integer | Yes | The internal ID of a project's issue. |
|
||||
|
||||
Example request:
|
||||
|
|
@ -1837,7 +1837,7 @@ Supported attributes:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
|-------------|---------|----------|--------------------------------------|
|
||||
| `id` | integer/string | Yes | The global ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer/string | Yes | The global ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `issue_iid` | integer | Yes | The internal ID of a project's issue. |
|
||||
|
||||
Example request:
|
||||
|
|
@ -1917,7 +1917,7 @@ Supported attributes:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
|-------------|---------|----------|--------------------------------------|
|
||||
| `id` | integer/string | Yes | The global ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer/string | Yes | The global ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `issue_iid` | integer | Yes | The internal ID of a project's issue. |
|
||||
|
||||
Example request:
|
||||
|
|
@ -2047,7 +2047,7 @@ Supported attributes:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| :---------- | :------------- | :------- | :---------- |
|
||||
| `id` | integer/string | Yes | The global ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer/string | Yes | The global ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `issue_iid` | integer | Yes | The internal ID of a project's issue. |
|
||||
| `body` | String | Yes | The content of a note. Must contain `/promote` at the start of a new line. If the note only contains `/promote`, promotes the issue, but doesn't add a comment. Otherwise, the other lines form a comment.|
|
||||
|
||||
|
|
@ -2106,7 +2106,7 @@ Supported attributes:
|
|||
| Attribute | Type | Required | Description |
|
||||
|-------------|---------|----------|------------------------------------------|
|
||||
| `duration` | string | Yes | The duration in human-readable format. For example: `3h30m`. |
|
||||
| `id` | integer/string | Yes | The global ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer/string | Yes | The global ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `issue_iid` | integer | Yes | The internal ID of a project's issue. |
|
||||
|
||||
Example request:
|
||||
|
|
@ -2140,7 +2140,7 @@ Supported attributes:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
|-------------|---------|----------|--------------------------------------|
|
||||
| `id` | integer/string | Yes | The global ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer/string | Yes | The global ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `issue_iid` | integer | Yes | The internal ID of a project's issue. |
|
||||
|
||||
Example request:
|
||||
|
|
@ -2175,7 +2175,7 @@ Supported attributes:
|
|||
| Attribute | Type | Required | Description |
|
||||
|-------------|---------|----------|------------------------------------------|
|
||||
| `duration` | string | Yes | The duration in human-readable format. For example: `3h30m` |
|
||||
| `id` | integer/string | Yes | The global ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer/string | Yes | The global ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `issue_iid` | integer | Yes | The internal ID of a project's issue. |
|
||||
| `summary` | string | No | A summary of how the time was spent. |
|
||||
|
||||
|
|
@ -2210,7 +2210,7 @@ Supported attributes:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
|-------------|---------|----------|--------------------------------------|
|
||||
| `id` | integer/string | Yes | The global ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer/string | Yes | The global ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `issue_iid` | integer | Yes | The internal ID of a project's issue. |
|
||||
|
||||
Example request:
|
||||
|
|
@ -2247,7 +2247,7 @@ Supported attributes:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
|-------------|---------|----------|--------------------------------------|
|
||||
| `id` | integer/string | Yes | The global ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer/string | Yes | The global ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `issue_iid` | integer | Yes | The internal ID of a project's issue. |
|
||||
|
||||
Example request:
|
||||
|
|
@ -2287,7 +2287,7 @@ Supported attributes:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
|-------------|---------|----------|--------------------------------------|
|
||||
| `id` | integer/string | Yes | The global ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer/string | Yes | The global ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `issue_iid` | integer | Yes | The internal ID of a project's issue. |
|
||||
|
||||
Example request:
|
||||
|
|
@ -2452,7 +2452,7 @@ Supported attributes:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| ----------- | ---------------| -------- | ---------------------------------- |
|
||||
| `id` | integer/string | Yes | The global ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer/string | Yes | The global ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `issue_iid` | integer | Yes | The internal ID of a project issue. |
|
||||
|
||||
Example request:
|
||||
|
|
@ -2536,7 +2536,7 @@ Supported attributes:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
|-------------|---------|----------|--------------------------------------|
|
||||
| `id` | integer/string | Yes | The global ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer/string | Yes | The global ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `issue_iid` | integer | Yes | The internal ID of a project's issue. |
|
||||
|
||||
Example request:
|
||||
|
|
@ -2588,7 +2588,7 @@ Supported attributes:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
|-------------|---------|----------|--------------------------------------|
|
||||
| `id` | integer/string | Yes | The global ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer/string | Yes | The global ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `issue_iid` | integer | Yes | The internal ID of a project's issue. |
|
||||
|
||||
Example request:
|
||||
|
|
@ -2633,7 +2633,7 @@ Supported attributes:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
|-------------|---------|----------|--------------------------------------|
|
||||
| `id` | integer/string | Yes | The global ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer/string | Yes | The global ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `issue_iid` | integer | Yes | The internal ID of a project's issue. |
|
||||
| `file` | file | Yes | The image file to be uploaded. |
|
||||
| `url` | string | No | The URL to view more metric information. |
|
||||
|
|
@ -2676,7 +2676,7 @@ Supported attributes:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
|-------------|---------|----------|--------------------------------------|
|
||||
| `id` | integer/string | Yes | The global ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer/string | Yes | The global ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `issue_iid` | integer | Yes | The internal ID of a project's issue. |
|
||||
|
||||
Example request:
|
||||
|
|
@ -2721,7 +2721,7 @@ Supported attributes:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
|-------------|---------|----------|--------------------------------------|
|
||||
| `id` | integer/string | Yes | The global ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer/string | Yes | The global ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `issue_iid` | integer | Yes | The internal ID of a project's issue. |
|
||||
| `image_id` | integer | Yes | The ID of the image. |
|
||||
| `url` | string | No | The URL to view more metric information. |
|
||||
|
|
@ -2764,7 +2764,7 @@ Supported attributes:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
|-------------|---------|----------|--------------------------------------|
|
||||
| `id` | integer/string | Yes | The global ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer/string | Yes | The global ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `issue_iid` | integer | Yes | The internal ID of a project's issue. |
|
||||
| `image_id` | integer | Yes | The ID of the image. |
|
||||
|
||||
|
|
|
|||
|
|
@ -95,7 +95,7 @@ GET /groups/:id/issues_statistics?confidential=true
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| ------------------- | ---------------- | ---------- | ----------------------------------------------------------------------------------------------------------------------------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) |
|
||||
| `labels` | string | no | Comma-separated list of label names, issues must have all labels to be returned. `None` lists all issues with no labels. `Any` lists all issues with at least one label. |
|
||||
| `iids[]` | integer array | no | Return only the issues having the given `iid` |
|
||||
| `milestone` | string | no | The milestone title. `None` lists all issues with no milestone. `Any` lists all issues that have an assigned milestone. |
|
||||
|
|
@ -151,7 +151,7 @@ GET /projects/:id/issues_statistics?confidential=true
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| ------------------- | ---------------- | ---------- | ----------------------------------------------------------------------------------------------------------------------------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) |
|
||||
| `iids[]` | integer array | no | Return only the milestone having the given `iid` |
|
||||
| `labels` | string | no | Comma-separated list of label names, issues must have all labels to be returned. `None` lists all issues with no labels. `Any` lists all issues with at least one label. |
|
||||
| `milestone` | string | no | The milestone title. `None` lists all issues with no milestone. `Any` lists all issues that have an assigned milestone. |
|
||||
|
|
|
|||
|
|
@ -247,7 +247,7 @@ Parameters
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
|-----------|----------------|----------|-------------|
|
||||
| `id` | integer/string | Yes | ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer/string | Yes | ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `job_id` | integer | Yes | ID of a job. |
|
||||
|
||||
Example request:
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ GET /projects/:id/labels
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | ------- | -------- | --------------------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) |
|
||||
| `with_counts` | boolean | no | Whether or not to include issue and merge request counts. Defaults to `false`. |
|
||||
| `include_ancestor_groups` | boolean | no | Include ancestor groups. Defaults to `true`. |
|
||||
| `search` | string | no | Keyword to filter labels by. |
|
||||
|
|
@ -120,7 +120,7 @@ GET /projects/:id/labels/:label_id
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | ------- | -------- | --------------------- |
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) |
|
||||
| `label_id` | integer or string | yes | The ID or title of a project's label. |
|
||||
| `include_ancestor_groups` | boolean | no | Include ancestor groups. Defaults to `true`. |
|
||||
|
||||
|
|
@ -157,7 +157,7 @@ POST /projects/:id/labels
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| ------------- | ------- | -------- | ---------------------------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) |
|
||||
| `name` | string | yes | The name of the label |
|
||||
| `color` | string | yes | The color of the label given in 6-digit hex notation with leading '#' sign (for example, #FFAABB) or one of the [CSS color names](https://developer.mozilla.org/en-US/docs/Web/CSS/color_value#Color_keywords) |
|
||||
| `description` | string | no | The description of the label |
|
||||
|
|
@ -196,7 +196,7 @@ DELETE /projects/:id/labels/:label_id
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | ------- | -------- | --------------------- |
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) |
|
||||
| `label_id` | integer or string | yes | The ID or title of a group's label. |
|
||||
|
||||
```shell
|
||||
|
|
@ -217,7 +217,7 @@ PUT /projects/:id/labels/:label_id
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------------- | ------- | --------------------------------- | ------------------------------- |
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) |
|
||||
| `label_id` | integer or string | yes | The ID or title of a group's label. |
|
||||
| `new_name` | string | yes if `color` is not provided | The new name of the label |
|
||||
| `color` | string | yes if `new_name` is not provided | The color of the label given in 6-digit hex notation with leading '#' sign (for example, #FFAABB) or one of the [CSS color names](https://developer.mozilla.org/en-US/docs/Web/CSS/color_value#Color_keywords) |
|
||||
|
|
@ -261,7 +261,7 @@ PUT /projects/:id/labels/:label_id/promote
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------------- | ------- | --------------------------------- | ------------------------------- |
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) |
|
||||
| `label_id` | integer or string | yes | The ID or title of a group's label. |
|
||||
|
||||
```shell
|
||||
|
|
@ -299,7 +299,7 @@ POST /projects/:id/labels/:label_id/subscribe
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| ---------- | ----------------- | -------- | ------------------------------------ |
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) |
|
||||
| `label_id` | integer or string | yes | The ID or title of a project's label |
|
||||
|
||||
```shell
|
||||
|
|
@ -337,7 +337,7 @@ POST /projects/:id/labels/:label_id/unsubscribe
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| ---------- | ----------------- | -------- | ------------------------------------ |
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) |
|
||||
| `label_id` | integer or string | yes | The ID or title of a project's label |
|
||||
|
||||
```shell
|
||||
|
|
|
|||
|
|
@ -228,7 +228,7 @@ Supported attributes:
|
|||
| Attribute | Type | Required | Description |
|
||||
|---------------------|----------------|-----------------------------|---------------------------------------|
|
||||
| `epic_iid` | integer | Yes | Internal ID of a group's epic. |
|
||||
| `id` | integer/string | Yes | ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer/string | Yes | ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding). |
|
||||
| `target_epic_iid` | integer/string | Yes | Internal ID of a target group's epic. |
|
||||
| `target_group_id` | integer/string | Yes | ID or [URL-encoded path of the target group](rest/index.md#namespaced-path-encoding). |
|
||||
| `link_type` | string | No | Type of the relation (`relates_to`, `blocks`, `is_blocked_by`), defaults to `relates_to`. |
|
||||
|
|
@ -349,7 +349,7 @@ Supported attributes:
|
|||
| Attribute | Type | Required | Description |
|
||||
|--------------------------|----------------|-----------------------------|---------------------------------------|
|
||||
| `epic_iid` | integer | Yes | Internal ID of a group's epic. |
|
||||
| `id` | integer/string | Yes | ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer/string | Yes | ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding). |
|
||||
| `related_epic_link_id` | integer/string | Yes | Internal ID of a related epic link. |
|
||||
|
||||
Example request:
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ GET /projects/:id/members
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project or group](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project or group](rest/index.md#namespaced-path-encoding) |
|
||||
| `query` | string | no | A query string to search for members |
|
||||
| `user_ids` | array of integers | no | Filter the results on the given user IDs |
|
||||
| `skip_users` | array of integers | no | Filter skipped users out of the results |
|
||||
|
|
@ -139,7 +139,7 @@ GET /projects/:id/members/all
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project or group](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project or group](rest/index.md#namespaced-path-encoding). |
|
||||
| `query` | string | no | A query string to search for members. |
|
||||
| `user_ids` | array of integers | no | Filter the results on the given user IDs. |
|
||||
| `show_seat_info` | boolean | no | Show seat information for users. |
|
||||
|
|
@ -233,7 +233,7 @@ GET /projects/:id/members/:user_id
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project or group](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project or group](rest/index.md#namespaced-path-encoding) |
|
||||
| `user_id` | integer | yes | The user ID of the member |
|
||||
|
||||
```shell
|
||||
|
|
@ -288,7 +288,7 @@ GET /projects/:id/members/all/:user_id
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project or group](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project or group](rest/index.md#namespaced-path-encoding) |
|
||||
| `user_id` | integer | yes | The user ID of the member |
|
||||
|
||||
```shell
|
||||
|
|
@ -342,7 +342,7 @@ GET /groups/:id/billable_members
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| ----------------------------- | --------------- | --------- |-------------------------------------------------------------------------------------------------------------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) |
|
||||
| `search` | string | no | A query string to search for group members by name, username, or public email. |
|
||||
| `sort` | string | no | A query string containing parameters that specify the sort attribute and order. See supported values below. |
|
||||
|
||||
|
|
@ -433,7 +433,7 @@ GET /groups/:id/billable_members/:user_id/memberships
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) |
|
||||
| `user_id` | integer | yes | The user ID of the billable member |
|
||||
|
||||
```shell
|
||||
|
|
@ -497,7 +497,7 @@ GET /groups/:id/billable_members/:user_id/indirect
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) |
|
||||
| `user_id` | integer | yes | The user ID of the billable member |
|
||||
|
||||
```shell
|
||||
|
|
@ -537,7 +537,7 @@ DELETE /groups/:id/billable_members/:user_id
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) |
|
||||
| `user_id` | integer | yes | The user ID of the member |
|
||||
|
||||
```shell
|
||||
|
|
@ -558,7 +558,7 @@ PUT /groups/:id/members/:user_id/state
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding). |
|
||||
| `user_id` | integer | yes | The user ID of the member. |
|
||||
| `state` | string | yes | The new state for the user. State is either `awaiting` or `active`. |
|
||||
|
||||
|
|
@ -585,7 +585,7 @@ POST /projects/:id/members
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project or group](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project or group](rest/index.md#namespaced-path-encoding). |
|
||||
| `user_id` | integer/string | yes, if `username` is not provided | The user ID of the new member or multiple IDs separated by commas. |
|
||||
| `username` | string | yes, if `user_id` is not provided | The username of the new member or multiple usernames separated by commas. |
|
||||
| `access_level` | integer | yes | [A valid access level](access_requests.md#valid-access-levels). |
|
||||
|
|
@ -637,7 +637,7 @@ PUT /projects/:id/members/:user_id
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project or group](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project or group](rest/index.md#namespaced-path-encoding) |
|
||||
| `user_id` | integer | yes | The user ID of the member |
|
||||
| `access_level` | integer | yes | A [valid access level](access_requests.md#valid-access-levels) |
|
||||
| `expires_at` | string | no | A date string in the format `YEAR-MONTH-DAY` |
|
||||
|
|
@ -685,7 +685,7 @@ POST /groups/:id/members/:user_id/override
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) |
|
||||
| `user_id` | integer | yes | The user ID of the member |
|
||||
|
||||
```shell
|
||||
|
|
@ -729,7 +729,7 @@ DELETE /groups/:id/members/:user_id/override
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) |
|
||||
| `user_id` | integer | yes | The user ID of the member |
|
||||
|
||||
```shell
|
||||
|
|
@ -778,7 +778,7 @@ DELETE /projects/:id/members/:user_id
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project or group](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project or group](rest/index.md#namespaced-path-encoding) |
|
||||
| `user_id` | integer | yes | The user ID of the member |
|
||||
| `skip_subresources` | boolean | false | Whether the deletion of direct memberships of the removed member in subgroups and projects should be skipped. Default is `false`. |
|
||||
| `unassign_issuables` | boolean | false | Whether the removed member should be unassigned from any issues or merge requests inside a given group or project. Default is `false`. |
|
||||
|
|
@ -800,7 +800,7 @@ PUT /groups/:id/members/:member_id/approve
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the root group](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the root group](rest/index.md#namespaced-path-encoding) |
|
||||
| `member_id` | integer | yes | The ID of the member |
|
||||
|
||||
Example request:
|
||||
|
|
@ -819,7 +819,7 @@ POST /groups/:id/members/approve_all
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the root group](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the root group](rest/index.md#namespaced-path-encoding) |
|
||||
|
||||
Example request:
|
||||
|
||||
|
|
@ -847,7 +847,7 @@ GET /groups/:id/pending_members
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) |
|
||||
|
||||
```shell
|
||||
curl --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/groups/:id/pending_members"
|
||||
|
|
|
|||
|
|
@ -1466,7 +1466,7 @@ PUT /projects/:id/merge_requests/:merge_request_iid/reset_approvals
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
|---------------------|-------------------|----------|-------------|
|
||||
| `id` | integer or string | Yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer or string | Yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `merge_request_iid` | integer | Yes | The internal ID of the merge request. |
|
||||
|
||||
```shell
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ Parameters:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
|---------------------|---------|----------|-------------|
|
||||
| `id` | integer | Yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer | Yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `merge_request_iid` | integer | Yes | The internal ID of the merge request. |
|
||||
|
||||
```json
|
||||
|
|
@ -57,7 +57,7 @@ Parameters:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
|---------------------|---------|----------|-------------|
|
||||
| `id` | integer | Yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer | Yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) |
|
||||
| `merge_request_iid` | integer | Yes | The internal ID of the merge request. |
|
||||
| `commits` | string array | Yes | The context commits' SHAs. |
|
||||
|
||||
|
|
@ -108,5 +108,5 @@ Parameters:
|
|||
| Attribute | Type | Required | Description |
|
||||
|---------------------|--------------|----------|--------------|
|
||||
| `commits` | string array | Yes | The context commits' SHA. |
|
||||
| `id` | integer | Yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer | Yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `merge_request_iid` | integer | Yes | The internal ID of the merge request. |
|
||||
|
|
|
|||
|
|
@ -241,7 +241,7 @@ Supported attributes:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| ------------------------------- | -------------- | -------- | ----------- |
|
||||
| `id` | integer or string | Yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer or string | Yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `approved_by_ids` | integer array | No | Returns merge requests approved by all the users with the given `id`, up to 5 users. `None` returns merge requests with no approvals. `Any` returns merge requests with an approval. Premium and Ultimate only. |
|
||||
| `approver_ids` | integer array | No | Returns merge requests which have specified all the users with the given `id` as individual approvers. `None` returns merge requests without approvers. `Any` returns merge requests with an approver. Premium and Ultimate only. |
|
||||
| `approved` | string | No | Filters merge requests by their `approved` status. `yes` returns only approved merge requests. `no` returns only non-approved merge requests. [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/3159) in GitLab 15.11. Available only when the feature flag `mr_approved_filter` is enabled. |
|
||||
|
|
@ -490,7 +490,7 @@ Supported attributes:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| ------------------------------- | -------------- | -------- | ----------- |
|
||||
| `id` | integer or string | Yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer or string | Yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding). |
|
||||
| `approved_by_ids` | integer array | No | Returns the merge requests approved by all the users with the given `id`, up to 5 users. `None` returns merge requests with no approvals. `Any` returns merge requests with an approval. Premium and Ultimate only. |
|
||||
| `approved_by_usernames` | string array | No | Returns the merge requests approved by all the users with the given `username`, up to 5 users. `None` returns merge requests with no approvals. `Any` returns merge requests with an approval. Premium and Ultimate only. |
|
||||
| `approver_ids` | integer array | No | Returns merge requests which have specified all the users with the given `id` as individual approvers. `None` returns merge requests without approvers. `Any` returns merge requests with an approver. Premium and Ultimate only. |
|
||||
|
|
@ -666,7 +666,7 @@ Supported attributes:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
|----------------------------------|----------------|----------|-------------|
|
||||
| `id` | integer or string | Yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer or string | Yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `merge_request_iid` | integer | Yes | The internal ID of the merge request. |
|
||||
| `include_diverged_commits_count` | boolean | No | If `true`, response includes the commits behind the target branch. |
|
||||
| `include_rebase_in_progress` | boolean | No | If `true`, response includes whether a rebase operation is in progress. |
|
||||
|
|
@ -945,7 +945,7 @@ Supported attributes:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
|---------------------|-------------------|----------|-------------|
|
||||
| `id` | integer or string | Yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer or string | Yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `merge_request_iid` | integer | Yes | The internal ID of the merge request. |
|
||||
|
||||
Example response:
|
||||
|
|
@ -983,7 +983,7 @@ Supported attributes:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
|---------------------|-------------------|----------|-------------|
|
||||
| `id` | integer or string | Yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer or string | Yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `merge_request_iid` | integer | Yes | The internal ID of the merge request. |
|
||||
|
||||
Example response:
|
||||
|
|
@ -1029,7 +1029,7 @@ Supported attributes:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
|---------------------|-------------------|----------|-------------|
|
||||
| `id` | integer or string | Yes | ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer or string | Yes | ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `merge_request_iid` | integer | Yes | Internal ID of the merge request. |
|
||||
|
||||
If successful, returns [`200 OK`](rest/index.md#status-codes) and the following
|
||||
|
|
@ -1112,7 +1112,7 @@ Supported attributes:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
|---------------------|----------------|----------|-------------|
|
||||
| `id` | integer or string | Yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer or string | Yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
|
||||
Example request:
|
||||
|
||||
|
|
@ -1373,7 +1373,7 @@ Supported attributes:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
|---------------------|----------------|----------|-------------|
|
||||
| `id` | integer or string | Yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer or string | Yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `merge_request_iid` | integer | Yes | The internal ID of the merge request. |
|
||||
| `access_raw_diffs` | boolean | No | Retrieve change diffs through Gitaly. |
|
||||
| `unidiff` | boolean | No | Present change diffs in the [unified diff](https://www.gnu.org/software/diffutils/manual/html_node/Detailed-Unified.html) format. Default is false. [Introduced](https://gitlab.com/gitlab-org/gitlab/-/merge_requests/130610) in GitLab 16.5. |
|
||||
|
|
@ -1511,7 +1511,7 @@ Supported attributes:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
|---------------------|-------------------|----------|-------------|
|
||||
| `id` | integer or string | Yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer or string | Yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `merge_request_iid` | integer | Yes | The internal ID of the merge request. |
|
||||
| `page` | integer | No | The page of results to return. Defaults to 1. |
|
||||
| `per_page` | integer | No | The number of results per page. Defaults to 20. |
|
||||
|
|
@ -1584,7 +1584,7 @@ Supported attributes:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
|---------------------|-------------------|----------|-------------|
|
||||
| `id` | integer or string | Yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer or string | Yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `merge_request_iid` | integer | Yes | The internal ID of the merge request. |
|
||||
|
||||
To restrict the list of merge request pipelines, use the pagination parameters `page` and
|
||||
|
|
@ -1623,7 +1623,7 @@ Supported attributes:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
|---------------------|-------------------|----------|-------------|
|
||||
| `id` | integer or string | Yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer or string | Yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `merge_request_iid` | integer | Yes | The internal ID of the merge request. |
|
||||
|
||||
Example response:
|
||||
|
|
@ -1677,7 +1677,7 @@ POST /projects/:id/merge_requests
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `id` | integer or string | Yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer or string | Yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) |
|
||||
| `source_branch` | string | Yes | The source branch. |
|
||||
| `target_branch` | string | Yes | The target branch. |
|
||||
| `title` | string | Yes | Title of MR. |
|
||||
|
|
@ -1833,7 +1833,7 @@ PUT /projects/:id/merge_requests/:merge_request_iid
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `id` | integer or string | Yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer or string | Yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `merge_request_iid` | integer | Yes | The ID of a merge request. |
|
||||
| `add_labels` | string | No | Comma-separated label names to add to a merge request. If a label does not already exist, this creates a new project label and assigns it to the merge request. |
|
||||
| `allow_collaboration` | boolean | No | Allow commits from members who can merge to the target branch. |
|
||||
|
|
@ -2007,7 +2007,7 @@ DELETE /projects/:id/merge_requests/:merge_request_iid
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
|---------------------|-------------------|----------|-------------|
|
||||
| `id` | integer or string | Yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer or string | Yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `merge_request_iid` | integer | Yes | The internal ID of the merge request. |
|
||||
|
||||
```shell
|
||||
|
|
@ -2028,7 +2028,7 @@ Supported attributes:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
|--------------------------------|----------------|----------|-------------|
|
||||
| `id` | integer or string | Yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer or string | Yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `merge_request_iid` | integer | Yes | The internal ID of the merge request. |
|
||||
| `merge_commit_message` | string | No | Custom merge commit message. |
|
||||
| `merge_when_pipeline_succeeds` | boolean | No | If `true`, the merge request merges when the pipeline succeeds. |
|
||||
|
|
@ -2208,7 +2208,7 @@ Supported attributes:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
|---------------------|-------------------|----------|-------------|
|
||||
| `id` | integer or string | Yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer or string | Yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `merge_request_iid` | integer | Yes | The internal ID of the merge request. |
|
||||
|
||||
This API returns specific HTTP status codes:
|
||||
|
|
@ -2238,7 +2238,7 @@ Supported attributes:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
|---------------------|-------------------|----------|-------------|
|
||||
| `id` | integer or string | Yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer or string | Yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `merge_request_iid` | integer | Yes | The internal ID of the merge request. |
|
||||
|
||||
This API returns specific HTTP status codes:
|
||||
|
|
@ -2402,7 +2402,7 @@ PUT /projects/:id/merge_requests/:merge_request_iid/rebase
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
|---------------------|----------------|----------|-------------|
|
||||
| `id` | integer or string | Yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer or string | Yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `merge_request_iid` | integer | Yes | The internal ID of the merge request. |
|
||||
| `skip_ci` | boolean | No | Set to `true` to skip creating a CI pipeline. |
|
||||
|
||||
|
|
@ -2478,7 +2478,7 @@ Supported attributes:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
|---------------------|----------------|----------|-------------|
|
||||
| `id` | integer or string | Yes | ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer or string | Yes | ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `merge_request_iid` | integer | Yes | Internal ID of the merge request. |
|
||||
|
||||
If successful, returns [`200 OK`](rest/index.md#status-codes) and the following
|
||||
|
|
@ -2636,7 +2636,7 @@ GET /projects/:id/merge_requests/:merge_request_iid/related_issues
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
|---------------------|----------------|----------|-------------|
|
||||
| `id` | integer or string | Yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer or string | Yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `merge_request_iid` | integer | Yes | The internal ID of the merge request. |
|
||||
|
||||
```shell
|
||||
|
|
@ -2712,7 +2712,7 @@ POST /projects/:id/merge_requests/:merge_request_iid/subscribe
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
|---------------------|-------------------|----------|-------------|
|
||||
| `id` | integer or string | Yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer or string | Yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `merge_request_iid` | integer | Yes | The internal ID of the merge request. |
|
||||
|
||||
If the user is already subscribed to the merge request, the endpoint returns the
|
||||
|
|
@ -2877,7 +2877,7 @@ POST /projects/:id/merge_requests/:merge_request_iid/unsubscribe
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
|---------------------|----------------|----------|-------------|
|
||||
| `id` | integer or string | Yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer or string | Yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `merge_request_iid` | integer | Yes | The internal ID of the merge request. |
|
||||
|
||||
```shell
|
||||
|
|
@ -3043,7 +3043,7 @@ POST /projects/:id/merge_requests/:merge_request_iid/todo
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
|---------------------|-------------------|----------|-------------|
|
||||
| `id` | integer or string | Yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer or string | Yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `merge_request_iid` | integer | Yes | The internal ID of the merge request. |
|
||||
|
||||
```shell
|
||||
|
|
@ -3368,7 +3368,7 @@ POST /projects/:id/merge_requests/:merge_request_iid/time_estimate
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
|---------------------|-------------------|----------|-------------|
|
||||
| `id` | integer or string | Yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer or string | Yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `merge_request_iid` | integer | Yes | The internal ID of the merge request. |
|
||||
| `duration` | string | Yes | The duration in human format, such as `3h30m`. |
|
||||
|
||||
|
|
@ -3399,7 +3399,7 @@ POST /projects/:id/merge_requests/:merge_request_iid/reset_time_estimate
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
|---------------------|-------------------|----------|-------------|
|
||||
| `id` | integer or string | Yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer or string | Yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `merge_request_iid` | integer | Yes | The internal ID of a project's merge request. |
|
||||
|
||||
```shell
|
||||
|
|
@ -3429,7 +3429,7 @@ POST /projects/:id/merge_requests/:merge_request_iid/add_spent_time
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
|---------------------|----------------|----------|-------------|
|
||||
| `id` | integer or string | Yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer or string | Yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `merge_request_iid` | integer | Yes | The internal ID of the merge request. |
|
||||
| `duration` | string | Yes | The duration in human format, such as `3h30m` |
|
||||
| `summary` | string | No | A summary of how the time was spent. |
|
||||
|
|
@ -3461,7 +3461,7 @@ POST /projects/:id/merge_requests/:merge_request_iid/reset_spent_time
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
|---------------------|----------------|----------|-------------|
|
||||
| `id` | integer or string | Yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer or string | Yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `merge_request_iid` | integer | Yes | The internal ID of a project's merge request. |
|
||||
|
||||
```shell
|
||||
|
|
@ -3489,7 +3489,7 @@ GET /projects/:id/merge_requests/:merge_request_iid/time_stats
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
|---------------------|-------------------|----------|-------------|
|
||||
| `id` | integer or string | Yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer or string | Yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `merge_request_iid` | integer | Yes | The internal ID of the merge request. |
|
||||
|
||||
```shell
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ Parameters:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| ---------------------------- | ------ | -------- | ----------- |
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) |
|
||||
| `iids[]` | integer array | no | Return only the milestones having the given `iid`. Ignored if `include_ancestors` is `true`. |
|
||||
| `state` | string | no | Return only `active` or `closed` milestones |
|
||||
| `title` | string | no | Return only the milestones having the given `title` |
|
||||
|
|
@ -79,7 +79,7 @@ Parameters:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
|----------------|----------------|----------|-----------------------------------------------------------------------------------------------------------------|
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) |
|
||||
| `milestone_id` | integer | yes | The ID of the project's milestone |
|
||||
|
||||
## Create new milestone
|
||||
|
|
@ -94,7 +94,7 @@ Parameters:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
|---------------|----------------|----------|-----------------------------------------------------------------------------------------------------------------|
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) |
|
||||
| `title` | string | yes | The title of a milestone |
|
||||
| `description` | string | no | The description of the milestone |
|
||||
| `due_date` | string | no | The due date of the milestone (`YYYY-MM-DD`) |
|
||||
|
|
@ -112,7 +112,7 @@ Parameters:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
|----------------|----------------|----------|-----------------------------------------------------------------------------------------------------------------|
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) |
|
||||
| `milestone_id` | integer | yes | The ID of the project's milestone |
|
||||
| `title` | string | no | The title of a milestone |
|
||||
| `description` | string | no | The description of the milestone |
|
||||
|
|
@ -134,7 +134,7 @@ Parameters:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
|----------------|----------------|----------|-----------------------------------------------------------------------------------------------------------------|
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) |
|
||||
| `milestone_id` | integer | yes | The ID of the project's milestone |
|
||||
|
||||
## Get all issues assigned to a single milestone
|
||||
|
|
@ -149,7 +149,7 @@ Parameters:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
|----------------|----------------|----------|-----------------------------------------------------------------------------------------------------------------|
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) |
|
||||
| `milestone_id` | integer | yes | The ID of the project's milestone |
|
||||
|
||||
## Get all merge requests assigned to a single milestone
|
||||
|
|
@ -164,7 +164,7 @@ Parameters:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
|----------------|----------------|----------|-----------------------------------------------------------------------------------------------------------------|
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) |
|
||||
| `milestone_id` | integer | yes | The ID of the project's milestone |
|
||||
|
||||
## Promote project milestone to a group milestone
|
||||
|
|
@ -181,7 +181,7 @@ Parameters:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
|----------------|----------------|----------|-----------------------------------------------------------------------------------------------------------------|
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) |
|
||||
| `milestone_id` | integer | yes | The ID of the project's milestone |
|
||||
|
||||
## Get all burndown chart events for a single milestone
|
||||
|
|
@ -200,5 +200,5 @@ Parameters:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
|----------------|----------------|----------|-----------------------------------------------------------------------------------------------------------------|
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) |
|
||||
| `milestone_id` | integer | yes | The ID of the project's milestone |
|
||||
|
|
|
|||
|
|
@ -21,12 +21,12 @@ GET /projects/:id/packages/ml_models/:model_version_id/files/(*path/):file_name
|
|||
|
||||
Parameters:
|
||||
|
||||
| Attribute | Type | Required | Description |
|
||||
|--------------------|-------------------|----------|---------------------------------------------------------------------------------------------------------------------|
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `model_version_id` | integer | yes | The model version ID for the file |
|
||||
| `path` | string | yes | File directory path |
|
||||
| `filename` | string | yes | Filename |
|
||||
| Attribute | Type | Required | Description |
|
||||
|--------------------|-------------------|----------|----------------------------------------------------------------------------------------|
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) |
|
||||
| `model_version_id` | integer | yes | The model version ID for the file |
|
||||
| `path` | string | yes | File directory path |
|
||||
| `filename` | string | yes | Filename |
|
||||
|
||||
```shell
|
||||
curl --header "Authorization: Bearer <your_access_token>" "https://gitlab.example.com/api/v4/projects/:id/packages/ml_models/:model_version_id/files/(*path/):filename
|
||||
|
|
|
|||
|
|
@ -8657,7 +8657,7 @@ paths:
|
|||
- in: path
|
||||
name: id
|
||||
description: The ID of a project or URL-encoded NAMESPACE/PROJECT_NAME of
|
||||
the project owned by the authenticated user
|
||||
the project
|
||||
type: string
|
||||
required: true
|
||||
- in: query
|
||||
|
|
@ -8694,7 +8694,7 @@ paths:
|
|||
- in: path
|
||||
name: id
|
||||
description: The ID of a project or URL-encoded NAMESPACE/PROJECT_NAME of
|
||||
the project owned by the authenticated user
|
||||
the project
|
||||
type: string
|
||||
required: true
|
||||
- name: postApiV4ProjectsIdVariables
|
||||
|
|
@ -8721,7 +8721,7 @@ paths:
|
|||
- in: path
|
||||
name: id
|
||||
description: The ID of a project or URL-encoded NAMESPACE/PROJECT_NAME of
|
||||
the project owned by the authenticated user
|
||||
the project
|
||||
type: string
|
||||
required: true
|
||||
- in: path
|
||||
|
|
@ -8754,7 +8754,7 @@ paths:
|
|||
- in: path
|
||||
name: id
|
||||
description: The ID of a project or URL-encoded NAMESPACE/PROJECT_NAME of
|
||||
the project owned by the authenticated user
|
||||
the project
|
||||
type: string
|
||||
required: true
|
||||
- in: path
|
||||
|
|
@ -8785,7 +8785,7 @@ paths:
|
|||
- in: path
|
||||
name: id
|
||||
description: The ID of a project or URL-encoded NAMESPACE/PROJECT_NAME of
|
||||
the project owned by the authenticated user
|
||||
the project
|
||||
type: string
|
||||
required: true
|
||||
- in: path
|
||||
|
|
|
|||
|
|
@ -0,0 +1,63 @@
|
|||
---
|
||||
stage: Data Stores
|
||||
group: Tenant Scale
|
||||
info: To determine the technical writer assigned to the Stage/Group associated with this page, see https://handbook.gitlab.com/handbook/product/ux/technical-writing/#assignments
|
||||
---
|
||||
|
||||
# Organizations API
|
||||
|
||||
DETAILS:
|
||||
**Tier:** Free, Premium, Ultimate
|
||||
**Offering:** GitLab.com, Self-managed
|
||||
**Status:** Experiment
|
||||
|
||||
## Create organization
|
||||
|
||||
> - [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/470613) in GitLab 17.5 with a [flag](../administration/feature_flags.md) named `allow_organization_creation`. Disabled by default. This feature is an [experiment](../policy/experiment-beta-support.md).
|
||||
|
||||
FLAG:
|
||||
The availability of this feature is controlled by a feature flag.
|
||||
For more information, see the history.
|
||||
|
||||
Creates a new organization.
|
||||
|
||||
This endpoint is an [experiment](../policy/experiment-beta-support.md) and might be changed or removed without notice.
|
||||
|
||||
```plaintext
|
||||
POST /organizations
|
||||
```
|
||||
|
||||
Parameters:
|
||||
|
||||
| Attribute | Type | Required | Description |
|
||||
|---------------|--------|----------|---------------------------------------|
|
||||
| `name` | string | yes | The name of the organization |
|
||||
| `path` | string | yes | The path of the organization |
|
||||
| `description` | string | no | The description of the organization |
|
||||
| `avatar` | file | no | The avatar image for the organization |
|
||||
|
||||
Example request:
|
||||
|
||||
```shell
|
||||
curl --request POST --header "PRIVATE-TOKEN: <your_access_token>" \
|
||||
--form "name=New Organization" \
|
||||
--form "path=new-org" \
|
||||
--form "description=A new organization" \
|
||||
--form "avatar=@/path/to/avatar.png" \
|
||||
"https://gitlab.example.com/api/v4/organizations"
|
||||
```
|
||||
|
||||
Example response:
|
||||
|
||||
```json
|
||||
{
|
||||
"id": 42,
|
||||
"name": "New Organization",
|
||||
"path": "new-org",
|
||||
"description": "A new organization",
|
||||
"created_at": "2024-09-18T02:35:15.371Z",
|
||||
"updated_at": "2024-09-18T02:35:15.371Z",
|
||||
"web_url": "https://gitlab.example.com/-/organizations/new-org",
|
||||
"avatar_url": "https://gitlab.example.com/uploads/-/system/organizations/organization_detail/avatar/42/avatar.png"
|
||||
}
|
||||
```
|
||||
|
|
@ -85,7 +85,7 @@ GET /groups/:id/-/debian_distributions/:codename
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| ---------- | -------------- | -------- | ----------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](../rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](../rest/index.md#namespaced-path-encoding). |
|
||||
| `codename` | string | yes | The `codename` of a distribution. |
|
||||
|
||||
```shell
|
||||
|
|
@ -124,7 +124,7 @@ GET /groups/:id/-/debian_distributions/:codename/key.asc
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| ---------- | -------------- | -------- | ----------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](../rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](../rest/index.md#namespaced-path-encoding). |
|
||||
| `codename` | string | yes | The `codename` of a distribution. |
|
||||
|
||||
```shell
|
||||
|
|
@ -161,7 +161,7 @@ POST /groups/:id/-/debian_distributions
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| ----------------------------- | -------------- | -------- | ----------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](../rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](../rest/index.md#namespaced-path-encoding). |
|
||||
| `codename` | string | yes | The codename of a Debian distribution. |
|
||||
| `suite` | string | no | The suite of the new Debian distribution. |
|
||||
| `origin` | string | no | The origin of the new Debian distribution. |
|
||||
|
|
@ -208,7 +208,7 @@ PUT /groups/:id/-/debian_distributions/:codename
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| ----------------------------- | -------------- | -------- | ----------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](../rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](../rest/index.md#namespaced-path-encoding). |
|
||||
| `codename` | string | yes | The Debian distribution's new codename. |
|
||||
| `suite` | string | no | The Debian distribution's new suite. |
|
||||
| `origin` | string | no | The Debian distribution's new origin. |
|
||||
|
|
@ -255,7 +255,7 @@ DELETE /groups/:id/-/debian_distributions/:codename
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| ---------- | -------------- | -------- | ----------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](../rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](../rest/index.md#namespaced-path-encoding). |
|
||||
| `codename` | string | yes | The codename of the Debian distribution. |
|
||||
|
||||
```shell
|
||||
|
|
|
|||
|
|
@ -84,7 +84,7 @@ GET /projects/:id/debian_distributions/:codename
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| ---------- | -------------- | -------- | ----------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](../rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](../rest/index.md#namespaced-path-encoding). |
|
||||
| `codename` | string | yes | The `codename` of a distribution. |
|
||||
|
||||
```shell
|
||||
|
|
@ -123,7 +123,7 @@ GET /projects/:id/debian_distributions/:codename/key.asc
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| ---------- | -------------- | -------- | ----------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](../rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](../rest/index.md#namespaced-path-encoding). |
|
||||
| `codename` | string | yes | The `codename` of a distribution. |
|
||||
|
||||
```shell
|
||||
|
|
@ -160,7 +160,7 @@ POST /projects/:id/debian_distributions
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| ----------------------------- | -------------- | -------- | ----------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](../rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](../rest/index.md#namespaced-path-encoding). |
|
||||
| `codename` | string | yes | The Debian distribution's codename. |
|
||||
| `suite` | string | no | The new Debian distribution's suite. |
|
||||
| `origin` | string | no | The new Debian distribution's origin. |
|
||||
|
|
@ -207,7 +207,7 @@ PUT /projects/:id/debian_distributions/:codename
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| ----------------------------- | -------------- | -------- | ----------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](../rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](../rest/index.md#namespaced-path-encoding). |
|
||||
| `codename` | string | yes | The Debian distribution's codename. |
|
||||
| `suite` | string | no | The Debian distribution's new suite. |
|
||||
| `origin` | string | no | The Debian distribution's new origin. |
|
||||
|
|
@ -254,7 +254,7 @@ DELETE /projects/:id/debian_distributions/:codename
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| ---------- | -------------- | -------- | ----------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](../rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](../rest/index.md#namespaced-path-encoding). |
|
||||
| `codename` | string | yes | The Debian distribution's codename. |
|
||||
|
||||
```shell
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ DELETE /projects/:id/pages
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | -------------- | -------- | ---------------------------------------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) |
|
||||
|
||||
```shell
|
||||
curl --request 'DELETE' --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/projects/2/pages"
|
||||
|
|
@ -52,7 +52,7 @@ Supported attributes:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | -------------- | -------- | ---------------------------------------- |
|
||||
| `id` | integer/string | Yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer/string | Yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) |
|
||||
|
||||
If successful, returns [`200`](rest/index.md#status-codes) and the following
|
||||
response attributes:
|
||||
|
|
@ -119,7 +119,7 @@ Supported attributes:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------------------------------| -------------- | -------- | --------------------------------------------------------------------------------------------------------------------|
|
||||
| `id` | integer/string | Yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer/string | Yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) |
|
||||
| `pages_unique_domain_enabled` | boolean | No | Whether to use unique domain |
|
||||
| `pages_https_only` | boolean | No | Whether to force HTTPs |
|
||||
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@ GET /projects/:id/pages/domains
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | -------------- | -------- | ---------------------------------------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) |
|
||||
|
||||
```shell
|
||||
curl --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/projects/5/pages/domains"
|
||||
|
|
@ -91,7 +91,7 @@ GET /projects/:id/pages/domains/:domain
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | -------------- | -------- | ---------------------------------------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) |
|
||||
| `domain` | string | yes | The custom domain indicated by the user |
|
||||
|
||||
```shell
|
||||
|
|
@ -133,7 +133,7 @@ POST /projects/:id/pages/domains
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| -------------------| -------------- | -------- | ---------------------------------------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) |
|
||||
| `domain` | string | yes | The custom domain indicated by the user |
|
||||
| `auto_ssl_enabled` | boolean | no | Enables [automatic generation](../user/project/pages/custom_domains_ssl_tls_certification/lets_encrypt_integration.md) of SSL certificates issued by Let's Encrypt for custom domains. |
|
||||
| `certificate` | file/string | no | The certificate in PEM format with intermediates following in most specific to least specific order.|
|
||||
|
|
@ -186,7 +186,7 @@ PUT /projects/:id/pages/domains/:domain
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| ------------------ | -------------- | -------- | ---------------------------------------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) |
|
||||
| `domain` | string | yes | The custom domain indicated by the user |
|
||||
| `auto_ssl_enabled` | boolean | no | Enables [automatic generation](../user/project/pages/custom_domains_ssl_tls_certification/lets_encrypt_integration.md) of SSL certificates issued by Let's Encrypt for custom domains. |
|
||||
| `certificate` | file/string | no | The certificate in PEM format with intermediates following in most specific to least specific order.|
|
||||
|
|
@ -264,7 +264,7 @@ DELETE /projects/:id/pages/domains/:domain
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | -------------- | -------- | ---------------------------------------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) |
|
||||
| `domain` | string | yes | The custom domain indicated by the user |
|
||||
|
||||
```shell
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ GET /projects/:id/badges
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) |
|
||||
| `name` | string | no | Name of the badges to return (case-sensitive). |
|
||||
|
||||
```shell
|
||||
|
|
@ -82,7 +82,7 @@ GET /projects/:id/badges/:badge_id
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) |
|
||||
| `badge_id` | integer | yes | The badge ID |
|
||||
|
||||
```shell
|
||||
|
|
@ -113,7 +113,7 @@ POST /projects/:id/badges
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) |
|
||||
| `link_url` | string | yes | URL of the badge link |
|
||||
| `image_url` | string | yes | URL of the badge image |
|
||||
| `name` | string | no | Name of the badge |
|
||||
|
|
@ -148,7 +148,7 @@ PUT /projects/:id/badges/:badge_id
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) |
|
||||
| `badge_id` | integer | yes | The badge ID |
|
||||
| `link_url` | string | no | URL of the badge link |
|
||||
| `image_url` | string | no | URL of the badge image |
|
||||
|
|
@ -182,7 +182,7 @@ DELETE /projects/:id/badges/:badge_id
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) |
|
||||
| `badge_id` | integer | yes | The badge ID |
|
||||
|
||||
```shell
|
||||
|
|
@ -199,7 +199,7 @@ GET /projects/:id/badges/render
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) |
|
||||
| `link_url` | string | yes | URL of the badge link|
|
||||
| `image_url` | string | yes | URL of the badge image |
|
||||
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ Parameters:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | ------- | -------- | ----------------------------------------------------- |
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) |
|
||||
|
||||
Example request:
|
||||
|
||||
|
|
@ -97,7 +97,7 @@ Parameters:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| ------------ | ------- | -------- | ----------------------------------------------------- |
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) |
|
||||
| `cluster_id` | integer | yes | The ID of the cluster |
|
||||
|
||||
Example request:
|
||||
|
|
@ -191,7 +191,7 @@ Parameters:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| ---------------------------------------------------- | ------- | -------- | ----------------------------------------------------------------------------------------------------- |
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) |
|
||||
| `name` | string | yes | The name of the cluster |
|
||||
| `domain` | string | no | The [base domain](../user/project/clusters/gitlab_managed_clusters.md#base-domain) of the cluster |
|
||||
| `management_project_id` | integer | no | The ID of the [management project](../user/clusters/management_project.md) for the cluster |
|
||||
|
|
@ -288,7 +288,7 @@ Parameters:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| ------------------------------------------- | ------- | -------- | ------------------------------------------------------------------------------------------ |
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) |
|
||||
| `cluster_id` | integer | yes | The ID of the cluster |
|
||||
| `name` | string | no | The name of the cluster |
|
||||
| `domain` | string | no | The [base domain](../user/project/clusters/gitlab_managed_clusters.md#base-domain) of the cluster |
|
||||
|
|
@ -399,7 +399,7 @@ Parameters:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| ------------ | ------- | -------- | ----------------------------------------------------- |
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) |
|
||||
| `cluster_id` | integer | yes | The ID of the cluster |
|
||||
|
||||
Example request:
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ Supported attributes:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
|-------------------------------|-----------------|----------|--------------------------------|
|
||||
| `id` | integer/string | Yes | ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer/string | Yes | ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
|
||||
If successful, returns [`200`](rest/index.md#status-codes) and a list of container registry protection rules.
|
||||
|
||||
|
|
@ -86,7 +86,7 @@ Supported attributes:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
|-----------------------------------|----------------|----------|-------------|
|
||||
| `id` | integer/string | Yes | ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer/string | Yes | ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `repository_path_pattern` | string | Yes | Container repository path pattern protected by the protection rule. For example `flight/flight-*`. Wildcard character `*` allowed. |
|
||||
| `minimum_access_level_for_push` | string | No | Minimum GitLab access level to allow to push container images to the container registry. For example `maintainer`, `owner` or `admin`. Must be provided when `minimum_access_level_for_delete` is not set. |
|
||||
| `minimum_access_level_for_delete` | string | No | Minimum GitLab access level to allow to delete container images in the container registry. For example `maintainer`, `owner`, `admin`. Must be provided when `minimum_access_level_for_push` is not set. |
|
||||
|
|
@ -130,7 +130,7 @@ Supported attributes:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
|-----------------------------------|----------------|----------|-------------|
|
||||
| `id` | integer/string | Yes | ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer/string | Yes | ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `protection_rule_id` | integer | Yes | ID of the protection rule to be updated. |
|
||||
| `repository_path_pattern` | string | No | Container repository path pattern protected by the protection rule. For example `flight/flight-*`. Wildcard character `*` allowed. |
|
||||
| `minimum_access_level_for_push` | string | No | Minimum GitLab access level to allow to push container images to the container registry. For example `maintainer`, `owner` or `admin`. Must be provided when `minimum_access_level_for_delete` is not set. To unset the value, use an empty string `""`. |
|
||||
|
|
@ -173,7 +173,7 @@ Supported attributes:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
|----------------------|----------------|----------|-------------|
|
||||
| `id` | integer/string | Yes | ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer/string | Yes | ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `protection_rule_id` | integer | Yes | ID of the container registry protection rule to be deleted. |
|
||||
|
||||
If successful, returns [`204 No Content`](rest/index.md#status-codes).
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@ POST /projects/:id/export
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | -------------- | -------- | ---------------------------------------- |
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `upload[url]` | string | yes | The URL to upload the project. |
|
||||
| `description` | string | no | Overrides the project description. |
|
||||
| `upload` | hash | no | Hash that contains the information to upload the exported project to a web server. |
|
||||
|
|
@ -88,7 +88,7 @@ GET /projects/:id/export
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | -------------- | -------- | ---------------------------------------- |
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
|
||||
```shell
|
||||
curl --header "PRIVATE-TOKEN: <your_access_token>" \
|
||||
|
|
@ -137,7 +137,7 @@ GET /projects/:id/export/download
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | ----------------- | -------- | ---------------------------------------- |
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
|
||||
```shell
|
||||
curl --header "PRIVATE-TOKEN: <your_access_token>" --remote-header-name \
|
||||
|
|
@ -439,7 +439,7 @@ GET /projects/:id/import
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | -------------- | -------- | ---------------------------------------- |
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
|
||||
```shell
|
||||
curl --header "PRIVATE-TOKEN: <your_access_token>" \
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ Supported attributes:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
|-------------------------------|-----------------|----------|--------------------------------|
|
||||
| `id` | integer/string | Yes | ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer/string | Yes | ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
|
||||
If successful, returns [`200`](rest/index.md#status-codes) and a list of package protection rules.
|
||||
|
||||
|
|
@ -84,7 +84,7 @@ Supported attributes:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
|---------------------------------------|-----------------|----------|--------------------------------|
|
||||
| `id` | integer/string | Yes | ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer/string | Yes | ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `package_name_pattern` | string | Yes | Package name protected by the protection rule. For example `@my-scope/my-package-*`. Wildcard character `*` allowed. |
|
||||
| `package_type` | string | Yes | Package type protected by the protection rule. For example `npm`. |
|
||||
| `minimum_access_level_for_push` | string | Yes | Minimum GitLab access level able to push a package. Must be at least `maintainer`. For example `maintainer`, `owner` or `admin`. |
|
||||
|
|
@ -126,7 +126,7 @@ Supported attributes:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
|---------------------------------------|-----------------|----------|--------------------------------|
|
||||
| `id` | integer/string | Yes | ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer/string | Yes | ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `package_protection_rule_id` | integer | Yes | ID of the package protection rule to be updated. |
|
||||
| `package_name_pattern` | string | No | Package name protected by the protection rule. For example `@my-scope/my-package-*`. Wildcard character `*` allowed. |
|
||||
| `package_type` | string | No | Package type protected by the protection rule. For example `npm`. |
|
||||
|
|
@ -167,7 +167,7 @@ Supported attributes:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
|-------------------------------|-----------------|----------|--------------------------------|
|
||||
| `id` | integer/string | Yes | ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer/string | Yes | ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `package_protection_rule_id` | integer | Yes | ID of the package protection rule to be deleted. |
|
||||
|
||||
If successful, returns [`204 No Content`](rest/index.md#status-codes).
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ POST /projects/:id/export_relations
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
|-----------|----------------|----------|----------------------------------------------------|
|
||||
| `id` | integer/string | yes | ID of the project owned by the authenticated user. |
|
||||
| `id` | integer/string | yes | ID of the project. |
|
||||
| `batched` | boolean | no | Whether to export in batches. |
|
||||
|
||||
```shell
|
||||
|
|
@ -54,7 +54,7 @@ GET /projects/:id/export_relations/status
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
|------------|----------------|----------|----------------------------------------------------|
|
||||
| `id` | integer/string | yes | ID of the project owned by the authenticated user. |
|
||||
| `id` | integer/string | yes | ID of the project. |
|
||||
| `relation` | string | no | Name of the project top-level relation to view. |
|
||||
|
||||
```shell
|
||||
|
|
@ -108,7 +108,7 @@ GET /projects/:id/export_relations/download
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
|----------------|----------------|----------|-----------------------------------------------------|
|
||||
| `id` | integer/string | yes | ID of the project owned by the authenticated user. |
|
||||
| `id` | integer/string | yes | ID of the project. |
|
||||
| `relation` | string | yes | Name of the project top-level relation to download. |
|
||||
| `batched` | boolean | no | Whether the export is batched. |
|
||||
| `batch_number` | integer | no | Number of export batch to download. |
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ Parameters:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
|-----------|----------------|----------|-------------|
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
|
||||
## Single snippet
|
||||
|
||||
|
|
@ -53,7 +53,7 @@ Parameters:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
|--------------|----------------|----------|-------------|
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `snippet_id` | integer | yes | The ID of a project's snippet. |
|
||||
|
||||
```json
|
||||
|
|
@ -92,7 +92,7 @@ Parameters:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
|:------------------|:----------------|:---------|:------------|
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `files:content` | string | yes | Content of the snippet file. |
|
||||
| `files:file_path` | string | yes | File path of the snippet file. |
|
||||
| `title` | string | yes | Title of a snippet. |
|
||||
|
|
@ -141,7 +141,7 @@ Parameters:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
|:----------------------|:----------------|:---------|:------------|
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `files:action` | string | yes | Type of action to perform on the file. One of: `create`, `update`, `delete`, `move`. |
|
||||
| `snippet_id` | integer | yes | The ID of a project's snippet. |
|
||||
| `content` | string | no | Deprecated: Use `files` instead. Content of a snippet. |
|
||||
|
|
@ -192,7 +192,7 @@ Parameters:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
|:-------------|:---------------|:---------|:------------|
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `snippet_id` | integer | yes | The ID of a project's snippet. |
|
||||
|
||||
Example request:
|
||||
|
|
@ -214,7 +214,7 @@ Parameters:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
|:-------------|:---------------|:---------|:----------------------------------------------------------------------------------------------------------------|
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `snippet_id` | integer | yes | The ID of a project's snippet. |
|
||||
|
||||
Example request:
|
||||
|
|
@ -236,7 +236,7 @@ Parameters:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
|:-------------|:---------------|:---------|:------------|
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `file_path` | string | yes | The URL-encoded path to the file, for example, `snippet%2Erb`. |
|
||||
| `ref` | string | yes | The name of a branch, tag or commit, for example, `main`. |
|
||||
| `snippet_id` | integer | yes | The ID of a project's snippet. |
|
||||
|
|
@ -258,7 +258,7 @@ GET /projects/:id/snippets/:snippet_id/user_agent_detail
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
|--------------|----------------|----------|-------------|
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `snippet_id` | Integer | yes | The ID of a snippet. |
|
||||
|
||||
Example request:
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ GET /projects/:id/vulnerabilities
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| ------------- | -------------- | -------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
|
||||
```shell
|
||||
curl --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/projects/4/vulnerabilities"
|
||||
|
|
|
|||
|
|
@ -2112,7 +2112,7 @@ Parameters:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
|:-------------------------|:-----------------|:---------|:------------|
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) |
|
||||
| `search` | string | no | Return the list of authorized groups matching the search criteria |
|
||||
| `min_access_level` | integer | no | Limit to groups where current user has at least the specified [role (`access_level`)](members.md#roles) |
|
||||
| `relation` | array of strings | no | Filter the groups by relation (direct or inherited) |
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ GET /projects/:id/protected_branches
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) |
|
||||
| `search` | string | no | Name or part of the name of protected branches to be searched for |
|
||||
|
||||
```shell
|
||||
|
|
@ -151,7 +151,7 @@ GET /projects/:id/protected_branches/:name
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) |
|
||||
| `name` | string | yes | The name of the branch or wildcard |
|
||||
|
||||
```shell
|
||||
|
|
@ -230,7 +230,7 @@ curl --request POST --header "PRIVATE-TOKEN: <your_access_token>" "https://gitla
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| -------------------------------------------- | ---- | -------- | ----------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `name` | string | yes | The name of the branch or wildcard. |
|
||||
| `allow_force_push` | boolean | no | When enabled, members who can push to this branch can also force push. (default: `false`) |
|
||||
| `allowed_to_merge` | array | no | Array of merge access levels, with each described by a hash of the form `{user_id: integer}`, `{group_id: integer}`, or `{access_level: integer}`. Premium and Ultimate only. |
|
||||
|
|
@ -450,7 +450,7 @@ curl --request DELETE --header "PRIVATE-TOKEN: <your_access_token>" "https://git
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) |
|
||||
| `name` | string | yes | The name of the branch |
|
||||
|
||||
## Update a protected branch
|
||||
|
|
@ -469,7 +469,7 @@ curl --request PATCH --header "PRIVATE-TOKEN: <your_access_token>" "https://gitl
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| -------------------------------------------- | ---- | -------- | ----------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `name` | string | yes | The name of the branch or wildcard. |
|
||||
| `allow_force_push` | boolean | no | When enabled, members who can push to this branch can also force push. |
|
||||
| `allowed_to_merge` | array | no | Array of merge access levels, with each described by a hash of the form `{user_id: integer}`, `{group_id: integer}`, or `{access_level: integer}`. Premium and Ultimate only. |
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ GET /projects/:id/protected_environments
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
|
||||
```shell
|
||||
curl --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/projects/5/protected_environments/"
|
||||
|
|
@ -78,7 +78,7 @@ GET /projects/:id/protected_environments/:name
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) |
|
||||
| `name` | string | yes | The name of the protected environment |
|
||||
|
||||
```shell
|
||||
|
|
@ -114,7 +114,7 @@ POST /projects/:id/protected_environments
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `name` | string | yes | The name of the environment. |
|
||||
| `deploy_access_levels` | array | yes | Array of access levels allowed to deploy, with each described by a hash. |
|
||||
| `approval_rules` | array | no | Array of access levels allowed to approve, with each described by a hash. See [Multiple approval rules](../ci/environments/deployment_approvals.md#add-multiple-approval-rules). |
|
||||
|
|
@ -183,7 +183,7 @@ PUT /projects/:id/protected_environments/:name
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `name` | string | yes | The name of the environment. |
|
||||
| `deploy_access_levels` | array | no | Array of access levels allowed to deploy, with each described by a hash. |
|
||||
| `approval_rules` | array | no | Array of access levels allowed to approve, with each described by a hash. See [Multiple approval rules](../ci/environments/deployment_approvals.md#add-multiple-approval-rules) for more information. |
|
||||
|
|
@ -352,7 +352,7 @@ DELETE /projects/:id/protected_environments/:name
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `name` | string | yes | The name of the protected environment. |
|
||||
|
||||
```shell
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ GET /projects/:id/protected_tags
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
|
||||
```shell
|
||||
curl --header "PRIVATE-TOKEN: <your_access_token>" \
|
||||
|
|
@ -72,7 +72,7 @@ GET /projects/:id/protected_tags/:name
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `name` | string | yes | The name of the tag or wildcard. |
|
||||
|
||||
```shell
|
||||
|
|
@ -122,7 +122,7 @@ curl --request POST --header "PRIVATE-TOKEN: <your_access_token>" \
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `name` | string | yes | The name of the tag or wildcard. |
|
||||
| `allowed_to_create` | array | no | Array of access levels allowed to create tags, with each described by a hash of the form `{user_id: integer}`, `{group_id: integer}`, or `{access_level: integer}`. |
|
||||
| `create_access_level` | string | no | Access levels allowed to create. Default: `40`, for Maintainer role. |
|
||||
|
|
@ -157,7 +157,7 @@ curl --request DELETE --header "PRIVATE-TOKEN: <your_access_token>" \
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `name` | string | yes | The name of the tag. |
|
||||
|
||||
## Related topics
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ Supported attributes:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| :---------- | :------------- | :------- | :---------- |
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `page_token` | string | no | The tree record ID at which to fetch the next page. Used only with keyset pagination. |
|
||||
| `pagination` | string | no | If `keyset`, use the [keyset-based pagination method](rest/index.md#keyset-based-pagination). |
|
||||
| `path` | string | no | The path inside the repository. Used to get content of subdirectories. |
|
||||
|
|
@ -111,7 +111,7 @@ Supported attributes:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| :-------- | :------------- | :------- | :---------- |
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `sha` | string | yes | The blob SHA. |
|
||||
|
||||
## Raw blob content
|
||||
|
|
@ -127,7 +127,7 @@ Supported attributes:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| :-------- | :------- | :------- | :---------- |
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `sha` | string | yes | The blob SHA. |
|
||||
|
||||
## Get file archive
|
||||
|
|
@ -158,7 +158,7 @@ Supported attributes:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
|:------------|:---------------|:---------|:----------------------|
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `path` | string | no | The subpath of the repository to download. If an empty string, defaults to the whole repository. |
|
||||
| `sha` | string | no | The commit SHA to download. A tag, branch reference, or SHA can be used. If not specified, defaults to the tip of the default branch. |
|
||||
|
||||
|
|
@ -183,7 +183,7 @@ Supported attributes:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| :--------- | :------------- | :------- | :---------- |
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `from` | string | yes | The commit SHA or branch name. |
|
||||
| `to` | string | yes | The commit SHA or branch name. |
|
||||
| `from_project_id` | integer | no | The ID to compare from. |
|
||||
|
|
@ -247,7 +247,7 @@ Supported attributes:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| :--------- | :------------- | :------- | :---------- |
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `ref` | string | no | The name of a repository branch or tag. If not given, the default branch. |
|
||||
| `order_by` | string | no | Return contributors ordered by `name`, `email`, or `commits` (orders by commit date) fields. Default is `commits`. |
|
||||
| `sort` | string | no | Return contributors sorted in `asc` or `desc` order. Default is `asc`. |
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ curl --header "PRIVATE-TOKEN: <your_access_token>" \
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
|-------------|----------------|----------|-------------|
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `file_path` | string | yes | URL encoded full path to new file, such as `lib%2Fclass%2Erb`. |
|
||||
| `ref` | string | yes | The name of branch, tag or commit. |
|
||||
|
||||
|
|
@ -111,7 +111,7 @@ GET /projects/:id/repository/files/:file_path/blame
|
|||
| Attribute | Type | Required | Description |
|
||||
|-----------------|-------------------|----------|-------------|
|
||||
| `file_path` | string | yes | URL-encoded full path to new file, such as`lib%2Fclass%2Erb`. |
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `range[end]` | integer | yes | The last line of the range to blame. |
|
||||
| `range[start]` | integer | yes | The first line of the range to blame. |
|
||||
| `ref` | string | yes | The name of branch, tag or commit. |
|
||||
|
|
@ -226,7 +226,7 @@ GET /projects/:id/repository/files/:file_path/raw
|
|||
| Attribute | Type | Required | Description |
|
||||
|-------------|----------------|----------|------------|
|
||||
| `file_path` | string | yes | URL-encoded full path to new file, such as `lib%2Fclass%2Erb`. |
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `lfs` | boolean | no | Determines if the response should be Git LFS file contents, rather than the pointer. Ignored if the file is not tracked by Git LFS. Defaults to `false`. |
|
||||
| `ref` | string | no | The name of branch, tag or commit. Default is the `HEAD` of the project. |
|
||||
|
||||
|
|
@ -253,7 +253,7 @@ POST /projects/:id/repository/files/:file_path
|
|||
| `commit_message` | string | yes | The commit message. |
|
||||
| `content` | string | yes | The file's content. |
|
||||
| `file_path` | string | yes | URL-encoded full path to new file. For example: `lib%2Fclass%2Erb`. |
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `author_email` | string | no | The commit author's email address. |
|
||||
| `author_name` | string | no | The commit author's name. |
|
||||
| `encoding` | string | no | Change encoding to `base64`. Default is `text`. |
|
||||
|
|
@ -293,7 +293,7 @@ PUT /projects/:id/repository/files/:file_path
|
|||
| `commit_message` | string | yes | The commit message. |
|
||||
| `content` | string | yes | The file's content. |
|
||||
| `file_path` | string | yes | URL-encoded full path to new file. For example: `lib%2Fclass%2Erb`. |
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) |
|
||||
| `author_email` | string | no | The commit author's email address. |
|
||||
| `author_name` | string | no | The commit author's name. |
|
||||
| `encoding` | string | no | Change encoding to `base64`. Default is `text`. |
|
||||
|
|
@ -342,7 +342,7 @@ DELETE /projects/:id/repository/files/:file_path
|
|||
| `branch` | string | yes | Name of the new branch to create. The commit is added to this branch. |
|
||||
| `commit_message` | string | yes | The commit message. |
|
||||
| `file_path` | string | yes | URL-encoded full path to new file. For example: `lib%2Fclass%2Erb`. |
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `author_email` | string | no | The commit author's email address. |
|
||||
| `author_name` | string | no | The commit author's name. |
|
||||
| `last_commit_id` | string | no | Last known file commit ID. |
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ PUT /projects/:id/repository/submodules/:submodule
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) |
|
||||
| `submodule` | string | yes | URL-encoded full path to the submodule. For example, `lib%2Fclass%2Erb` |
|
||||
| `branch` | string | yes | Name of the branch to commit into |
|
||||
| `commit_sha` | string | yes | Full commit SHA to update the submodule to |
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ GET /projects/:id/resource_groups
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
|-----------|---------|----------|---------------------|
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) |
|
||||
|
||||
```shell
|
||||
curl --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/projects/1/resource_groups"
|
||||
|
|
@ -48,7 +48,7 @@ GET /projects/:id/resource_groups/:key
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
|-----------|---------|----------|---------------------|
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) |
|
||||
| `key` | string | yes | The key of the resource group |
|
||||
|
||||
```shell
|
||||
|
|
@ -75,7 +75,7 @@ GET /projects/:id/resource_groups/:key/upcoming_jobs
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
|-----------|---------|----------|---------------------|
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) |
|
||||
| `key` | string | yes | The key of the resource group |
|
||||
|
||||
```shell
|
||||
|
|
@ -174,7 +174,7 @@ PUT /projects/:id/resource_groups/:key
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------------- | ------- | --------------------------------- | ------------------------------- |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) |
|
||||
| `key` | string | yes | The key of the resource group |
|
||||
| `process_mode` | string | no | The process mode of the resource group. One of `unordered`, `oldest_first` or `newest_first`. Read [process modes](../ci/resource_groups/index.md#process-modes) for more information. |
|
||||
|
||||
|
|
|
|||
|
|
@ -604,7 +604,7 @@ GET /projects/:id/runners?tag_list=tag1,tag2
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
|------------------|----------------|----------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) |
|
||||
| `scope` | string | no | Deprecated: Use `type` or `status` instead. The scope of runners to return, one of: `active`, `paused`, `online` and `offline`; showing all runners if none provided |
|
||||
| `type` | string | no | The type of runners to return, one of: `instance_type`, `group_type`, `project_type` |
|
||||
| `status` | string | no | The status of runners to return, one of: `online`, `offline`, `stale`, or `never_contacted`.<br/>Other possible values are the deprecated `active` and `paused`.<br/>Requesting `offline` runners might also return `stale` runners because `stale` is included in `offline`. |
|
||||
|
|
@ -679,7 +679,7 @@ POST /projects/:id/runners
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
|-------------|---------|----------|---------------------|
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) |
|
||||
| `runner_id` | integer | yes | The ID of a runner |
|
||||
|
||||
```shell
|
||||
|
|
@ -729,7 +729,7 @@ DELETE /projects/:id/runners/:runner_id
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
|-------------|---------|----------|---------------------|
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user |
|
||||
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) |
|
||||
| `runner_id` | integer | yes | The ID of a runner |
|
||||
|
||||
```shell
|
||||
|
|
@ -754,7 +754,7 @@ GET /groups/:id/runners?tag_list=tag1,tag2
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
|------------------|----------------|----------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||
| `id` | integer | yes | The ID of the group owned by the authenticated user |
|
||||
| `id` | integer | yes | The ID of the group |
|
||||
| `type` | string | no | The type of runners to return, one of: `instance_type`, `group_type`, `project_type`. The `project_type` value is [deprecated](https://gitlab.com/gitlab-org/gitlab/-/issues/351466) and will be removed in GitLab 15.0 |
|
||||
| `status` | string | no | The status of runners to return, one of: `online`, `offline`, `stale`, or `never_contacted`.<br/>Other possible values are the deprecated `active` and `paused`.<br/>Requesting `offline` runners might also return `stale` runners because `stale` is included in `offline`. |
|
||||
| `paused` | boolean | no | Whether to include only runners that are accepting or ignoring new jobs |
|
||||
|
|
|
|||
|
|
@ -458,7 +458,7 @@ GET /groups/:id/search
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | ---- | -------- | -------------|
|
||||
| `id` | integer or string | Yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer or string | Yes | The ID or [URL-encoded path of the group](rest/index.md#namespaced-path-encoding). |
|
||||
| `scope` | string | Yes | The scope to search in. Values include `projects`, `issues`, `merge_requests`, `milestones`, and `users`. Additional scopes are `wiki_blobs`, `commits`, `blobs`, and `notes`. |
|
||||
| `search` | string | Yes | The search term. |
|
||||
| `confidential` | boolean | No | Filter by confidentiality. Supports only `issues` scope; other scopes are ignored. |
|
||||
|
|
@ -853,7 +853,7 @@ GET /projects/:id/search
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ------------|
|
||||
| `id` | integer or string | Yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer or string | Yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `scope` | string | Yes | The scope to search in. Values include `issues`, `merge_requests`, `milestones`, and `users`. Additional scopes are `wiki_blobs`, `commits`, `blobs`, and `notes`. |
|
||||
| `search` | string | Yes | The search term. |
|
||||
| `confidential` | boolean | No | Filter by confidentiality. Supports `issues` scope; other scopes are ignored. |
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ Parameters:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
|------------|-------------------|----------|-------------|
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `order_by` | string | no | Return tags ordered by `name`, `updated`, or `version`. Default is `updated`. |
|
||||
| `sort` | string | no | Return tags sorted in `asc` or `desc` order. Default is `desc`. |
|
||||
| `search` | string | no | Return a list of tags matching the search criteria. You can use `^term` and `term$` to find tags that begin and end with `term`. No other regular expressions are supported. |
|
||||
|
|
@ -90,7 +90,7 @@ Parameters:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
|------------|-------------------|----------|-------------|
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `tag_name` | string | yes | The name of a tag. |
|
||||
|
||||
```shell
|
||||
|
|
@ -141,7 +141,7 @@ Parameters:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
|------------|-------------------|----------|-------------|
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `tag_name` | string | yes | The name of a tag. |
|
||||
| `ref` | string | yes | Create a tag from a commit SHA, another tag name, or branch name. |
|
||||
| `message` | string | no | Create an annotated tag. |
|
||||
|
|
@ -206,7 +206,7 @@ Parameters:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
|------------|-------------------|----------|-------------|
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `tag_name` | string | yes | The name of a tag. |
|
||||
|
||||
## Get X.509 signature of a tag
|
||||
|
|
@ -224,7 +224,7 @@ Parameters:
|
|||
|
||||
| Attribute | Type | Required | Description |
|
||||
|------------|-------------------|----------|-------------|
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding) owned by the authenticated user. |
|
||||
| `id` | integer or string | yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-path-encoding). |
|
||||
| `tag_name` | string | yes | The name of a tag. |
|
||||
|
||||
```shell
|
||||
|
|
|
|||
|
|
@ -131,3 +131,5 @@ Most uploads receive assistance from Workhorse in some way.
|
|||
where GitLab accepts the file but has not yet processed it.
|
||||
- With direct upload, Workhorse can both pre-process the file and upload it to object storage.
|
||||
Uploading a large file to object storage takes time; by doing this in Workhorse we avoid the Puma request timeout.
|
||||
|
||||
For additional information about uploads, see [Workhorse handlers](../workhorse/handlers.md).
|
||||
|
|
|
|||
|
|
@ -24,6 +24,13 @@ GitLab supports centralized application and infrastructure logs collection, stor
|
|||
GitLab Logging provides insight about the operational health of monitored systems.
|
||||
Use logs to learn more about your systems and applications in a given range of time.
|
||||
|
||||
## Logs ingestion limits
|
||||
|
||||
Logs ingest a maximum of 102,400 bytes per minute.
|
||||
When the limit is exceeded, a `429 Too Many Requests` response is returned.
|
||||
|
||||
To request a limit increase to 1,048,576 bytes per minute, contact [GitLab support](https://about.gitlab.com/support/).
|
||||
|
||||
## Configure logging
|
||||
|
||||
Configure logging to enable it for a project.
|
||||
|
|
|
|||
|
|
@ -100,6 +100,13 @@ The following table shows what type of aggregation is used for each search perio
|
|||
| More than one hour and less than 72 hours | Hourly |
|
||||
| More than 72 hours | Daily |
|
||||
|
||||
### Metrics ingestion limits
|
||||
|
||||
Metrics ingest a maximum of 102,400 bytes per minute.
|
||||
When the limit is exceeded, a `429 Too Many Requests` response is returned.
|
||||
|
||||
To request a limit increase to 1,048,576 bytes per minute, contact [GitLab support](https://about.gitlab.com/support/).
|
||||
|
||||
### Data retention
|
||||
|
||||
GitLab has a retention limit of 30 days for all ingested metrics.
|
||||
|
|
|
|||
|
|
@ -53,6 +53,7 @@ You can set these rate limits in the **Admin** area of your instance:
|
|||
- [Incident management rate limits](../administration/settings/incident_management_rate_limits.md)
|
||||
- [Projects API rate limits](../administration/settings/rate_limit_on_projects_api.md)
|
||||
- [Groups API rate limits](../administration/settings/rate_limit_on_groups_api.md)
|
||||
- [Organizations API rate limits](../administration/settings/rate_limit_on_organizations_api.md)
|
||||
|
||||
You can set these rate limits using the Rails console:
|
||||
|
||||
|
|
|
|||
|
|
@ -306,6 +306,7 @@ module API
|
|||
mount ::API::NpmProjectPackages
|
||||
mount ::API::NugetGroupPackages
|
||||
mount ::API::NugetProjectPackages
|
||||
mount ::API::Organizations
|
||||
mount ::API::PackageFiles
|
||||
mount ::API::Pages
|
||||
mount ::API::PagesDomains
|
||||
|
|
|
|||
|
|
@ -0,0 +1,23 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module API
|
||||
module Entities
|
||||
module Organizations
|
||||
class Organization < Grape::Entity
|
||||
expose :id, documentation: { type: 'integer', example: 1 }
|
||||
expose :name, documentation: { type: 'string', example: 'GitLab' }
|
||||
expose :path, documentation: { type: 'string', example: 'gitlab' }
|
||||
expose :description, documentation: { type: 'string', example: 'My description' }
|
||||
expose :created_at, documentation: { type: 'dateTime', example: '2022-02-24T20:22:30.097Z' }
|
||||
expose :updated_at, documentation: { type: 'dateTime', example: '2022-02-24T20:22:30.097Z' }
|
||||
expose :web_url, documentation: { type: "string", example: "https://example.com/-/organizations/gitlab" }
|
||||
expose(:avatar_url, documentation: {
|
||||
type: 'string',
|
||||
example: 'https://example.com/uploads/-/system/organizations/organization_detail/avatar/1/avatar.png'
|
||||
}) do |organization, _options|
|
||||
organization.avatar_url(only_path: false)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
@ -202,7 +202,7 @@ module API
|
|||
end
|
||||
|
||||
def find_organization!(id)
|
||||
organization = Organizations::Organization.find_by_id(id)
|
||||
organization = ::Organizations::Organization.find_by_id(id)
|
||||
check_organization_access(organization)
|
||||
end
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,47 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module API
|
||||
class Organizations < ::API::Base
|
||||
feature_category :cell
|
||||
|
||||
before { authenticate! }
|
||||
|
||||
helpers do
|
||||
def authorize_organization_creation!
|
||||
authorize! :create_organization
|
||||
end
|
||||
end
|
||||
|
||||
resource :organizations do
|
||||
desc 'Create an organization' do
|
||||
detail 'This feature was introduced in GitLab 17.5. \
|
||||
This feature is currently in an experimental state. \
|
||||
This feature is behind the `allow_organization_creation` feature flag.'
|
||||
success Entities::Organizations::Organization
|
||||
tags %w[organizations]
|
||||
end
|
||||
params do
|
||||
requires :name, type: String, desc: 'The name of the organization'
|
||||
requires :path, type: String, desc: 'The path of the organization'
|
||||
optional :description, type: String, desc: 'The description of the organization'
|
||||
optional :avatar, type: ::API::Validations::Types::WorkhorseFile, desc: 'The avatar image for the organization',
|
||||
documentation: { type: 'file' }
|
||||
end
|
||||
post do
|
||||
forbidden! unless Feature.enabled?(:allow_organization_creation, current_user)
|
||||
check_rate_limit!(:create_organization_api, scope: current_user)
|
||||
authorize_organization_creation!
|
||||
|
||||
response = ::Organizations::CreateService
|
||||
.new(current_user: current_user, params: declared_params(include_missing: false))
|
||||
.execute
|
||||
|
||||
if response.success?
|
||||
present response[:organization], with: Entities::Organizations::Organization
|
||||
else
|
||||
render_api_error!(response.message, :bad_request)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
@ -34,6 +34,7 @@ module Gitlab
|
|||
group_projects_api: { threshold: -> { application_settings.group_projects_api_limit }, interval: 1.minute },
|
||||
groups_api: { threshold: -> { application_settings.groups_api_limit }, interval: 1.minute },
|
||||
project_api: { threshold: -> { application_settings.project_api_limit }, interval: 1.minute },
|
||||
create_organization_api: { threshold: -> { application_settings.create_organization_api_limit }, interval: 1.minute },
|
||||
project_invited_groups_api: { threshold: -> { application_settings.project_invited_groups_api_limit }, interval: 1.minute },
|
||||
projects_api: { threshold: -> { application_settings.projects_api_limit }, interval: 10.minutes },
|
||||
user_contributed_projects_api: { threshold: -> { application_settings.user_contributed_projects_api_limit }, interval: 1.minute },
|
||||
|
|
|
|||
|
|
@ -71,6 +71,8 @@ module Gitlab
|
|||
)
|
||||
@online = true
|
||||
@last_checked_at = Time.zone.now
|
||||
@lag_time = nil
|
||||
@lag_size = nil
|
||||
|
||||
# Randomly somewhere in between interval and 2*interval we'll refresh the status of the host
|
||||
interval = load_balancer.configuration.replica_check_interval
|
||||
|
|
@ -141,7 +143,9 @@ module Gitlab
|
|||
event: :host_online,
|
||||
message: 'Host is online after replica status check',
|
||||
db_host: @host,
|
||||
db_port: @port
|
||||
db_port: @port,
|
||||
lag_time: @lag_time,
|
||||
lag_size: @lag_size
|
||||
)
|
||||
# Always log if the host goes offline
|
||||
elsif !@online
|
||||
|
|
@ -149,7 +153,9 @@ module Gitlab
|
|||
event: :host_offline,
|
||||
message: 'Host is offline after replica status check',
|
||||
db_host: @host,
|
||||
db_port: @port
|
||||
db_port: @port,
|
||||
lag_time: @lag_time,
|
||||
lag_size: @lag_size
|
||||
)
|
||||
end
|
||||
|
||||
|
|
@ -174,24 +180,24 @@ module Gitlab
|
|||
end
|
||||
|
||||
def replication_lag_below_threshold?
|
||||
lag_time = replication_lag_time
|
||||
return false unless lag_time
|
||||
return true if lag_time <= load_balancer.configuration.max_replication_lag_time
|
||||
@lag_time = replication_lag_time
|
||||
return false unless @lag_time
|
||||
return true if @lag_time <= load_balancer.configuration.max_replication_lag_time
|
||||
|
||||
if ignore_replication_lag_time?
|
||||
::Gitlab::Database::LoadBalancing::Logger.info(
|
||||
event: :replication_lag_ignored,
|
||||
lag_time: lag_time,
|
||||
lag_time: @lag_time,
|
||||
message: 'Replication lag is treated as low because of load_balancer_ignore_replication_lag_time feature flag'
|
||||
)
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
if double_replication_lag_time? && lag_time <= (load_balancer.configuration.max_replication_lag_time * 2)
|
||||
if double_replication_lag_time? && @lag_time <= (load_balancer.configuration.max_replication_lag_time * 2)
|
||||
::Gitlab::Database::LoadBalancing::Logger.info(
|
||||
event: :replication_lag_below_double,
|
||||
lag_time: lag_time,
|
||||
lag_time: @lag_time,
|
||||
message: 'Replication lag is treated as low because of load_balancer_double_replication_lag_time feature flag'
|
||||
)
|
||||
|
||||
|
|
@ -211,8 +217,8 @@ module Gitlab
|
|||
# of the replica is small enough for the replica to be useful. We
|
||||
# only do this if we haven't replicated in a while so we only need
|
||||
# to connect to the primary when truly necessary.
|
||||
if (lag_size = replication_lag_size)
|
||||
lag_size <= load_balancer.configuration.max_replication_difference
|
||||
if (@lag_size = replication_lag_size)
|
||||
@lag_size <= load_balancer.configuration.max_replication_difference
|
||||
else
|
||||
false
|
||||
end
|
||||
|
|
|
|||
|
|
@ -3892,6 +3892,9 @@ msgstr ""
|
|||
msgid "AdminSelfHostedModels|An error occurred while loading self-hosted models. Please try again."
|
||||
msgstr ""
|
||||
|
||||
msgid "AdminSelfHostedModels|An error occurred while updating the sefl-hosted model, please try again."
|
||||
msgstr ""
|
||||
|
||||
msgid "AdminSelfHostedModels|By enabling self-hosted models, you accept the %{link_start}GitLab Testing Agreement%{link_end}."
|
||||
msgstr ""
|
||||
|
||||
|
|
@ -3967,6 +3970,9 @@ msgstr ""
|
|||
msgid "AdminSelfHostedModels|Self-hosted models are an experimental feature."
|
||||
msgstr ""
|
||||
|
||||
msgid "AdminSelfHostedModels|Successfully updated %{mainFeature} / %{title}"
|
||||
msgstr ""
|
||||
|
||||
msgid "AdminSelfHostedModels|There was an error saving the self-hosted model. Please try again."
|
||||
msgstr ""
|
||||
|
||||
|
|
@ -33107,6 +33113,9 @@ msgstr ""
|
|||
msgid "Maximum requests to the %{api_name} API per %{timeframe} per IP address for unauthenticated requests"
|
||||
msgstr ""
|
||||
|
||||
msgid "Maximum requests to the %{api_name} API per %{timeframe} per user"
|
||||
msgstr ""
|
||||
|
||||
msgid "Maximum requests to the %{api_name} API per %{timeframe} per user for authenticated requests"
|
||||
msgstr ""
|
||||
|
||||
|
|
@ -38015,6 +38024,9 @@ msgstr ""
|
|||
msgid "Organizations"
|
||||
msgstr ""
|
||||
|
||||
msgid "Organizations API rate limits"
|
||||
msgstr ""
|
||||
|
||||
msgid "Organization|%{linkStart}Organizations%{linkEnd} are a top-level container to hold your groups and projects."
|
||||
msgstr ""
|
||||
|
||||
|
|
@ -51204,6 +51216,9 @@ msgstr ""
|
|||
msgid "Set the per-user rate limit for notes created by web or API requests."
|
||||
msgstr ""
|
||||
|
||||
msgid "Set the per-user rate limits for the requests to Organizations API."
|
||||
msgstr ""
|
||||
|
||||
msgid "Set this issue as blocked by %{target}."
|
||||
msgstr ""
|
||||
|
||||
|
|
|
|||
|
|
@ -74,7 +74,7 @@
|
|||
"@gitlab/fonts": "^1.3.0",
|
||||
"@gitlab/query-language": "^0.0.5-a-20240903",
|
||||
"@gitlab/svgs": "3.116.0",
|
||||
"@gitlab/ui": "93.2.0",
|
||||
"@gitlab/ui": "94.0.0",
|
||||
"@gitlab/web-ide": "^0.0.1-dev-20240909013227",
|
||||
"@mattiasbuelens/web-streams-adapter": "^0.1.0",
|
||||
"@rails/actioncable": "7.0.8-4",
|
||||
|
|
|
|||
|
|
@ -878,6 +878,20 @@ RSpec.describe 'Admin updates settings', feature_category: :shared do
|
|||
end
|
||||
end
|
||||
|
||||
describe 'organizations API rate limits' do
|
||||
let_it_be(:network_settings_section) { 'organizations-api-limits-settings' }
|
||||
|
||||
context 'for POST /organizations API requests' do
|
||||
let(:rate_limit_field) do
|
||||
format(_('Maximum requests to the %{api_name} API per %{timeframe} per user'), api_name: 'POST /organizations', timeframe: 'minute')
|
||||
end
|
||||
|
||||
let(:application_setting_key) { :create_organization_api_limit }
|
||||
|
||||
it_behaves_like 'API rate limit setting'
|
||||
end
|
||||
end
|
||||
|
||||
describe 'groups API rate limits' do
|
||||
let_it_be(:network_settings_section) { 'groups-api-limits-settings' }
|
||||
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue