Get Country by ID
Changed onReturns a single country from the catalog as a JSON object, identified by its numeric id. Each field matches the corresponding element returned by Get Countries (get-countries-options). Use this for a single country lookup by id. For ISO 3166-1 code lookup or the full country list, use Get Countries (get-countries-options) instead.
OAuth Scopes: meta
Request
- Base URLhttps://companySubDomain.bamboohr.com
- AuthOAuth 2Authorization code/authorize.phpToken URL/token.phpScopesmeta
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
Country id, as a numeric string. Obtain valid ids from the id field of Get Countries (get-countries-options).
Response
The requested country as a single JSON object.
Changes
- breaking
added the pattern
^0*[1-9]\d*$to thepathrequest parameterid - breaking
the
response's property type changed fromintegertostringfor status - info
api operation id
get-meta-country-by-idremoved and replaced withget-country-by-id - info
api tag
Account Informationadded - info
for the
pathrequest parameterid, the type was generalized fromintegertostring - info
the
response's property pattern^\d+$was added for the status
- breaking