-
I am trying to clone a project with a command: curl -X PUT "http://IP:8080/api/v1/project/clone" -H "accept: application/json" -H "X-Api-Key: 9gf1rnzKHWL9XUwoUaD5MwKLJJHJH" -H "Content-Type: application/json" -d "{"project":"9caca92b-3f0a-49ed-be82-e19e3570d1c2","version":"develop3"}" It looks like the project is cloned without the additional things. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Yes, the API has corresponding fields for all of the toggles shown in the UI. You can see the full structure of the request body here: https://github.com/DependencyTrack/client-go/blob/v0.9.0/project.go#L144 Look at the |
Beta Was this translation helpful? Give feedback.
-
curl -X PUT "http://IP:8080/api/v1/project/clone" -H "accept: application/json" -H "X-Api-Key: 9gf1rnzKHWL9XUwoUaD5Mwy9ksdBHN" -H "Content-Type: application/json" -d "{"project":"9caca92b-3f0a-49ed-be82-e19e3570d1c2","version":"develop29","includeAuditHistory":"true","includeComponents":"true","includeProperties":"true","includeServices":"true","includeTags":"true"}" |
Beta Was this translation helpful? Give feedback.
Yes, the API has corresponding fields for all of the toggles shown in the UI.
You can see the full structure of the request body here: https://github.com/DependencyTrack/client-go/blob/v0.9.0/project.go#L144
Look at the
json
part for the actual API field names.