Discovery Pages

circle-exclamation

Discovery Pages API

A DiscoveryPage object looks like:

// Configuration for the login discovery page
{
  // Primary authentication provider buttons displayed prominently
  "primary": null,
  // Secondary authentication provider buttons displayed less prominently
  "secondary": null,
  // Whether the discovery page is enabled
  "active": null
}

A DiscoveryPageEntry object looks like:

// A single authentication provider entry on the discovery page
{
  // The ID of the authentication provider
  "authentication_provider_id": 1,
  // The display label for this provider button
  "label": "Students",
  // URL to an icon image for this provider button
  "icon_url": "https://example.com/icons/students.svg"
}

DiscoveryPagesApiController#showarrow-up-right

GET /api/v1/discovery_pages

Scope: url:GET|/api/v1/discovery_pages

Get the discovery page configuration for the domain root account.

Example Request:

Example Response:

Returns a DiscoveryPage object.

DiscoveryPagesApiController#upsertarrow-up-right

PUT /api/v1/discovery_pages

Scope: url:PUT|/api/v1/discovery_pages

Update or create the discovery page configuration for the domain root account. This is a full replacement - provide the complete configuration including primary, secondary, and active fields. Any fields omitted will be removed.

Request Parameters:

Parameter
Type
Description

discovery_page[primary][][authentication_provider_id]

Required integer

The ID of an active authentication provider for this account.

discovery_page[primary][][label]

Required string

The display label for this authentication provider button.

discovery_page[primary][][icon_url]

string

URL to an icon image for this authentication provider button.

discovery_page[secondary][][authentication_provider_id]

Required integer

The ID of an active authentication provider for this account.

discovery_page[secondary][][label]

Required string

The display label for this authentication provider button.

discovery_page[secondary][][icon_url]

string

URL to an icon image for this authentication provider button.

discovery_page[active]

boolean

Whether the discovery page is enabled. Defaults to false if not provided.

Example Request:

Example Response:

Returns a DiscoveryPage object.


This documentation is generated directly from the Canvas LMS source code, available on Githubarrow-up-right.

Last updated

Was this helpful?