(id: string, data: any)
| 57 | return response.json(); |
| 58 | }, |
| 59 | async update(id: string, data: any) { |
| 60 | const response = await fetch(`${baseUrl}/v1/agents/${id}`, { |
| 61 | method: "PUT", |
| 62 | headers: buildHeaders(), |
| 63 | body: JSON.stringify(data), |
| 64 | }); |
| 65 | return response.json(); |
| 66 | }, |
| 67 | async delete(id: string) { |
| 68 | const response = await fetch(`${baseUrl}/v1/agents/${id}`, { |
| 69 | method: "DELETE", |
nothing calls this directly
no test coverage detected