Request Parameter Data Types

Request Parameter Data Types

Although all parameters are sent as strings over HTTP, we have specified the types of parameters used in the HTTP API requests to help you identify the values that can be passed.

  • Boolean: Possible values are true or false.

    Example: ?variable=true
  • Integer: Possible values are positive whole numbers.

    Example: ?variable=1234
  • Float: Possible values are positive numbers with a decimal component.

    Example: ?variable=12.34
  • String: Possible values are context-dependent sequence of characters.

    Example: ?variable=abc123.com
  • Array: Possible values are any context-dependent collection of values of the same type. Arrays are specified by assigning different values of the same type to the same parameter name multiple times. The order in which values are assigned does not matter.

    Example: ?variable=1&variable=2&variable=3&variable=4
  • Map: Possible values are any collection of name-value pairs where name is of type string and value can be any context-dependent type. Name-value pairs are associated with each other by adding the same numeric suffix to them. The numeric suffix, starts from 1 and is incremented for each subsequent name-value pair.

    Example: ?domain-name1=abc.com&nameserver1=abc.example.com&domain-name2=xyz.com&nameserver2=xyz.example.com This associates abc.example.com with abc.com and xyz.example.com with xyz.com