DependencyTrack / DependencyTrack/dependency-track

API does not in general support updates. Only complete rewrites of object data.

Open
#2,343 5 comments 1 reaction 0 assignees View on GitHub
enhancement
Dominant language
Java
Stars
4.2k
Forks
811
Avg merge
8h 39m
Merged PRs (30d)
237

Description

### Current Behavior

When updating a component via the API POST request specifying only the needed attributes (uuid, name and for instance copyright) the result is that all other attributes are wiped.

### Proposed Behavior

Only the attributes specified in the request should be changed.

This request is specifically for the component object but the behavior should be available for all object types.

### Checklist

- [X] I have read and understand the [contributing guidelines](https://github.com/DependencyTrack/dependency-track/blob/master/CONTRIBUTING.md#filing-issues)
- [X] I have checked the [existing issues](https://github.com/DependencyTrack/dependency-track/issues) for whether this enhancement was already requested

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.