Jump to: navigation, search

Query Parameters

Method

GET

Syntax

 
/grs/v1/tenant/{tenantId}/package/{packageId}/parameters

Request Body

N/A

Response Body

 
{   
   "parms":[   
      {   
         "name":"age",
         "type":"integer",
         "constraints":"0::99",
         "keysAndValues":null
      },
      {   
         "name":"education",
         "type":"list",
         "constraints":null,
         "keysAndValues":[   
            {   
               "key":"dropout",
               "value":"High School Drop-out"
            },
            {   
               "key":"ged",
               "value":"G.E.D."
            },
            {   
               "key":"hs",
               "value":"High School"
            },
            {   
               "key":"associate",
               "value":"Associate Degree"
            },
            {   
               "key":"bachelor",
               "value":"Bachelor Degree"
            },
            {   
               "key":"master",
               "value":"Master's Degree"
            },
            {   
               "key":"phd",
               "value":"phD"
            }
         ]
      }
      {   
         "name":"zipCode",
         "type":"string",
         "constraints":">^\\d{5}$|^\\d{5}-\\d{4}$ ",
         "keysAndValues":null
      }
   ]
}

HTTP Status Codes

  • 200 OK—Response body provided
  • 401 Unauthorized—APIToken not valid
  • 403 Forbidden—User does not have permission for the specified tenant ID.
  • 404 Not Found—could not find specified package ID. Use Query Packages to obtain correct ID.
  • 503—Service Unavailable

Notes

Returns a list of parameter information based on the combination of all templates/versions assigned to the specified rule package. For each parameter (eg, "age", "gender", etc) it returns the type, any constraints, and if a list of selectable values are returned, it returns the list of keys/values.

For constraints, integer/numeric parms can have lower/upper bounds rendered as: "constraints" : "0::99"

If there is no upper bound, lower bound 0: "constraints: : "0::"

No lower bound, upper bound 99: "constraints" : "::99"

Strings can have regex expressions such as: "constraints":">^\\d{5}$|^\\d{5}-\\d{4}$ ",

This page was last edited on May 16, 2017, at 08:20.
Comments or questions about this documentation? Contact us for support!