<#2649 [Core feature] Add an option specify "lates...
# flyte-github
c
#2649 [Core feature] Add an option specify "latest" as the version in the spec Issue created by noblige ### Motivation: Why do you think this is important? Currently there's no way to easily specify "latest"
version
when invoking Flyte APIs that take in an
Identifier
. This requires making two calls - one is two list all versions to find out the latest, and then another call to make an actual request. Example: • Get
http://flyte/api/v1/workflows/my_project/development?limit=1&sort_by.key=created_at&id.name=flyte.workflows.my_work_flow
first to get the latest version • Post
http://flyte/api/v1/executions
with the spec:
Copy code
'project': 'my_project',
        'domain': 'development',
        'spec': {
            'launch_plan': {
                'resource_type': 'LAUNCH_PLAN',
                'project': 'my_project',
                'domain': 'development',
                'name': 'my_work_flow',
                'version': version
            }
        },
### Goal: What should the final outcome look like, ideally? I should be able to specify "magic" value as a
version
tag to indicate that latest version of the resource should be used ### Describe alternatives you've considered Making two API calls ### Propose: Link/Inline OR Additional context No response ### Are you sure this issue hasn't been raised already? • Yes ### Have you read the Code of Conduct? • Yes flyteorg/flyte