Set project attributes using the Snyk API

By using the Snyk API v1 endpoint Applying attributes you can set attributes for Snyk Projects including business criticality, lifecycle stage, and environment once the project has been created . To do so:

  • Import the project using the Snyk API v1 endpoint Import targets.

  • Get the status API ID from Import targets.

  • Poll using Import job details until all imports have completed.

  • Parse the project IDs from the projectURL field.

  • Use the Applying attributes endpoint to set the project attributes.

Last updated

More information

Snyk privacy policy

© 2023 Snyk Limited | All product and company names and logos are trademarks of their respective owners.