Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
f89b6649
Commit
f89b6649
authored
Feb 02, 2020
by
Rajendra Kadam
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add changelog and doc strings
parent
8c596a6e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
0 deletions
+33
-0
changelogs/unreleased/enable-disable-error-tracking-api.yml
changelogs/unreleased/enable-disable-error-tracking-api.yml
+5
-0
doc/api/error_tracking.md
doc/api/error_tracking.md
+28
-0
No files found.
changelogs/unreleased/enable-disable-error-tracking-api.yml
0 → 100644
View file @
f89b6649
---
title
:
Add API to enable and disable error tracking settings
merge_request
:
24220
author
:
Rajendra Kadam
type
:
added
doc/api/error_tracking.md
View file @
f89b6649
...
@@ -30,3 +30,31 @@ Example response:
...
@@ -30,3 +30,31 @@ Example response:
"api_url"
:
"https://sentry.io/api/0/projects/myawesomeproject/project"
"api_url"
:
"https://sentry.io/api/0/projects/myawesomeproject/project"
}
}
```
```
### Enable/Disable Error Tracking project settings
The API allows you to enable or disable the Error Tracking settings for a project. Only for project maintainers.
```
PATCH /projects/:id/error_tracking/settings
```
| Attribute | Type | Required | Description |
| --------- | ------- | -------- | --------------------- |
|
`id`
| integer | yes | The ID or
[
URL-encoded path of the project
](
README.md#namespaced-path-encoding
)
owned by the authenticated user |
|
`active`
| boolean | yes | Pass
`true`
to enable the already configured error tracking settings or
`false`
to disable it. |
```
shell
curl
--header
"PRIVATE-TOKEN: <your_access_token>"
https://gitlab.example.com/api/v4/projects/1/error_tracking/settings?active
=
true
```
Example response:
```
json
{
"active"
:
true
,
"project_name"
:
"sample sentry project"
,
"sentry_external_url"
:
"https://sentry.io/myawesomeproject/project"
,
"api_url"
:
"https://sentry.io/api/0/projects/myawesomeproject/project"
}
```
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment