launchdarkly/api-client-python

Updates to Copy Feature Flag across Environments

Boylancl opened this issue · 2 comments

Following the example on https://github.com/launchdarkly/api-client-python/blob/master/docs/FeatureFlagsApi.md#copy_feature_flag
Throws 404's constantly and the API endpoint POST /flags/{projectKey}/{environmentKey}/{featureFlagKey}/copy doesn't appear to match the API documentation on the website https://apidocs.launchdarkly.com/reference#copy-feature-flag which is calls out POST /flags/projKey/flagKey/copy

Hi @Boylancl sorry for the delay on this. Can you please try out the latest version? Copy flags should be working now.

Thanks - We worked around this by iterating the list of flags and copying them over individually. I'll remember this fix if we get a chance to revisit the code.