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
Key | Datatype | Required | Description |
---|---|---|---|
api_key | string | Enter the API key of the stack. | |
authtoken | string | Enter your authtoken. | |
Content-Type | string | Enter "application/json" to pass a Request body. |