AvailabilityGroup_Insert
#
Description#
This function inserts a new availability group.
Request Parameters#
Parameter |
Type | Description |
---|---|---|
availabilitygroup_name |
String | The name of availability group |
availabilitygroup_tax_exempt |
Boolean | Boolean value indicating if the new availability group is tax exempt |
Response Parameters#
Parameter |
Type | Description |
---|---|---|
success |
Number | 1 indicating a successful request. 0 indicating an unsuccessful request. |
Example Request#
{
"Store_Code": "{{Store_Code}}",
"Miva_Request_Timestamp": "{{$timestamp}}",
"Function": "AvailabilityGroup_Insert",
"AvailabilityGroup_Name": "Availability Group 2",
"AvailabilityGroup_Tax_Exempt": 1
}
Example Response#
{
"success": 1
}
Error Responses#
Error Code | Error Message | Error Description |
---|---|---|
MER-JSN-00018 | Invalid value for field AvailabilityGroup_Name |
Availability group name already exists |