Skip to content

Latest commit

 

History

History
73 lines (46 loc) · 2.18 KB

PublicObjectApi.md

File metadata and controls

73 lines (46 loc) · 2.18 KB

\PublicObjectApi

All URIs are relative to https://api.hubapi.com

Method HTTP request Description
PostCrmV3ObjectsLineItemsMergeMerge Post /crm/v3/objects/line_items/merge Merge two line items with same type

PostCrmV3ObjectsLineItemsMergeMerge

SimplePublicObject PostCrmV3ObjectsLineItemsMergeMerge(ctx).PublicMergeInput(publicMergeInput).Execute()

Merge two line items with same type

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    publicMergeInput := *openapiclient.NewPublicMergeInput("ObjectIdToMerge_example", "PrimaryObjectId_example") // PublicMergeInput | 

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.PublicObjectApi.PostCrmV3ObjectsLineItemsMergeMerge(context.Background()).PublicMergeInput(publicMergeInput).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `PublicObjectApi.PostCrmV3ObjectsLineItemsMergeMerge``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `PostCrmV3ObjectsLineItemsMergeMerge`: SimplePublicObject
    fmt.Fprintf(os.Stdout, "Response from `PublicObjectApi.PostCrmV3ObjectsLineItemsMergeMerge`: %v\n", resp)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiPostCrmV3ObjectsLineItemsMergeMergeRequest struct via the builder pattern

Name Type Description Notes
publicMergeInput PublicMergeInput

Return type

SimplePublicObject

Authorization

oauth2, private_apps

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json, /

[Back to top] [Back to API list] [Back to Model list] [Back to README]