async update()

in src/common/backend/FWoABackend.ts [78:91]


  async update(body: any): Promise<ApiResponse> {
    const resourceType = body.resourceType;
    const id = body.id;
    try {
      const response = await this.client.put(`/${resourceType}/${id}`, body);
      return {
        statusCode: response.status,
        headers: response.headers,
        body: response.data,
      };
    } catch (e: any) {
      return this.handleError(e);
    }
  }