We’ve migrated our documentation to a new site, which means some URLs have changed.
Audience

/conversion/product/create

Create a conversion product object. (See API authentication for general information how to use these APIs.)

Request

The request object is the conversion product object you want to create. Observe that the 'id' and 'deleted' fields are not allowed (as they are assigned by the system). The mandatory fields are 'siteGroupId', 'siteId', 'type' and 'name'.

Response

The response is the 'id' of the conversion product object that has been created.

Example

$ cx.py /conversion/product/create '{ "siteGroupId": "123", "siteId": "444", "type": "subscription", "name": "My first product" }'
{
 "id": "777"
}
$ cx.py /conversion/product '{ "id": "777" }'
{
 "siteGroupId": "123",
 "siteId": "444",
 "id": "8n3fb6l8q1by",
 "type": "subscription",
 "name": "My first product",
 "deleted": false
}

Last updated: