Skip to main content
MUTATION
setProtocolSites(protocolId: String!, siteIds: [Int!]!): [Location!]!

Arguments

protocolId
String!
required

Id of the protocol.

siteIds
[Int!]!
required

Ids of the sites the protocol is restricted to. Set as an empty list if there are no site restrictions.

Returns

children

Locations directly under this one. Empty if there are no child locations.

id
Int!

Id of the location.

isSite
Boolean!

True when the location is a site.

location
String!

Name of the location.

parentId
Int

Id of the location this one sits under.

tags
[String!]

Where the location can be picked: any of 'inventory' (Inventory), 'inspections' (Inspections) or 'incidents' (Incidents). Empty if there are no tags.

Mutation
Variables
Response