Skip to content

Branch_SetPrimary#


Description#

This function allows you to set the Primary Branch. This is the branch live traffic will see.

Requirements#

Miva version 10.00.00 or later.

Request Body Parameters#

Parameter
Type Description
edit_branch
branch_name
branch_id
String
String
Number
Branch Name set as primary
Branch Name set as primary
Branch ID set as primary

Response Parameters#

Parameter
Type Description
success Number 1 indicating a successful request.
0 indicating an unsuccessful request.

Example Request#

{
    "Store_code": "beta",
    "Function": "Branch_SetPrimary",
    "Branch_ID": "1"
}

Example Response#

{
    "success": 1
}