(data: any)
| 49 | return response.json(); |
| 50 | }, |
| 51 | async create(data: any) { |
| 52 | const response = await fetch(`${baseUrl}/v1/agents`, { |
| 53 | method: "POST", |
| 54 | headers: buildHeaders(), |
| 55 | body: JSON.stringify(data), |
| 56 | }); |
| 57 | return response.json(); |
| 58 | }, |
| 59 | async update(id: string, data: any) { |
| 60 | const response = await fetch(`${baseUrl}/v1/agents/${id}`, { |
| 61 | method: "PUT", |
nothing calls this directly
no test coverage detected