Projects (v1)
This document uses the v1 API. For more details, see the v1 API.
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-24078731fbed
The project ID.
463c1ee5-31bc-428c-b451-b79a3270db08
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-24078731fbed
The project ID.
463c1ee5-31bc-428c-b451-b79a3270db08
application/json
application/json
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-24078731fbed
The project ID.
463c1ee5-31bc-428c-b451-b79a3270db08
application/json
application/json
No body
Required permissions
- Group Admin
The organization ID. The API_KEY
must have access to this organization.
4a18d42f-0706-4ad0-b127-24078731fbed
The project ID to apply the tag to
6d5813be-7e6d-4ab8-80c2-1e3e2a454545
Required permissions
- Group Admin
The organization ID. The API_KEY
must have access to this organization.
4a18d42f-0706-4ad0-b127-24078731fbed
The project ID to remove a tag from
6d5813be-7e6d-4ab8-80c2-1e3e2a454545
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-24078731fbed
The project ID
463c1ee5-31bc-428c-b451-b79a3270db08
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-24078731fbed
The project ID
463c1ee5-31bc-428c-b451-b79a3270db08
application/json
application/json
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-24078731fbed
The project ID
463c1ee5-31bc-428c-b451-b79a3270db08
application/json
application/json
No body
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-24078731fbed
The project ID.
463c1ee5-31bc-428c-b451-b79a3270db08
Required permissions
-
View Project
-
View Project Snapshot
The organization ID. The API_KEY
must have access to this organization.
4a18d42f-0706-4ad0-b127-24078731fbed
The project ID for which to return issue paths.
6d5813be-7e6d-4ab8-80c2-1e3e2a454545
The issue ID for which to return issue paths.
SNYK-JS-LODASH-590103
The 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-1e3e2a454553
The number of results to return per page (1 - 1000, inclusive).
3
The page of results to return.
2
application/json
application/json
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-24078731fbed
The project ID to return issues for.
6d5813be-7e6d-4ab8-80c2-1e3e2a454545
application/json
application/json
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-24078731fbed
The project ID.
463c1ee5-31bc-428c-b451-b79a3270db08
application/json
application/json
No body
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-24078731fbed
The project ID to remove a tag from
6d5813be-7e6d-4ab8-80c2-1e3e2a454545
Required permissions
-
View Project
-
View Project Snapshot
The organization ID. The API_KEY
must have access to this organization.
4a18d42f-0706-4ad0-b127-24078731fbed
The project ID to return issues for.
6d5813be-7e6d-4ab8-80c2-1e3e2a454545
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-24078731fbed
The project ID.
463c1ee5-31bc-428c-b451-b79a3270db08
application/json
application/json
No body
Last updated
Was this helpful?