Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Announcing new REST APIs in beta for rooms, time zones, and languages

Today we're pleased to announce some new APIs that are available on the beta endpoint for the Outlook Rest Api. These are currently only available via the Outlook endpoint (https://outlook.office.com/api/beta) and not the Microsoft Graph API endpoint.

Try these new APIs out today, either in your code, or on the Outlook OAuth Sandbox. Leave feedback on these new APIs on UserVoice.

Meeting rooms

One of the top-requested features for the Outlook REST API was the ability to list meeting rooms in an organziation. We've added the ability to find both rooms and room lists.

Get room lists

Request

GET https://outlook.office.com/api/beta/me/findroomlists

Response

{
  "value": [
    {
      "Name": "Building 1 Rooms",
      "Address": "[email protected]"
    },
    {
      "Name": "Building 2 Rooms",
      "Address": "[email protected]"
    }
  ]
}

Get rooms

Request (all rooms)

GET https://outlook.office.com/api/beta/me/findrooms

Request (rooms in a room list)

GET https://outlook.office.com/api/beta/me/findrooms(roomlist='[email protected]')

Response

{
  "value": [
    {
      "Name": "Conf Room Adams",
      "Address": "[email protected]"
    },
    {
      "Name": "Conf Room Crystal",
      "Address": "[email protected]"
    },
    {
      "Name": "Conf Room Stevens",
      "Address": "[email protected]"
    }
  ]
}

Time zones

The API has support for specifying a time zone via the Prefer header to get back date times in the requested time zone. However, figuring out which time zones are supported has been a little tricky. Now, apps can request a list of all supported time zones from the server, in either Windows or IANA format.

Request

GET https://outlook.office.com/api/beta/me/SupportedTimeZones(TimeZoneStandard='Windows')

Response

{
  "value": [
    {
      "Alias": "Dateline Standard Time",
      "DisplayName": "(UTC-12:00) International Date Line West"
    },
    {
      "Alias": "Samoa Standard Time",
      "DisplayName": "(UTC+13:00) Samoa"
    },
    {
      "Alias": "UTC-11",
      "DisplayName": "(UTC-11:00) Coordinated Universal Time-11"
    },
    {
      "Alias": "Aleutian Standard Time",
      "DisplayName": "(UTC-10:00) Aleutian Islands"
    },
    ...
  ]
}

Languages

You can also request a list of supported languages from the server.

Request

GET https://outlook.office.com/api/beta/me/SupportedLanguages

Response

{
  "value": [
    {
      "Locale": "af-ZA",
      "DisplayName": "Afrikaans (Suid-Afrika)"
    },
    {
      "Locale": "am-ET",
      "DisplayName": "አማርኛ (ኢትዮጵያ)"
    },
    {
      "Locale": "ar-AE",
      "DisplayName": "العربية (الإمارات العربية المتحدة)"
    },
    {
      "Locale": "ar-BH",
      "DisplayName": "العربية (البحرين)"
    },
    ...
  ]
}

Share the post

Announcing new REST APIs in beta for rooms, time zones, and languages

×

Subscribe to Msdn Blogs | Get The Latest Information, Insights, Announcements, And News From Microsoft Experts And Developers In The Msdn Blogs.

Get updates delivered right to your inbox!

Thank you for your subscription

×