← API reference
Mutation / devices

createControllerPolicy

Create a new controller policy. The referenced controller must exist in this tenant. Triggers a config.update push to the controller. Requires controller_policy:write permission.

Arguments

Policy contents

Returns UpsertControllerPolicyPayload!

Explore in a view

Device Fleet
View exact SDL
"""
Create a new controller policy. The referenced controller must exist in this tenant. Triggers a config.update push to the controller. Requires controller_policy:write permission.
"""
createControllerPolicy(
  """Policy contents"""
  input: CreateControllerPolicyInput!
): UpsertControllerPolicyPayload! @topic(names: ["devices"])

Schema reference describes the API contract. Actual access is checked by the platform for every operation.