Projects (v1)
Note: For a list of Project types, see Project type responses from the API.
Required permissions
-
View Organization -
View Project -
Edit 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-b79a3270db08{"owner":{"id":"1acd4d09-5602-4d04-9640-045fe928aaea"},"branch":"main"}Required permissions
-
View Organization -
View Project -
View 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-b79a3270db08application/jsonPossible values: Required permissions
-
View Organization -
View Project -
Remove 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-b79a3270db08application/jsonPossible values: No 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-1e3e2a454545{"key":"example-tag-key","value":"example-tag-value"}Required 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-1e3e2a454545{"key":"example-tag-key","value":"example-tag-value"}Required permissions
-
View Organization -
View Project -
Edit 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-b79a3270db08{"autoDepUpgradeLimit":2,"autoDepUpgradeIgnoredDependencies":["tap","ava"],"autoDepUpgradeEnabled":false,"autoDepUpgradeMinAge":21,"pullRequestFailOnAnyVulns":false,"pullRequestFailOnlyForHighSeverity":true,"pullRequestTestEnabled":true,"pullRequestAssignment":"{\"enabled\":true,\"type\":\"manual\",\"assignees\":[\"username\"]}","autoRemediationPrs":"{\"freshPrsEnabled\":true,\"backlogPrsEnabled\":false,\"usePatchRemediation\":false}"}The response will contain the attributes and values that have been sent in the request and successfully updated.
The response will contain the attributes and values that have been sent in the request and successfully updated.
Required permissions
-
View Organization -
View 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-b79a3270db08application/jsonPossible values: The response will contain only attributes that can be updated (see ATTRIBUTES section in Update project settings) and that have been previously set.
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 Organization -
View Project -
Edit 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-b79a3270db08application/jsonPossible values: No content
Note: when moving a project to a new organization, the historical data used for reporting does not move with it.
Required permissions
-
View Organization -
View Project -
Move 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-b79a3270db08{"targetOrgId":"4a18d42f-0706-4ad0-b127-24078731fbed"}Required permissions
-
View Project -
View 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.
2application/jsonPossible values: Required permissions
-
View Organization -
View Project -
View 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-1e3e2a454545application/jsonPossible values: -
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 Organization -
View Project -
Project 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-b79a3270db08application/jsonPossible values: No 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 | ||
| 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 Organization -
View Project -
Edit 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-1e3e2a454545{"criticality":["high"],"environment":["backend"],"lifecycle":["development"]}Required permissions
-
View Project -
View 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{"includeDescription":false,"includeIntroducedThrough":false}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 Organization -
View Project -
Project 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-b79a3270db08application/jsonPossible values: No content
Last updated
Was this helpful?

