buildkite / feedback

Got feedback? Please let us know!
https://buildkite.com
25 stars 24 forks source link

REST API only allows setting team UUIDs on pipeline create #400

Closed haines closed 5 years ago

haines commented 6 years ago

The team_uuids field isn't returned in GET requests (or in the response to POST or PATCH), and is ignored in PATCH requests.

petemounce commented 6 years ago

@ashleydavies spotted this too, and worked around it by using the GraphQL API.

keithpitt commented 5 years ago

👋 hey @haines - sorry for the late reply to this one!

Ah yeah - so as you noticed we do support the team_uuids field in pipeline create, however that's mostly there for compatibility reasons (if you turned on teams, and had a bunch of scripts that generated pipelines - things would break for your users pretty quickly when the team permission system kicks in)

We don't have any plans to expand on team management in the REST API at the moment, but you can do everything team related in the GraphQL API https://buildkite.com/docs/apis/graphql-api

If you need a hand with any queries - we're happy to help (support@buildkite.com or hop over to https://forum.buildkite.community/c/help)