absenceRegions

Returns locations for the specified country.

Changed on

Returns the country's locations as ISO 3166-2 codes, including regions and subregions when available. An unsupported country code returns not found.

<Check title="Required Permissions" icon="key">Any authenticated user.</Check>

get/absenceregions/countries/{countryCode}/locations

Request

  • Base URL: https://api.awork.com/api/v1
  • URL: https://api.awork.com/api/v1/absenceregions/countries/{countryCode}/locations
  • Auth: HTTP bearer

Path parameters

countryCodestring required

The country code.

Response

OK

codestring nullable

The ISO-3166-2 location code.

namestring nullable

The name of the location.

Changes

    • warning

      deleted the header request parameter Authorization

    • info

      the endpoint scheme security oauth2 was added to the API

    • info

      api operation id GetAbsenceRegionsCountryLocationsByCountryCode removed and replaced with absenceRegions_GetAbsenceRegionsCountryLocationsByCountryCode