Skip to main content

CreateLocation

Creates a location that can be attached to an ILT event.

CreateLocation(
name: String!
room: String
address1: String!
address2: String
city: String!
state: String
zipCode: String
country: String
timeZone: String
): Location!

Directives

authAccess

This requires the current user to be in MANAGER role.

Arguments

CreateLocation.name ● String! non-null scalar

CreateLocation.room ● String scalar

CreateLocation.address1 ● String! non-null scalar

CreateLocation.address2 ● String scalar

CreateLocation.city ● String! non-null scalar

CreateLocation.state ● String scalar

For US states, 2-letter IANA state code

CreateLocation.zipCode ● String scalar

CreateLocation.country ● String scalar

2-letter ISO 3166 country code

CreateLocation.timeZone ● String scalar

IANA time zone ID (ex. America/New_York)

Type

Location object

Examples

Run in Postman

Query:

CreateLocation(
$name: String!,
$room: String,
$address1: String!,
$address2: String,
$city: String!,
$state: String,
$zipCode: String,
$country: String,
$timeZone: String
) {
CreateLocation(
name: $name,
room: $room,
address1: $address1,
address2: $address2,
city: $city,
state: $state,
zipCode: $zipCode,
country: $country,
timeZone: $timeZone
) {
id
name
room
address1
address2
city
state
zipCode
country
timeZone
}
}

Variables:

{
"name": "xyz789",
"room": "xyz789",
"address1": "xyz789",
"address2": "xyz789",
"city": "abc123",
"state": "abc123",
"zipCode": "xyz789",
"country": "xyz789",
"timeZone": "xyz789"
}

Response:

{
"data": {
"CreateLocation": {
"id": "9e79b4ce-784c-4dd3-bb23-0cdb040c60b7",
"name": "xyz789",
"room": "abc123",
"address1": "xyz789",
"address2": "xyz789",
"city": "abc123",
"state": "xyz789",
"zipCode": "abc123",
"country": "xyz789",
"timeZone": "xyz789"
}
}
}