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 |
SimplePublicObject PostCrmV3ObjectsLineItemsMergeMerge(ctx).PublicMergeInput(publicMergeInput).Execute()
Merge two line items with same type
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)
}
Other parameters are passed through a pointer to a apiPostCrmV3ObjectsLineItemsMergeMergeRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
publicMergeInput | PublicMergeInput |
- Content-Type: application/json
- Accept: application/json, /
[Back to top] [Back to API list] [Back to Model list] [Back to README]