Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CAL-3699] respect the user default user location when creating event type via API v1 #15022

Open
milospuac opened this issue May 14, 2024 · 1 comment
Labels
api area: API, enterprise API, access token, OAuth event-types area: event types, event-types Medium priority Created by Linear-GitHub Sync
Milestone

Comments

@milospuac
Copy link
Contributor

From SyncLinear.com | CAL-3699

Copy link

dosubot bot commented May 14, 2024

To address the issue CAL-3699 and ensure the user's default location is respected when creating an event type via API v1, you should use the defaultValueVariable property. This property should be set to reflect the user's default setting, such as hostDefault for the user's default conferencing app. Here's an example for setting up an event type with the user's default conferencing app:

{
  default: true,
  type: DefaultEventLocationTypeEnum.Conferencing,
  iconUrl: "/link.svg",
  organizerInputType: null,
  label: "organizer_default_conferencing_app",
  variable: "hostDefault",
  defaultValueVariable: "hostDefault",
  category: "conferencing",
  messageForOrganizer: "",
}

Make sure the defaultValueVariable matches the user's default preference you want to apply. This ensures the API respects the user's default location settings when creating or updating event types. For more detailed implementation, refer to the source code.

Details

Sources


About Dosu
This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.

Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.

To continue the conversation, mention @dosu.

@dosubot dosubot bot added api area: API, enterprise API, access token, OAuth event-types area: event types, event-types labels May 14, 2024
@PeerRich PeerRich added the Medium priority Created by Linear-GitHub Sync label May 16, 2024
@PeerRich PeerRich added this to the v4.2 milestone May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api area: API, enterprise API, access token, OAuth event-types area: event types, event-types Medium priority Created by Linear-GitHub Sync
Projects
None yet
Development

No branches or pull requests

2 participants