@@ -233,6 +233,7 @@ def promote_all(
233233 self ,
234234 * ,
235235 to_environment : str ,
236+ branch : str | Omit = omit ,
236237 resource_id : str | Omit = omit ,
237238 resource_type : Union [
238239 Literal ["audience" , "email_layout" , "guide" , "message_type" , "partial" , "translation" , "workflow" ],
@@ -258,7 +259,10 @@ def promote_all(
258259 “production” (in that order), setting this param to “production” will promote
259260 all commits not currently in production from staging.
260261
261- Note: This must be a non-development environment.
262+ When this param is set to `"development"`, the `"branch"` param must be
263+ provided.
264+
265+ branch: The slug of the branch to promote all changes from.
262266
263267 resource_id: Filter commits to promote by resource identifier. Must be used together with
264268 resource_type.
@@ -284,6 +288,7 @@ def promote_all(
284288 query = maybe_transform (
285289 {
286290 "to_environment" : to_environment ,
291+ "branch" : branch ,
287292 "resource_id" : resource_id ,
288293 "resource_type" : resource_type ,
289294 },
@@ -532,6 +537,7 @@ async def promote_all(
532537 self ,
533538 * ,
534539 to_environment : str ,
540+ branch : str | Omit = omit ,
535541 resource_id : str | Omit = omit ,
536542 resource_type : Union [
537543 Literal ["audience" , "email_layout" , "guide" , "message_type" , "partial" , "translation" , "workflow" ],
@@ -557,7 +563,10 @@ async def promote_all(
557563 “production” (in that order), setting this param to “production” will promote
558564 all commits not currently in production from staging.
559565
560- Note: This must be a non-development environment.
566+ When this param is set to `"development"`, the `"branch"` param must be
567+ provided.
568+
569+ branch: The slug of the branch to promote all changes from.
561570
562571 resource_id: Filter commits to promote by resource identifier. Must be used together with
563572 resource_type.
@@ -583,6 +592,7 @@ async def promote_all(
583592 query = await async_maybe_transform (
584593 {
585594 "to_environment" : to_environment ,
595+ "branch" : branch ,
586596 "resource_id" : resource_id ,
587597 "resource_type" : resource_type ,
588598 },
0 commit comments