Groups (v1)
The group ID. The API_KEY
must have access admin to this group.
4a18d42f-0706-4ad0-b127-24078731fbed
The number of results to return (the default is 1000).
10
The offset from which to start returning results from.
1
application/json
Possible values: {"tags":[{"key":"meta","value":"Alfa"},{"key":"meta","value":"Bravo"},{"key":"meta","value":"Charlie"},{"key":"meta","value":"Delta"},{"key":"meta","value":"Echo"},{"key":"meta","value":"Foxtrot"},{"key":"meta","value":"Golf"},{"key":"meta","value":"Hotel"},{"key":"meta","value":"India"},{"key":"meta","value":"Juliet"}]}
GET /v1/group/{groupId}/tags HTTP/1.1
Host: api.snyk.io
Content-Type: application/json
Accept: */*
{
"tags": [
{
"key": "meta",
"value": "Alfa"
},
{
"key": "meta",
"value": "Bravo"
},
{
"key": "meta",
"value": "Charlie"
},
{
"key": "meta",
"value": "Delta"
},
{
"key": "meta",
"value": "Echo"
},
{
"key": "meta",
"value": "Foxtrot"
},
{
"key": "meta",
"value": "Golf"
},
{
"key": "meta",
"value": "Hotel"
},
{
"key": "meta",
"value": "India"
},
{
"key": "meta",
"value": "Juliet"
}
]
}
The group ID. The API_KEY
must have access admin to this group.
4a18d42f-0706-4ad0-b127-24078731fbed
{"key":"","value":"","force":false}
{"key":"","value":"","force":false}
POST /v1/group/{groupId}/tags/delete HTTP/1.1
Host: api.snyk.io
Content-Type: application/json
Accept: */*
Content-Length: 35
{
"key": "",
"value": "",
"force": false
}
{
"key": "",
"value": "",
"force": false
}
The group ID. The API_KEY
must have admin access to this group.
b61bc07c-27c6-42b3-8b04-0f228ed31a67
{"sessionLength":50,"requestAccess":{"enabled":true}}
{"sessionLength":50,"requestAccess":{"enabled":true}}
PUT /v1/group/{groupId}/settings HTTP/1.1
Host: api.snyk.io
Content-Type: application/json
Accept: */*
Content-Length: 53
{
"sessionLength": 50,
"requestAccess": {
"enabled": true
}
}
{
"sessionLength": 50,
"requestAccess": {
"enabled": true
}
}
The group ID. The API_KEY
must have admin access to this group.
b61bc07c-27c6-42b3-8b04-0f228ed31a67
application/json
Possible values: GET /v1/group/{groupId}/settings HTTP/1.1
Host: api.snyk.io
Content-Type: application/json
Accept: */*
{
"requestAccess": {
"enabled": true
},
"sessionLength": 1
}
The group ID. The API_KEY
must have READ access to this group.
a060a49f-636e-480f-9e14-38e773b2a97f
application/json
Possible values: GET /v1/group/{groupId}/roles HTTP/1.1
Host: api.snyk.io
Content-Type: application/json
Accept: */*
[
{
"name": "Org Collaborator",
"description": "Collaborator",
"publicId": "6525b356-a400-465f-b2e5-3eee1161e69f",
"created": "2021-04-22T16:02:53.233Z",
"modified": "2021-04-22T16:02:53.332Z"
},
{
"name": "Org Admin",
"description": "Admin",
"publicId": "af047fef-69f3-4bd9-9760-8957ce0d2ece",
"created": "2021-04-22T16:02:53.233Z",
"modified": "2021-04-22T16:02:53.332Z"
}
]
The group ID. The API_KEY
must have READ access to this group and LIST organizations access in this group.
a060a49f-636e-480f-9e14-38e773b2a97f
The number of results to return (maximum is 100).
100
For pagination - offset (from which to start returning results).
1
Only organizations that have a name that starts with this value (case insensitive) will be returned.
my
application/json
Possible values: {"id":"a060a49f-636e-480f-9e14-38e773b2a97f","name":"ACME Inc.","url":"https://api.snyk.io/v1/group/0dfc509a-e7a9-48ef-9d39-649d6468fc09","created":"2021-06-07T00:00:00.000Z","orgs":[{"name":"myDefaultOrg","id":"689ce7f9-7943-4a71-b704-2ba575f01089","slug":"my-default-org","url":"https://api.snyk.io/v1/org/default-org","created":"2021-06-07T00:00:00.000Z"},{"name":"My Other Org","id":"a04d9cbd-ae6e-44af-b573-0556b0ad4bd2","slug":"my-other-org","url":"https://api.snyk.io/v1/org/my-other-org","created":"2021-06-07T00:00:00.000Z"}]}
GET /v1/group/{groupId}/orgs HTTP/1.1
Host: api.snyk.io
Content-Type: application/json
Accept: */*
{
"id": "a060a49f-636e-480f-9e14-38e773b2a97f",
"name": "ACME Inc.",
"url": "https://api.snyk.io/v1/group/0dfc509a-e7a9-48ef-9d39-649d6468fc09",
"created": "2021-06-07T00:00:00.000Z",
"orgs": [
{
"name": "myDefaultOrg",
"id": "689ce7f9-7943-4a71-b704-2ba575f01089",
"slug": "my-default-org",
"url": "https://api.snyk.io/v1/org/default-org",
"created": "2021-06-07T00:00:00.000Z"
},
{
"name": "My Other Org",
"id": "a04d9cbd-ae6e-44af-b573-0556b0ad4bd2",
"slug": "my-other-org",
"url": "https://api.snyk.io/v1/org/my-other-org",
"created": "2021-06-07T00:00:00.000Z"
}
]
}
The group ID. The API_KEY
must have access admin to this group.
4a18d42f-0706-4ad0-b127-24078731fbed
The organization ID we want to add the member to. The API_KEY
must have access to this organization.
4a18d42f-0706-4ad0-b127-24078731fbed
{"userId":"","role":""}
POST /v1/group/{groupId}/org/{orgId}/members HTTP/1.1
Host: api.snyk.io
Content-Type: application/json
Accept: */*
Content-Length: 23
{
"userId": "",
"role": ""
}
No content
Note: Requests to this endpoint are limited to one per minute. Additional requests within this time will receive a
429 Too Many Requests
response.
The group ID. The API_KEY
must have access admin to this group.
4a18d42f-0706-4ad0-b127-24078731fbed
application/json
Possible values: GET /v1/group/{groupId}/members HTTP/1.1
Host: api.snyk.io
Content-Type: application/json
Accept: */*
[
{
"id": "",
"name": "",
"username": "",
"email": "",
"orgs": [
{
"name": "",
"role": ""
}
],
"groupRole": ""
}
]
Last updated
Was this helpful?