snap-interfaces-requests-control

The snap_interfaces_requests_control interface enables the prompting API and its access to prompting-related notice types. This is used internally by snapd to request and manage system resource access.

Tip

See Interface management and Supported interfaces for further details on how interfaces are used.


Developer details

Auto-connect: no

Endpoint access permissions

  • /v2/system-info
  • /v2/icons/{name}/icon
  • /v2/notices
  • /v2/notices/{id}
  • /v2/snaps/{name}
  • /v2/interfaces/requests/prompts
  • /v2/interfaces/requests/prompts/{id}
  • /v2/interfaces/requests/rules
  • /v2/interfaces/requests/rules/{id}

Code examples

The test code can be found in the snapd repository:
https://github.com/snapcore/snapd/blob/master/interfaces/builtin/snap_interfaces_requests_control_test.go

The source code for the interface is in the snapd repository:
https://github.com/snapcore/snapd/blob/master/interfaces/builtin/snap_interfaces_requests_control.go