MCPcopy Create free account
hub / github.com/code-dot-org/code-dot-org / put

Function put

apps/src/util/HttpClient.ts:123–130  ·  view source on GitHub ↗
(
  endpoint: string,
  body?: BodyInit,
  useAuthenticityToken = false,
  headers: Record<string, string> = {}
)

Source from the content-addressed store, hash-verified

121}
122
123async function put(
124 endpoint: string,
125 body?: BodyInit,
126 useAuthenticityToken = false,
127 headers: Record<string, string> = {}
128): Promise<Response> {
129 return sendRequest('PUT', endpoint, body, useAuthenticityToken, headers);
130}
131
132async function post(
133 endpoint: string,

Callers 15

downloadMethod · 0.85
generate_music_fileMethod · 0.85
FilesApiClass · 0.85
NetSimApiClass · 0.85
ChannelsApiClass · 0.85
put_objectMethod · 0.85
copy_objectMethod · 0.85
rename_objectMethod · 0.85
put_object_versionMethod · 0.85
restore_files_versionMethod · 0.85
create_thumbnailMethod · 0.85

Calls 1

sendRequestFunction · 0.85

Tested by 11

put_objectMethod · 0.68
copy_objectMethod · 0.68
rename_objectMethod · 0.68
put_object_versionMethod · 0.68
restore_files_versionMethod · 0.68
create_thumbnailMethod · 0.68
create_attendanceMethod · 0.68