MCPcopy Index your code
hub / github.com/TaskingAI/TaskingAI / api_update

Function api_update

backend/app/routes/auto/record.py:130–148  ·  view source on GitHub ↗
(
        request: Request,
        data: RecordUpdateRequest,
        path_params: Dict = Depends(path_params_required),
        auth_info: Dict = Depends(auth_info_required),
    )

Source from the content-addressed store, hash-verified

128 responses={422: {"description": "Unprocessable Entity"}},
129 )
130 async def api_update(
131 request: Request,
132 data: RecordUpdateRequest,
133 path_params: Dict = Depends(path_params_required),
134 auth_info: Dict = Depends(auth_info_required),
135 ):
136 check_path_params(
137 model_operator=ops,
138 object_id_required=True,
139 path_params=path_params,
140 )
141
142 entity = await ops.update(
143 update_dict=data.model_dump(exclude_none=True),
144 **path_params,
145 )
146 return RecordUpdateResponse(
147 data=entity.to_response_dict(),
148 )
149
150 @router.delete(
151 path="/collections/{collection_id}/records/{record_id}",

Callers

nothing calls this directly

Calls 5

check_path_paramsFunction · 0.85
updateMethod · 0.45
model_dumpMethod · 0.45
to_response_dictMethod · 0.45

Tested by

no test coverage detected