Skip to content

Latest commit

 

History

History
42 lines (37 loc) · 2.62 KB

crmcompaniesaddresponse.md

File metadata and controls

42 lines (37 loc) · 2.62 KB

CrmCompaniesAddResponse

Example Usage

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

let value: CrmCompaniesAddResponse = {
  httpMeta: {
    response: new Response("{\"message\": \"hello world\"}", {
      headers: { "Content-Type": "application/json" },
    }),
    request: new Request("https://example.com"),
  },
  createCompanyResponse: {
    statusCode: 200,
    status: "OK",
    service: "zoho-crm",
    resource: "companies",
    operation: "add",
    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
createCompanyResponse components.CreateCompanyResponse Company created
unexpectedErrorResponse components.UnexpectedErrorResponse Unexpected error