MCPcopy Index your code
hub / github.com/xerrors/Yuxi / apiPut

Function apiPut

web/src/apis/base.js:205–216  ·  view source on GitHub ↗
(url, data = {}, options = {}, requiresAuth = true, responseType = 'json')

Source from the content-addressed store, hash-verified

203 * @returns {Promise} - 请求结果
204 */
205export function apiPut(url, data = {}, options = {}, requiresAuth = true, responseType = 'json') {
206 return apiRequest(
207 url,
208 {
209 method: 'PUT',
210 body: data instanceof FormData ? data : JSON.stringify(data),
211 ...options
212 },
213 requiresAuth,
214 responseType
215 )
216}
217
218export function apiAdminPut(url, data = {}, options = {}, responseType = 'json') {
219 checkAdminPermission()

Callers 10

agent_api.jsFile · 0.90
agent_env_api.jsFile · 0.90
updateSkillFileFunction · 0.90
updateSkillDependenciesFunction · 0.90
updateSkillShareConfigFunction · 0.90
updateSkillEnabledFunction · 0.90
apikey_api.jsFile · 0.90
saveWorkspaceFileContentFunction · 0.90
apiAdminPutFunction · 0.85
apiSuperAdminPutFunction · 0.85

Calls 1

apiRequestFunction · 0.85

Tested by

no test coverage detected