Assign an alias

PUT https://{{base_url}}/v3/stacks/branch_aliases/{{branch_alias_uid}}

The Assign an alias request creates a new alias in a particular stack of your organization. This alias can point to any existing branch (target branch) of your stack.

To use the API Request, you will need to authenticate yourself either with a Management Token (highly recommended) or an Authtoken. 
Read more about it in Authentication.


For more information, refer to the Assign an alias API Reference document

Request Body

{"branch_alias"=>{"target_branch"=>"test"}}

HEADERS

KeyDatatypeRequiredDescription
api_keystringEnter the API key of the stack.
authtokenstringEnter your authtoken.
Content-TypestringEnter "application/json" to pass a Request body.