When I request environments via the API I only get the UUIDs, not the names.
It has worked before, might something been changed?
https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Bworkspace%7D/%7Brepo_slug%7D/environments/#get
Hi Olof,
Is this still happening to you? I just tested this out and it seems to work fine for me: https://api.bitbucket.org/2.0/repositories/phodder/prod-test/environments/
{ category: { name: "Production" }, restrictions: { admin_only: false, type: "deployment_restrictions_configuration" }, uuid: "{188497c7-12e0-43b0-929e-4fea70686a61}", environment_lock_enabled: true, lock: { type: "deployment_environment_lock_open", name: "OPEN", lock_opener: { type: "PIPELINES_DEPLOYMENT", pipeline_uuid: "{40952c4f-1aed-45a5-9513-0d9c05f94c26}", step_uuid: "{d2c0689a-947b-437e-bbc6-8c542ff77f0d}" } }, deployment_gate_enabled: false, rank: 0, hidden: false, type: "deployment_environment", slug: "production", environment_type: { type: "deployment_environment_type", name: "Production", rank: 2 }, name: "Production"},
Thanks,
Phil
It looks like you're new here. Sign in or register to get started.