MCPcopy Create free account
hub / github.com/codecombat/codecombat / update

Function update

app/core/api/classrooms.js:141–147  ·  view source on GitHub ↗
({ classroomID, updates }, options)

Source from the content-addressed store, hash-verified

139
140 // updates = { archived: '', name: ''}
141 update ({ classroomID, updates }, options) {
142 if (options == null) { options = {} }
143 return fetchJson(`/db/classroom/${classroomID}`, _.assign({}, options, {
144 method: 'PUT',
145 json: updates
146 }))
147 },
148
149 addPermission ({ classroomID, permission }) {
150 return fetchJson(`/db/classroom/${classroomID}/permission`, _.assign({}, {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected