curl --location --request POST 'https://apivisionsampling.innovatemr.com/api/v2/pega/quota' \
--header 'x-access-token;' \
--header 'Content-Type: application/json' \
--data-raw '{
"Title": "Sample Quota",
"HardStop": false,
"HardStopType": 0,
"N": 100,
"GroupId": 12345,
"Conditions": {
"AGE": [
"18-35"
],
"GENDER": [
1,
2
],
"ZIPCODES": [
"23213",
"34543"
]
}
}'{
"apiStatus": "success",
"msg": "Quota is successfully created.",
"Quota": {
"HardStop": true,
"Status": 1,
"HardStopType": 0,
"N": 5,
"Title": "Male ",
"Conditions": {
"AGE": [
{
"OptionId": 1,
"AgeStart": 26,
"AgeEnd": 35
},
{
"OptionId": 2,
"AgeStart": 51,
"AgeEnd": 60
}
]
},
"GroupId": 19254,
"JobId": 8528,
"Id": 12130,
"CreatedDate": "2019-01-11T13:48:56.884Z"
}
}