Documentation Sweet Pricing API

PUT / productgroups / :productGroupId / nullvariant

This endpoint updates the default pricing model for an in-app store. Any user that is not in a test group sees the default pricing model.

URL

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

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
variantId Number

ID of the variant to be used as the null variant.

200

Field Type Description
variantId Number

ID of the variant being used as the null variant.

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.