Projects

Projects overview

Projects are independent collections of services, bookings, assets, locations and users.

Object types

Project

Represents information about a project, such as title, media and theme.

type Project {
	projectId: ID!
	shortId: NonEmptyString!
	defaultLocale: Locale!
	title: NonEmptyString!
	description: NonEmptyString
	theme: Theme!
	logoUrl: URL
	coverUrl: URL
	textColor: HexColorCode
	linkColor: HexColorCode
	buttonTextColor: HexColorCode
	buttonBackgroundColor: HexColorCode
	labels: [NonEmptyString]
	createdAt: DateTime!
	updatedAt: DateTime!
}

Project fields

Field nameValue typeNon-nullDescription
projectId
ID
true
A unique identifier for the project.
shortId
NonEmptyString
true
A human-readable identifier for the project.
defaultLocale
Local
true
title
NonEmptyString
true
description
NonEmptyString
false
theme
Theme
true
logoUrl
URL
false
coverUrl
URL
false
textColor
HexColorCode
false
linkColor
HexColorCode
false
buttonTextColor
HexColorCode
false
buttonBackgroundColor
HexColorCode
false
labels
[NonEmptyString]
false
createdAt
DateTime
true
The date and time when a project was created.
updatedAt
DateTime
true
The date and time when a project was updated.

Queries

projects

List of projects.

projects(
	limit: NonNegativeInt
	cursor: ID
): [Project]

projects arguments

Field nameValue typeRequiredDescription
limit
NonNegativeInt
false
cursor
ID
false
🔑
Minimal role required: STAFF

project

Returns a Project resource by ID.

project(
	projectId: ID!
): Project

project arguments

Field nameValue typeRequiredDescription
projectId
ID
true
A unique identifier for the project.
🔑
Minimal role required: STAFF

Mutations

projectCreate

Create a new project.

projectCreate(
	title: NonEmptyString!
	defaultLocale: Locale
	description: NonEmptyString
	theme: Theme
	logoUrl: URL
	coverUrl: URL
	textColor: HexColorCode
	linkColor: HexColorCode
	buttonTextColor: HexColorCode
	buttonBackgroundColor: HexColorCode
	labels: [NonEmptyString]
): Projec

projectCreate arguments

Field nameValue typeRequiredDescription
title
NonEmptyString
true
defaultLocale
Locale
false
description
NonEmptyString
false
theme
Theme
false
logoUrl
URL
false
coverUrl
URL
false
textColor
HexColorCode
false
linkColor
HexColorCode
false
buttonTextColor
HexColorCode
false
buttonBackgroundColor
HexColorCode
false
labels
[NonEmptyString]
false
🔑
Minimal role required: SUPERADMIN

projectUpdate

Updates a project's attributes.

projectUpdate(
	projectId: String!
	title: NonEmptyString
	defaultLocale: Locale
	description: NonEmptyString
	theme: Theme
	logoUrl: URL
	coverUrl: URL
	textColor: HexColorCode
	linkColor: HexColorCode
	buttonTextColor: HexColorCode
	buttonBackgroundColor: HexColorCode
	labels: [NonEmptyString]
): Project

projectUpdate arguments

Field nameValue typeRequiredDescription
projectId
ID
true
A unique identifier for the project.
title
NonEmptyString
false
defaultLocale
Locale
false
description
NonEmptyString
false
theme
Theme
false
logoUrl
URL
false
coverUrl
URL
false
textColor
HexColorCode
false
linkColor
HexColorCode
false
buttonTextColor
HexColorCode
false
buttonBackgroundColor
HexColorCode
false
labels
[NonEmptyString]
false
🔑
Minimal role required: MANAGER

projectDelete

Deletes a project.

projectDelete(
	projectId: ID!
): String

projectDelete arguments

Field nameValue typeRequiredDescription
projectId
ID
true
A unique identifier for the project.
🔑
Minimal role required: ADMIN / APIADMIN