Communication Channels
API for accessing users' email addresses, SMS phone numbers, and X.com communication channels.
In this API, the :user_id
parameter can always be replaced with self
if the requesting user is asking for his/her own information.
A CommunicationChannel object looks like:
CommunicationChannelsController#index
GET /api/v1/users/:user_id/communication_channels
GET /api/v1/users/:user_id/communication_channels
Scope: url:GET|/api/v1/users/:user_id/communication_channels
Returns a paginated list of communication channels for the specified user, sorted by position.
Example Request:
Returns a list of CommunicationChannel objects.
CommunicationChannelsController#create
POST /api/v1/users/:user_id/communication_channels
POST /api/v1/users/:user_id/communication_channels
Scope: url:POST|/api/v1/users/:user_id/communication_channels
Creates a new communication channel for the specified user.
Request Parameters:
Example Request:
Returns a CommunicationChannel object.
CommunicationChannelsController#destroy
DELETE /api/v1/users/:user_id/communication_channels/:id
DELETE /api/v1/users/:user_id/communication_channels/:id
Scope: url:DELETE|/api/v1/users/:user_id/communication_channels/:id
DELETE /api/v1/users/:user_id/communication_channels/:type/:address
DELETE /api/v1/users/:user_id/communication_channels/:type/:address
Scope: url:DELETE|/api/v1/users/:user_id/communication_channels/:type/:address
Delete an existing communication channel.
Example Request:
Returns a CommunicationChannel object.
CommunicationChannelsController#delete_push_token
DELETE /api/v1/users/self/communication_channels/push
DELETE /api/v1/users/self/communication_channels/push
Scope: url:DELETE|/api/v1/users/self/communication_channels/push
Example Request:
© Instructure, Inc. Generated on Wed Nov 6 14:20:05 2024 This documentation is generated directly from the Canvas LMS source code, available on Github.
Last updated