Когда мы пытаемся исправить текст в объявлении Google Classroom с помощью REST API, мы получаем ошибку.Если мы удалим текст из updateMask, это сработает.Другие также сообщили об этом, но ответа нет.Вот подробности:
Request URL: https://classroom.googleapis.com/v1/courses/xxxxxxx2746/announcements/xxxxxxx8639?updateMask=text,state
Request Method: PATCH
Payload:
{text: "Live Session at 1/31/2019", state: "PUBLISHED"}
Response:
Status Code: 400
Remote Address: 172.217.15.106:443
{
"error": {
"code": 400,
"message": "updateMask: Non-supported update mask fields specified",
"status": "INVALID_ARGUMENT",
"details": [
{
"@type": "type.googleapis.com/google.rpc.BadRequest",
"fieldViolations": [
{
"field": "updateMask",
"description": "Non-supported update mask fields specified"
}
]
}
]
}
}