Closed marlontaylor closed 6 years ago
We discussed this on the working call on 2018-05-29, and the unanimous consensus was to make this change. A row was added to the status-details object that included a "version" property that is required. The description for that property is:
The version of the object that succeeded, is pending, or failed to be created. For STIX objects the version MUST be the STIX modified timestamp Property. If a STIX object is not versioned (and therefore does not have a modified timestamp) the created timestamp MUST be used.
The description for the status-details object itself also changed, it now reads:
This type represents an object that was added, is pending, or not added to the Collection. It contains the id and version of the object along with a message describing any details about its status.
The description for the status resource also needed to be updated. The last paragraph now reads:
The list of objects that failed to be added, are still pending, or have been successfully added is a simple type that contains the identifier of the object (e.g., for STIX objects, their id), its version, and an optional message indicating additional details.
Currently
The
status-details
represents an object that was added, is pending, or not added to the Collection. It contains the id of the object and a message describing any details about its status.Suggestion
The
status-details
should contain a required 'version' property. For STIX objects the version MUST be the STIX Object modified value.Background
See current example response:
The
status-details
does not provide the means to determine the "version" of object within the response, which requires additional work on the recipient to take action. Notice in the example above indicator--c410e480-e42b-47d1-9476-85307c12bcbf is located in both thesuccesses
andfailures
properties. Without support for specifying the object version the receiver of thestatus-details
will not be able to address failures when multiple versions of the same object are submitted.See suggested example response: