Create a new application FE version
POST /api/v4/applications
This feature was introduced in GitLab 10.5
Request body (application/json)
| Property | Type | Description |
|---|---|---|
confidential | Boolean | The application is used where the client secret can be kept confidential. Default: true |
nameRequired | String | Name of the application Example: My |
redirect_Required | String | Redirect URI of the application Example: https: |
scopesRequired | String | Scopes of the application. |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | APIEntities |
400 | Bad Request | — |
Delete an application FE version
DELETE /api/v4/applications/{id}
Delete a specific application
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | Integer | The ID of the application (not the application_ |
Responses
| Code | Description | Schema |
|---|---|---|
204 | No Content | — |
400 | Bad Request | — |
404 | Not Found | — |
Renew an application secret FE version
POST /api/v4/applications/{id}/renew-secret
Renew the secret of a specific application
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | Integer | The ID of the application (not the application_ |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | APIEntities |
400 | Bad Request | — |
404 | Not Found | — |
List group approval rules
GET /api/v4/groups/{id}/approval_rules
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String or integer | The ID or URL- Example: 11 |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | — |
404 | Not Found | — |
Create a new group approval rule
POST /api/v4/groups/{id}/approval_rules
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String or integer | The ID or URL- Example: 11 |
Request body (application/json)
| Property | Type | Description |
|---|---|---|
approval_Required | Object | — |
approval_ | Integer | — |
approval_ | Array of integers | — |
approval_ | Array of integers | — |
approval_ | String | Allowed values:all_,all_,manually |
approval_ | String | — |
approval_ | Integer | — |
approval_ | String | Allowed values:regular,any_ |
approval_ | String | — |
Responses
| Code | Description | Schema |
|---|---|---|
201 | Created | — |
400 | Bad Request | — |
404 | Not Found | — |
Update a group approval rule
PUT /api/v4/groups/{id}/approval_rules/{approval_rule_id}
Parameters
| Name | Type | Description |
|---|---|---|
approval_Path, | Integer | — |
idPath, | String or integer | The ID or URL- Example: 11 |
Request body (application/json)
| Property | Type | Description |
|---|---|---|
approval_Required | Object | — |
approval_ | Integer | — |
approval_ | Array of integers | — |
approval_ | Array of integers | — |
approval_ | String | Allowed values:all_,all_,manually |
approval_ | String | — |
approval_ | Integer | — |
approval_ | String | Allowed values:regular,any_ |
approval_ | String | — |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | — |
400 | Bad Request | — |
404 | Not Found | — |
Delete a group approval rule
DELETE /api/v4/groups/{id}/approval_rules/{approval_rule_id}
Parameters
| Name | Type | Description |
|---|---|---|
approval_Path, | Integer | — |
idPath, | String or integer | The ID or URL- Example: 11 |
Responses
| Code | Description | Schema |
|---|---|---|
204 | No Content | — |
400 | Bad Request | — |
404 | Not Found | — |
List Gitaly object pool members
GET /api/v4/internal/gitaly/object_pool_members
Parameters
| Name | Type | Description |
|---|---|---|
disk_Query, | Array of strings | The on- |
storageQuery, | String | The storage shard name |
upstream_Query | Boolean | Return only the upstream repository Default: false |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | — |
400 | Bad Request | — |
List project approval rules
GET /api/v4/projects/{id}/approval_rules
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String or integer | The ID or URL- Example: 11 |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | — |
404 | Not Found | — |
Create a new project approval rule
POST /api/v4/projects/{id}/approval_rules
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String or integer | The ID or URL- Example: 11 |
Request body (application/json)
| Property | Type | Description |
|---|---|---|
approval_Required | Object | — |
approval_ | Integer | — |
approval_ | Array of integers | — |
approval_ | Array of integers | — |
approval_ | String | Allowed values:all_,all_,manually |
approval_ | String | — |
approval_ | Integer | — |
approval_ | String | Allowed values:regular,any_ |
approval_ | String | — |
Responses
| Code | Description | Schema |
|---|---|---|
201 | Created | — |
400 | Bad Request | — |
404 | Not Found | — |
For new merge request
GET /api/v4/projects/{id}/approval_rules/merge_requests/for-new-merge-request
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String or integer | The ID or URL- Example: 11 |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | — |
404 | Not Found | — |
List merge_request approval rules
GET /api/v4/projects/{id}/approval_rules/merge_requests/{merge_request_iid}
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String or integer | The ID or URL- Example: 11 |
merge_Path, | — | — |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | — |
404 | Not Found | — |
Create a new merge_request approval rule
POST /api/v4/projects/{id}/approval_rules/merge_requests/{merge_request_iid}
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String or integer | The ID or URL- Example: 11 |
merge_Path, | — | — |
Request body (application/json)
| Property | Type | Description |
|---|---|---|
approval_Required | Object | — |
approval_ | Integer | — |
approval_ | Array of integers | — |
approval_ | Array of integers | — |
approval_ | String | Allowed values:all_,all_,manually |
approval_ | String | — |
approval_ | Integer | — |
approval_ | String | Allowed values:regular,any_ |
approval_ | String | — |
Responses
| Code | Description | Schema |
|---|---|---|
201 | Created | — |
400 | Bad Request | — |
404 | Not Found | — |
Reset to project defaults
POST /api/v4/projects/{id}/approval_rules/merge_requests/{merge_request_iid}/reset-to-project-defaults
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String or integer | The ID or URL- Example: 11 |
merge_Path, | — | — |
Responses
| Code | Description | Schema |
|---|---|---|
201 | Created | — |
400 | Bad Request | — |
404 | Not Found | — |
Update a merge_request approval rule
PUT /api/v4/projects/{id}/approval_rules/merge_requests/{merge_request_iid}/{approval_rule_id}
Parameters
| Name | Type | Description |
|---|---|---|
approval_Path, | Integer | — |
idPath, | String or integer | The ID or URL- Example: 11 |
merge_Path, | — | — |
Request body (application/json)
| Property | Type | Description |
|---|---|---|
approval_Required | Object | — |
approval_ | Integer | — |
approval_ | Array of integers | — |
approval_ | Array of integers | — |
approval_ | String | Allowed values:all_,all_,manually |
approval_ | String | — |
approval_ | Integer | — |
approval_ | String | Allowed values:regular,any_ |
approval_ | String | — |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | — |
400 | Bad Request | — |
404 | Not Found | — |
Delete a merge_request approval rule
DELETE /api/v4/projects/{id}/approval_rules/merge_requests/{merge_request_iid}/{approval_rule_id}
Parameters
| Name | Type | Description |
|---|---|---|
approval_Path, | Integer | — |
idPath, | String or integer | The ID or URL- Example: 11 |
merge_Path, | — | — |
Responses
| Code | Description | Schema |
|---|---|---|
204 | No Content | — |
400 | Bad Request | — |
404 | Not Found | — |
Update a project approval rule
PUT /api/v4/projects/{id}/approval_rules/{approval_rule_id}
Parameters
| Name | Type | Description |
|---|---|---|
approval_Path, | Integer | — |
idPath, | String or integer | The ID or URL- Example: 11 |
Request body (application/json)
| Property | Type | Description |
|---|---|---|
approval_Required | Object | — |
approval_ | Integer | — |
approval_ | Array of integers | — |
approval_ | Array of integers | — |
approval_ | String | Allowed values:all_,all_,manually |
approval_ | String | — |
approval_ | Integer | — |
approval_ | String | Allowed values:regular,any_ |
approval_ | String | — |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | — |
400 | Bad Request | — |
404 | Not Found | — |
Delete a project approval rule
DELETE /api/v4/projects/{id}/approval_rules/{approval_rule_id}
Parameters
| Name | Type | Description |
|---|---|---|
approval_Path, | Integer | — |
idPath, | String or integer | The ID or URL- Example: 11 |
Responses
| Code | Description | Schema |
|---|---|---|
204 | No Content | — |
400 | Bad Request | — |
404 | Not Found | — |
List approval rules, code owners, and approval settings for merge request
GET /api/v4/projects/{id}/merge_requests/{merge_request_iid}/approval_rules_and_code_owners
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String or integer | The ID or URL- Example: 11 |
merge_Path, | Integer | The internal ID of an issuable |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | — |
404 | Not found | — |
Swagger compatible API description
GET /api/v4/swagger_doc
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | — |
Swagger compatible API description for specific API
GET /api/v4/swagger_doc/{name}
Parameters
| Name | Type | Description |
|---|---|---|
namePath, | String | Resource name of mounted API |
localeQuery | String | Locale of API documentation |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | — |
400 | Bad Request | — |
404 | Not Found | — |
Revoke a GPG key owned by currently authenticated user FE version
POST /api/v4/user/gpg_keys/{key_id}/revoke
This feature was added in GitLab 10.0
Parameters
| Name | Type | Description |
|---|---|---|
key_Path, | Integer | The ID of the GPG key |
Responses
| Code | Description | Schema |
|---|---|---|
201 | Created | — |
400 | Bad Request | — |
404 | Not Found | — |
Add a GPG key to a specified user Available only for admins
POST /api/v4/users/{id}/gpg_keys
(FE version).
This endpoint has been overridden to change its behavior.
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | Integer | User ID |
Request body (application/json)
| Property | Type | Description |
|---|---|---|
keyRequired | String | GPG Key |
Responses
| Code | Description | Schema |
|---|---|---|
201 | Created | APIEntities |
400 | Bad Request | — |
404 | Not Found | — |
Revokes an existing GPG key from a specified user
POST /api/v4/users/{id}/gpg_keys/{key_id}/revoke
Available only for admins. (FE version).
This feature was added in GitLab 10.0
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | Integer | The ID of the user |
key_Path, | Integer | The ID of the GPG key |
Responses
| Code | Description | Schema |
|---|---|---|
201 | Created | — |
400 | Bad Request | — |
404 | Not Found | — |
Schemas
Objects returned by the operations above and objects nested in their request bodies.
APIEntitiesApplicationWithSecret
| Property | Type | Description |
|---|---|---|
application_ | String | Example:5832fc6e14300a0d9622 |
application_ | String | Example:My |
callback_ | String | Example:https: |
confidential | Boolean | Example:true |
id | Integer (int64) | Example:1 |
scopes | Array | Example:["api", |
secret | String | Example:ee1dd64b6adc89cf7e2c |
APIEntitiesGpgKey
| Property | Type | Description |
|---|---|---|
created_ | String (date- | Example:2017- |
id | Integer (int64) | Example:1 |
key | String | Example:- |