Published Dashboard by VersionArn instead of version number

I am updating a dashboard and wanted to publish it. In the update response, I get the VersionArn that contains the version number. The publish api requires the version number. Is there an API to publish it with VersionArn and not the version number?

I don’t believe so.

Can’t you just take the version number from the VersionArn?

Something like version_number = VersionArn.split("/")[-1]

1 Like

That is basically what I did but wanted to asked here if it’s available somehow since the update and publish are executed sequentially and would be nice the output from first can be used as input to the next without doing the extra parsing.

I can mark it as a feature request.