Projects (v1)
Required permissions
View OrganizationView ProjectEdit Project
The organization ID the project belongs to. The API_KEY must have access to this organization.
4a18d42f-0706-4ad0-b127-24078731fbedThe project ID.
463c1ee5-31bc-428c-b451-b79a3270db08The branch that this project should be monitoring
mainsnyk/goofThe project identifier
af137b96-6966-46c1-826b-2e79ac49bbd9The date that the project was created on
2018-10-29T09:50:54.014ZThe origin the project was added from
githubThe package manager of the project
mavenWhether the project is read-only
falseThe frequency of automated Snyk re-test. Can be 'daily', 'weekly or 'never'
dailyNumber of dependencies of the project
42For docker projects shows the ID of the image
sha256:caf27325b298a6730837023a8a342699c8b7b388b8d878966b064a1320043019For docker projects shows the tag of the image
latestFor docker projects shows the base image
alpine:3For docker projects shows the platform of the image
linux/arm64For Kubernetes projects shows the origin cluster name
ProductionThe hostname for a CLI project, null if not set
The project remote repository url. Only set for projects imported via the Snyk CLI tool.
https://github.com/snyk/goof.gitThe date on which the most recent test was conducted for this project
2019-02-05T08:54:07.704ZThe user who owns the project, null if not set
{ "id": "e713cf94-bb02-4ea0-89d9-613cce0caed2", "name": "[email protected]", "username": "exampleUser", "email": "[email protected]" }
URL with project overview
https://app.snyk.io/org/4a18d42f-0706-4ad0-b127-24078731fbed/project/af137b96-6966-46c1-826b-2e79ac49bbd9Describes if a project is currently monitored or it is de-activated
The monitored branch (if available)
The identifier for which revision of the resource is scanned by Snyk. For example this may be a branch for SCM project, or a tag for a container image
List of applied tags
Applied project attributes
Required permissions
View OrganizationView ProjectView Project Snapshot
The organization ID the project belongs to. The API_KEY must have access to this organization.
4a18d42f-0706-4ad0-b127-24078731fbedThe project ID.
463c1ee5-31bc-428c-b451-b79a3270db08snyk/goofThe project identifier
af137b96-6966-46c1-826b-2e79ac49bbd9The date that the project was created on
2018-10-29T09:50:54.014ZThe origin the project was added from
githubThe package manager of the project
mavenWhether the project is read-only
falseThe frequency of automated Snyk re-test. Can be 'daily', 'weekly or 'never'
dailyNumber of dependencies of the project
42For docker projects shows the ID of the image
sha256:caf27325b298a6730837023a8a342699c8b7b388b8d878966b064a1320043019For docker projects shows the tag of the image
latestFor docker projects shows the base image
alpine:3For docker projects shows the platform of the image
linux/arm64For Kubernetes projects shows the origin cluster name
ProductionThe hostname for a CLI project, null if not set
The project remote repository url. Only set for projects imported via the Snyk CLI tool.
https://github.com/snyk/goof.gitThe date on which the most recent test was conducted for this project
2019-02-05T08:54:07.704ZThe user who owns the project, null if not set
{ "id": "e713cf94-bb02-4ea0-89d9-613cce0caed2", "name": "[email protected]", "username": "exampleUser", "email": "[email protected]" }
URL with project overview
https://app.snyk.io/org/4a18d42f-0706-4ad0-b127-24078731fbed/project/af137b96-6966-46c1-826b-2e79ac49bbd9Describes if a project is currently monitored or it is de-activated
The monitored branch (if available)
The identifier for which revision of the resource is scanned by Snyk. For example this may be a branch for SCM project, or a tag for a container image
List of applied tags
Applied project attributes
Required permissions
View OrganizationView ProjectRemove Project
The organization ID the project belongs to. The API_KEY must have access to this organization.
4a18d42f-0706-4ad0-b127-24078731fbedThe project ID.
463c1ee5-31bc-428c-b451-b79a3270db08No content
Required permissions
- Group Admin
The organization ID. The API_KEY must have access to this organization.
4a18d42f-0706-4ad0-b127-24078731fbedThe project ID to apply the tag to
6d5813be-7e6d-4ab8-80c2-1e3e2a454545Alphanumeric including - and _ with a limit of 30 characters
example-tag-keyAlphanumeric including - and _ with a limit of 50 characters
example-tag-valueRequired permissions
- Group Admin
The organization ID. The API_KEY must have access to this organization.
4a18d42f-0706-4ad0-b127-24078731fbedThe project ID to remove a tag from
6d5813be-7e6d-4ab8-80c2-1e3e2a454545Alphanumeric including - and _ with a limit of 30 characters
example-tag-keyAlphanumeric including - and _ with a limit of 50 characters
example-tag-valueRequired permissions
View OrganizationView ProjectEdit Project
The organization ID to which the project belongs. The API_KEY must have access to this organization.
4a18d42f-0706-4ad0-b127-24078731fbedThe project ID
463c1ee5-31bc-428c-b451-b79a3270db08If set to true, Snyk will raise dependency upgrade PRs automatically.
An array of comma-separated strings with names of dependencies you wish Snyk to ignore to upgrade.
The age (in days) that an automatic dependency check is valid for
The limit on auto dependency upgrade PRs.
If set to true, fail Snyk Test if the repo has any vulnerabilities. Otherwise, fail only when the PR is adding a vulnerable dependency.
If set to true, fail Snyk Test only for high and critical severity vulnerabilities
If set to true, Snyk Test checks PRs for vulnerabilities.:cq
assign Snyk pull requests
Defines automatic remediation policies
The response will contain the attributes and values that have been sent in the request and successfully updated.
If set to true, Snyk will raise dependency upgrade PRs automatically.
An array of comma-separated strings with names of dependencies you wish Snyk to ignore to upgrade.
The age (in days) that an automatic dependency check is valid for
The limit on auto dependency upgrade PRs.
If set to true, fail Snyk Test if the repo has any vulnerabilities. Otherwise, fail only when the PR is adding a vulnerable dependency.
If set to true, fail Snyk Test only for high and critical severity vulnerabilities
If set to true, Snyk Test checks PRs for vulnerabilities.:cq
assign Snyk pull requests
Defines automatic remediation policies
The response will contain the attributes and values that have been sent in the request and successfully updated.
Required permissions
View OrganizationView Project
The organization ID to which the project belongs. The API_KEY must have access to this organization.
4a18d42f-0706-4ad0-b127-24078731fbedThe project ID
463c1ee5-31bc-428c-b451-b79a3270db08The response will contain only attributes that can be updated (see ATTRIBUTES section in Update project settings) and that have been previously set.
If set to true, Snyk will raise dependency upgrade PRs automatically.
An array of comma-separated strings with names of dependencies you wish Snyk to ignore to upgrade.
The age (in days) that an automatic dependency check is valid for
The limit on auto dependency upgrade PRs.
If set to true, fail Snyk Test if the repo has any vulnerabilities. Otherwise, fail only when the PR is adding a vulnerable dependency.
If set to true, fail Snyk Test only for high and critical severity vulnerabilities
If set to true, Snyk Test checks PRs for vulnerabilities.:cq
assign Snyk pull requests
Defines automatic remediation policies
The response will contain only attributes that can be updated (see ATTRIBUTES section in Update project settings) and that have been previously set.
Deleting project settings will set the project to inherit default settings from its integration.
Required permissions
View OrganizationView ProjectEdit Project
The organization ID to which the project belongs. The API_KEY must have access to this organization.
4a18d42f-0706-4ad0-b127-24078731fbedThe project ID
463c1ee5-31bc-428c-b451-b79a3270db08No content
Note: when moving a project to a new organization, the historical data used for reporting does not move with it.
Required permissions
View OrganizationView ProjectMove Project
The organization ID to which the project belongs. The API_KEY must have group admin permissions. If the project is moved to a new group, a personal level API key is needed.
4a18d42f-0706-4ad0-b127-24078731fbedThe project ID.
463c1ee5-31bc-428c-b451-b79a3270db08The ID of the organization that the project should be moved to. The API_KEY must have group admin permissions. If the project is moved to a new group, a personal level API key is needed.
Required permissions
View ProjectView Project Snapshot
The organization ID. The API_KEY must have access to this organization.
4a18d42f-0706-4ad0-b127-24078731fbedThe project ID for which to return issue paths.
6d5813be-7e6d-4ab8-80c2-1e3e2a454545The issue ID for which to return issue paths.
SNYK-JS-LODASH-590103The project snapshot ID for which to return issue paths. If set to latest, the most recent snapshot will be used. Use the "List all project snapshots" endpoint to find suitable values for this.
6d5813be-7e6d-4ab8-80c2-1e3e2a454553The number of results to return per page (1 - 1000, inclusive).
3The page of results to return.
2Required permissions
View OrganizationView ProjectView Project Snapshot
The organization ID. The API_KEY must have access to this organization.
4a18d42f-0706-4ad0-b127-24078731fbedThe project ID to return issues for.
6d5813be-7e6d-4ab8-80c2-1e3e2a454545- A reference implementation of the graph, as well as conversion functions to/from legacy tree format, can be found at: https://github.com/snyk/dep-graph.
- The object might contain additional fields in the future, in a backward-compatible way (
schemaVersionwill change accordingly).
- A reference implementation of the graph, as well as conversion functions to/from legacy tree format, can be found at: https://github.com/snyk/dep-graph.
- The object might contain additional fields in the future, in a backward-compatible way (
schemaVersionwill change accordingly).
Deactivating a project will:
- Disable pull request tests for new vulnerabilities.
- Disable Fix pull request from being opened for newly disclosed vulnerabilities.
- Disable recurring tests - email alerts about newly disclosed vulnerabilities will be turned off.
- If the repository has no other active projects, then remove any webhooks related to the project.
Required permissions
View OrganizationView ProjectProject Status
The organization ID the project belongs to. The API_KEY must have access to this organization.
4a18d42f-0706-4ad0-b127-24078731fbedThe project ID.
463c1ee5-31bc-428c-b451-b79a3270db08No content
Attributes are static and non-configurable fields which allow to add additional metadata to a project. Attributes have a pre-defined list of values that a user can select from.
| Business criticality | Environment | Lifecycle stage |
|---|---|---|
| critical | frontend | production |
| high | backend | development |
| medium | internal | sandbox |
| low | external | |
| mobile | ||
| saas | ||
| onprem | ||
| hosted | ||
| distributed | ||
| Applies an attribute to the provided project. | ||
| It is possible to assign multiple values to each attribute, but you can only assign values to one of the predefined attribute categories, using the predefined options for this category. | ||
| Assigning an attribute requires the caller to be either an Organization Administrator or a Group Administrator. | ||
| Assigning an attribute will override any existing values that the specific attribute already has set. | ||
| In order to clear out an attribute value, an empty array can be set. |
Note: Organization admins can add an attribute to a Project. However, only Group admins can modify Project attributes in cases where attributes match a policy, because policies can only be managed by Group admins.
Required permissions
View OrganizationView ProjectEdit Project Attributes
The organization ID. The API_KEY must have access to this organization.
4a18d42f-0706-4ad0-b127-24078731fbedThe project ID to remove a tag from
6d5813be-7e6d-4ab8-80c2-1e3e2a454545Required permissions
View ProjectView Project Snapshot
The organization ID. The API_KEY must have access to this organization.
4a18d42f-0706-4ad0-b127-24078731fbedThe project ID to return issues for.
6d5813be-7e6d-4ab8-80c2-1e3e2a454545If set to true, Include issue's description, if set to false (by default), it won't (Non-IaC projects only)
If set to true, include the dockerfile instruction that the issue is introducedThrough. If set to false (default), it won’t. This only applies to Container projects with an associated Dockerfile (CLI or Container Registry source)
Activating a project will:
- Add a repository webhook for supported integrations.
- Enable pull request tests for new vulnerabilities.
- Open Fix pull request for newly disclosed vulnerabilities.
- Enable recurring tests, sending email alerts about newly disclosed vulnerabilities.
Required permissions
View OrganizationView ProjectProject Status
The organization ID the project belongs to. The API_KEY must have access to this organization.
4a18d42f-0706-4ad0-b127-24078731fbedThe project ID.
463c1ee5-31bc-428c-b451-b79a3270db08No content
Last updated
Was this helpful?

