Open bosschaert opened 3 months ago
FWIW, I don't think this should be stored in the header. I think this should be in the body. It's pretty un-conventional to get information client-side from a header object.
{
"url": "https://...",
"users": [{"email": "anonymous"}],
"label": "My new version",
}
My expectation would be that the format matches what the list API gives.
I also noticed that we are not sending the fully qualified domain... this means the client has to do more work:
URL is not actually a URL in the above screenshot. I would follow Helix conventions in that we always try to provide fully qualified URLs.
Expected Behaviour
The Create Version API should return the URL of the version created in the
Location
header.It should also return the associated user(s) with the version in the metadata.