Skip to content

ifExists=FIND_OR_CREATE_VERSION and firstVersion behaviour #6004

Answered by EricWittmann
jonsnowseven asked this question in Q&A
Discussion options

You must be logged in to vote

OK so yes, if you provide a version when creating the artifact, then the call will fail if you provide a different firstVersion (by content) but with the same version number.

In other words, if you try to create an artifact with content XYZ and version 1.0 but an artifact with content ABC already exists with version 1.0, the call will fail. I think that makes sense, since the server cannot do what you've asked (create a new version with different content but the same version number).

If you create the artifact with content XYZ and version 2.0 and the artifact already exists with version 1.0 and content ABC, then a new version should get created.

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@jonsnowseven
Comment options

@EricWittmann
Comment options

@jonsnowseven
Comment options

@EricWittmann
Comment options

Answer selected by jonsnowseven
@jonsnowseven
Comment options

@EricWittmann
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment