Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-01-14 00:07:39 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-01-14 00:07:39 +0300
commit74a89b1221eaf780374bd1d4c5b2ee4a0f488908 (patch)
tree27dbcfdbc4216e9bee04b9be9c974d86744d51ba /doc/api/error_tracking.md
parentb0abae12affecc466aeb10889e8a6c000d6f67f5 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'doc/api/error_tracking.md')
-rw-r--r--doc/api/error_tracking.md31
1 files changed, 31 insertions, 0 deletions
diff --git a/doc/api/error_tracking.md b/doc/api/error_tracking.md
new file mode 100644
index 00000000000..77dc7f8629f
--- /dev/null
+++ b/doc/api/error_tracking.md
@@ -0,0 +1,31 @@
+# Error Tracking settings API
+
+> [Introduced](https://gitlab.com/gitlab-org/gitlab/issues/34940) in GitLab 12.7.
+
+## Error Tracking project settings
+
+The project settings API allows you to retrieve the Error Tracking settings for a project. Only for project maintainers.
+
+### Get Error Tracking settings
+
+```
+GET /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 |
+
+```bash
+curl --header "PRIVATE-TOKEN: <your_access_token>" https://gitlab.example.com/api/v4/projects/1/error_tracking/settings
+```
+
+Example response:
+
+```json
+{
+ "project_name": "sample sentry project",
+ "sentry_external_url": "https://sentry.io/myawesomeproject/project",
+ "api_url": "https://sentry.io/api/0/projects/myawesomeproject/project"
+}
+```