[API] Container request can provide existing collection UUID that will accept CR output
In order to set properties on the output of a container request, we need a way to set those properties on the collection that will become the output of the container request. Currently, that collection doesn't exist until the container request is finalized.
There are fields output_name and output_ttl which specify metadta on the output collection. It is a slippery slope if we keep adding fields (output_properties, output_storage_class, output_owner_uuid, ???)
A more flexible option is to embed the whole record in a jsonb field.
An even more flexible option is to add the option for the submitter to provide a collection UUID that will be the output collection of the container request.
- Caller creates the collection ahead of time and sets desired fields (such as name, properties)
- On CR submission and then again on CR completion, test that the user has writable permission to the collection record
- On finalize, copy the manifest_text/portable_data_hash of the container output collection to the collection in output_uuid