Product Supplier POST

URI

https://{DATACENTER}.brightpearlconnect.com/public-api/{ACCOUNT}
/product-service/product/{ID}/supplier

Refer to our documentation on URI syntax for more information on how to construct URIs.

Description

You can use this message to associate an additional supplier with a product. This operation is additive; if any suppliers are already associated with the product, they will be preserved. This is a multi-resource endpoint; the request body provided will be applied to the resource you specify in the URI, and the returned HTTP status code will depend on the individual status codes per-resource as reported in the response body. For more details see our documentation on HTTP status codes.

The body of this message consists of an integer array of supplier IDs.The IDs must be valid supplier IDs and not already associated with the product.

Example 1

Add supplier 207 to the product with ID 1007.

Request URI

/product/1007/supplier

Request body

[
	207
]

Response

{
	"response": {
		"resourceErrors": {
		},
		"resourceStatuses": {
			"207": 200
		}
	}
}

Example 2

Add supplier 205, 206, 207 to the product with ID 1007.

Request URI

/product/1007/supplier

Request body

[
	205,
	206,
	207
]

Response

{
	"response": {
		"resourceErrors": {
		},
		"resourceStatuses": {
			"205": 200,
			"206": 200,
			"207": 200
		}
	}
}