Delete learningCourseActivity

Namespace: microsoft.graph

Delete a learningCourseActivity object by using the course activity ID of either an assignment or a self-initiated activity.

Note: Learning course activities can be managed by a provider only when isCourseAcitvitySyncEnabled is set to true. To update the value, use the Update learningProvider method.

This API is supported in the following national cloud deployments.

Global service US Government L4 US Government L5 (DOD) China operated by 21Vianet

Permissions

One of the following permissions is required to call this API based on the type of learning course activity. To learn more, including how to choose permissions, see Permissions.

Permission type Permissions (from least to most privileged)
Delegated (work or school account) Not supported.
Delegated (personal Microsoft account) Not supported.
Application LearningAssignedCourse.ReadWrite.All, LearningSelfInitiatedCourse.ReadWrite.All

HTTP request

DELETE /employeeExperience/learningProviders/{registrationId}/learningCourseActivities/{id}

Request headers

Name Description
Authorization Bearer {token}. Required.

Request body

Do not supply a request body for this method.

Response

If successful, this method returns a 204 No Content response code.

Examples

Request

The following is an example of a request.

DELETE https://graph.microsoft.com/v1.0/employeeExperience/learningProviders/13727311-e7bb-470d-8b20-6a23d9030d70/learningCourseActivities/be2f4d76-e020-11ec-9d64-0242ac120002

Response

The following is an example of the response.

HTTP/1.1 204 No Content