Documentation Sweet Pricing API

PUT / productgroups / :productGroupId / configuration

This endpoint updates a configuration object, which contains a list of fields that can be used by the dynamic pricing algorithm.

URL

https://api.sweetpricing.com/v1.0/productgroups/:productGroupId/configuration

Header

Field Type Description
Authorization String

Header of form api-key <API key>

Authorization: api-key <API Key>

Parameters

Field Type Description
:productGroupId Number

Product group ID

Body

Field Type Description
filterfields Object[]
filterfields.id Number

ID of the filter field

{
	"filterfields": [{
		"id": 1
	}]
}

200

Field Type Description
filterfields Object[]
filterfields.id Number

ID of the filter field

{
	"filterfields": [{
		"id": 1
	}]
}

401

Name Description
401

You are not authenticated to perform the request.

403

Name Description
403

You are not allowed to view/modify this resource.

404

Name Description
404

Resource not found.