API Reference
Timerise © 2024
Services reflect the business. The service includes entities such as host, location, and asset. Each service has its unique booking page.
Represents details of a service.
type Service {
	project: Project!
	serviceId: ID!
	shortId: NonEmptyString!
	dateTimeFrom: DateTime
	dateTimeTo: DateTime
	slots(...): [Slot]
	title: NonEmptyString!
	description: String
	instructions: String
	spaces: [Space]
	location: [Location]
	assets: [Asset]
	hosts: [User]
	currency: Currency!
	price: NonNegativeFloat!
	promoPrice: NonNegativeFloat
	qrUrl: URL
	shortUrl: URL
	formFields: [FormField]
	viewConfig: ServiceViewConfig!
	media: [Media]
	labels: [NonEmptyString]
	createdAt: DateTime!
	updatedAt: DateTime!
}
Represents details of a service view config.
type ServiceViewConfig {
	theme: Theme!
	logoUrl: URL
	textColor: HexColorCode
	linkColor: HexColorCode
	buttonTextColor: HexColorCode
	buttonBackgroundColor: HexColorCode
}
enum ServiceType {
	OFFLINE
	ONLINE
	MIXED
}
enum AcceptFileType {
	IMAGE
	AUDIO
	VIDEO
	PDF
	TEXT
}
Returns a list of services.
services(
	projectId: ID!
	locationId: ID
	assetId: ID
	hostId: ID
	dateTimeFrom: DateTime
	dateTimeTo: DateTime
	limit: NonNegativeInt
	cursor: ID
): [Service]
<aside>
🔑 Minimal role required: STAFF
</aside>
Returns a list of services.
servicesSearch(
	projectId: ID!
	query: String!
	locationId: ID
	assetId: ID
	hostId: ID
	dateTimeFrom: DateTime
	dateTimeTo: DateTime
): [Service]
<aside>
🔑 Minimal role required: STAFF
</aside>
Returns a specific service.
service(
	serviceId: ID!
	projectId: ID
): Service
<aside>
🔑 Minimal role required: USER
</aside>
Returns a list of time slot strategies.
serviceSlotsStrategies(
	projectId: ID!
	serviceId: ID!
): [ServiceSlotStrategy]
serviceSlotsStrategies arguments
<aside>
🔑 Minimal role required: ADMIN / APIADMIN
</aside>
Creates a service.
serviceCreate(
	projectId: ID!
	locationId: ID!
	hosts: [ID]!
	serviceType: ServiceType!
	assets: [ID]
	title: NonEmptyString
	description: NonEmptyString
	instructions: NonEmptyString
	currency: Currency
	price: NonNegativeFloat
	promoPrice: NonNegativeFloat
	specialPrice: NonNegativeFloat
	formConfig: ServiceFormConfigInput
	media: [MediaInput]
	labels: [NonEmptyString]
): Service
<aside>
🔑 Minimal role required: MANAGER
</aside>
Updates a service.
serviceUpdate(
	projectId: ID!
	serviceId: ID!
	locationId: ID
	hosts: [ID]
	serviceType: ServiceType
	assets: [ID]
	title: NonEmptyString
	description: NonEmptyString
	instructions: NonEmptyString
	currency: Currency
	price: NonNegativeFloat
	promoPrice: NonNegativeFloat
	specialPrice: NonNegativeFloat
	formConfig: ServiceFormConfigInput
	media: [MediaInput]
	labels: [NonEmptyString]
): Service
<aside>
🔑 Minimal role required: MANAGER
</aside>
Removes a service.
serviceDelete(
	projectId: ID!
	serviceId: ID!
): String
<aside>
🔑 Minimal role required: ADMIN / APIADMIN
</aside>
Creates a slot.
serviceSlotCreate(
	projectId: ID!
	serviceId: ID!
	quantity: NonNegativeInt!
	dateTimeFrom: DateTime!
	dateTimeTo: DateTime!
	slotType: SlotType!
	slotGroupId: ID
	title: NonEmptyString
): Slot
<aside>
🔑 Minimal role required: MANAGER
</aside>
Updates a slot.
serviceSlotUpdate(
	projectId: ID!
	serviceId: ID!
	slotId: ID!
	quantity: NonNegativeInt
	dateTimeFrom: DateTime
	dateTimeTo: DateTime
	slotType: SlotType
	title: NonEmptyString
	slotGroupId: ID
): Slot
<aside>
🔑 Minimal role required: MANAGER
</aside>
Removes a slot.
serviceSlotDelete(
	projectId: ID!
	serviceId: ID!
	slotId: ID!
): String
<aside>
🔑 Minimal role required: MANAGER
</aside>
Removes all slots in specific service.
serviceSlotsDelete(
	projectId: ID!
	serviceId: ID!
): String