Skip to content

Latest commit

 

History

History
75 lines (46 loc) · 2.54 KB

InventoryStockSourceLinksDeleteAPI.md

File metadata and controls

75 lines (46 loc) · 2.54 KB

\InventoryStockSourceLinksDeleteAPI

All URIs are relative to http://example.com/rest/default

Method HTTP request Description
PostV1InventoryStocksourcelinksdelete Post /V1/inventory/stock-source-links-delete inventory/stock-source-links-delete

PostV1InventoryStocksourcelinksdelete

ErrorResponse PostV1InventoryStocksourcelinksdelete(ctx).PostV1InventoryStocksourcelinksRequest(postV1InventoryStocksourcelinksRequest).Execute()

inventory/stock-source-links-delete

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/Hevelop/go-client-magento"
)

func main() {
	postV1InventoryStocksourcelinksRequest := *openapiclient.NewPostV1InventoryStocksourcelinksRequest([]openapiclient.InventoryApiDataStockSourceLinkInterface{*openapiclient.NewInventoryApiDataStockSourceLinkInterface()}) // PostV1InventoryStocksourcelinksRequest |  (optional)

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

Path Parameters

Other Parameters

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

Name Type Description Notes
postV1InventoryStocksourcelinksRequest PostV1InventoryStocksourcelinksRequest

Return type

ErrorResponse

Authorization

No authorization required

HTTP request headers

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

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