Skip to content

Latest commit

 

History

History
42 lines (37 loc) · 2.63 KB

crmcompaniesdeleteresponse.md

File metadata and controls

42 lines (37 loc) · 2.63 KB

CrmCompaniesDeleteResponse

Example Usage

import { CrmCompaniesDeleteResponse } from "@apideck/unify/models/operations";

let value: CrmCompaniesDeleteResponse = {
  httpMeta: {
    response: new Response("{\"message\": \"hello world\"}", {
      headers: { "Content-Type": "application/json" },
    }),
    request: new Request("https://example.com"),
  },
  deleteCompanyResponse: {
    statusCode: 200,
    status: "OK",
    service: "zoho-crm",
    resource: "companies",
    operation: "delete",
    data: {
      id: "12345",
    },
  },
  unexpectedErrorResponse: {
    statusCode: 400,
    error: "Bad Request",
    typeName: "RequestHeadersValidationError",
    message: "Invalid Params",
    detail: "Missing Header: x-apideck-consumer-id",
    ref: "https://developers.apideck.com/errors#unauthorizederror",
  },
};

Fields

Field Type Required Description
httpMeta components.HTTPMetadata ✔️ N/A
deleteCompanyResponse components.DeleteCompanyResponse Company deleted
unexpectedErrorResponse components.UnexpectedErrorResponse Unexpected error