PERMISSION_DENIED if the requesting user is not permitted to access the requested course, create announcements in the requested course, share a Drive attachment, or for access errors.
INVALID_ARGUMENT if the request is malformed.
NOT_FOUND if the requested course does not exist.
FAILED_PRECONDITION for the following request error:
AttachmentNotVisible
HTTP request
POST https://classroom.googleapis.com/v1/courses/{courseId}/announcements
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-04 UTC."],[[["Creates an announcement in a specified course using an HTTP POST request."],["Requires providing the `courseId` as a path parameter and an `Announcement` object in the request body."],["Returns a newly created `Announcement` object in the response body if successful."],["Needs authorization with the `https://www.googleapis.com/auth/classroom.announcements` scope."],["Potential errors include permission issues, invalid arguments, course not found, and attachment visibility problems."]]],[]]