Method: workinglocations.day.write

Stay organized with collections Save and categorize content based on your preferences.

Changes the all-day working location for the specified day. To remove a working location, set location field to NoLocation.

HTTP request

POST https://calendaruseravailability.googleapis.com/v1alpha/{calendar=workinglocations/*}/day:write

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
calendar

string

Required. The calendar where you want to set a working location. For example, "workinglocations/sara@example.com".

Request body

The request body contains data with the following structure:

JSON representation
{
  "date": {
    object (Date)
  },
  "location": {
    object (WorkingLocation)
  }
}
Fields
date

object (Date)

Required. The date to modify.

location

object (WorkingLocation)

Required. The working location to set.

Response body

If successful, the response body is empty.

Authorization Scopes

Requires one of the following OAuth scopes:

  • https://www.googleapis.com/auth/calendar
  • https://www.googleapis.com/auth/calendar.workinglocation

For more information, see the OAuth 2.0 Overview.