Users (v1)
Retrieves information about a user.
The users ID. The API_KEY
must have admin access to at least one group or organization where the requested user is a member and must have the api
entitlement on their preferred organization.
4a18d42f-0706-4ad0-b127-24078731fbed
application/json; charset=utf-8
Possible values: {"id":"","name":"","username":"","email":""}
GET /v1/user/{userId} HTTP/1.1
Host: api.snyk.io
Content-Type: application/json; charset=utf-8
Accept: */*
{
"id": "",
"name": "",
"username": "",
"email": ""
}
Retrieves information about the the user making the request.
application/json; charset=utf-8
Possible values: {"id":"","username":"","email":"","orgs":[]}
GET /v1/user/me HTTP/1.1
Host: api.snyk.io
Content-Type: application/json; charset=utf-8
Accept: */*
{
"id": "",
"username": "",
"email": "",
"orgs": []
}
The organization notification settings for the user that will determine which emails are sent.
The organization ID. The API_KEY
must have access to this organization.
4a18d42f-0706-4ad0-b127-24078731fbed
{"new-issues-remediations":{"enabled":true,"issueSeverity":"high","issueType":"vuln"},"project-imported":{"enabled":true},"test-limit":{"enabled":true},"weekly-report":{"enabled":true}}
{"new-issues-remediations":{"enabled":true,"issueSeverity":"high","issueType":"vuln","inherited":false},"project-imported":{"enabled":true,"inherited":false},"test-limit":{"enabled":true,"inherited":false},"weekly-report":{"enabled":true,"inherited":false}}
PUT /v1/user/me/notification-settings/org/{orgId} HTTP/1.1
Host: api.snyk.io
Content-Type: application/json; charset=utf-8
Accept: */*
Content-Length: 185
{
"new-issues-remediations": {
"enabled": true,
"issueSeverity": "high",
"issueType": "vuln"
},
"project-imported": {
"enabled": true
},
"test-limit": {
"enabled": true
},
"weekly-report": {
"enabled": true
}
}
{
"new-issues-remediations": {
"enabled": true,
"issueSeverity": "high",
"issueType": "vuln",
"inherited": false
},
"project-imported": {
"enabled": true,
"inherited": false
},
"test-limit": {
"enabled": true,
"inherited": false
},
"weekly-report": {
"enabled": true,
"inherited": false
}
}
The organization notification settings for the user that will determine which emails are sent.
The organization ID. The API_KEY
must have access to this organization.
4a18d42f-0706-4ad0-b127-24078731fbed
application/json; charset=utf-8
Possible values: {"new-issues-remediations":{"enabled":true,"issueSeverity":"high","issueType":"vuln","inherited":false},"project-imported":{"enabled":true,"inherited":false},"test-limit":{"enabled":true,"inherited":false},"weekly-report":{"enabled":true,"inherited":false}}
GET /v1/user/me/notification-settings/org/{orgId} HTTP/1.1
Host: api.snyk.io
Content-Type: application/json; charset=utf-8
Accept: */*
{
"new-issues-remediations": {
"enabled": true,
"issueSeverity": "high",
"issueType": "vuln",
"inherited": false
},
"project-imported": {
"enabled": true,
"inherited": false
},
"test-limit": {
"enabled": true,
"inherited": false
},
"weekly-report": {
"enabled": true,
"inherited": false
}
}
The project notification settings for the user that will determine which emails are sent.
The organization ID. The API_KEY
must have access to this organization.
4a18d42f-0706-4ad0-b127-24078731fbed
The project ID to return notification settings for.
6d5813be-7e6d-4ab8-80c2-1e3e2a454545
{"new-issues-remediations":{"enabled":true,"issueSeverity":"high","issueType":"vuln"}}
PUT /v1/user/me/notification-settings/org/{orgId}/project/{projectId} HTTP/1.1
Host: api.snyk.io
Content-Type: application/json; charset=utf-8
Accept: */*
Content-Length: 86
{
"new-issues-remediations": {
"enabled": true,
"issueSeverity": "high",
"issueType": "vuln"
}
}
No content
The project notification settings for the user that will determine which emails are sent.
The organization ID. The API_KEY
must have access to this organization.
4a18d42f-0706-4ad0-b127-24078731fbed
The project ID to return notification settings for.
6d5813be-7e6d-4ab8-80c2-1e3e2a454545
application/json; charset=utf-8
Possible values: {"new-issues-remediations":{"enabled":true,"issueSeverity":"high","issueType":"vuln","inherited":false},"project-imported":{"enabled":true,"inherited":false},"test-limit":{"enabled":true,"inherited":false},"weekly-report":{"enabled":true,"inherited":false}}
GET /v1/user/me/notification-settings/org/{orgId}/project/{projectId} HTTP/1.1
Host: api.snyk.io
Content-Type: application/json; charset=utf-8
Accept: */*
{
"new-issues-remediations": {
"enabled": true,
"issueSeverity": "high",
"issueType": "vuln",
"inherited": false
},
"project-imported": {
"enabled": true,
"inherited": false
},
"test-limit": {
"enabled": true,
"inherited": false
},
"weekly-report": {
"enabled": true,
"inherited": false
}
}
Last updated
Was this helpful?