Info Value
Updated on 18 September 2018
Response format JSON
HTTP Methods POST
Response object Item save
API Version 1.0

Currency/Item/Save

Create or update an item.

Parameters

If a bundle_id is specified, that bundle will be updated. If not, then the bundle will be created.

Parameter Type Description
item_id
(optional)
integer The ID of the item
item_category_id
(optional)
integer The category ID of the item
item_type_id
(optional)
integer The ID of the item's type (e.g. consumable or non-consumable)
child_items
(optional)
array An array of child item objects. Setting to false when updating will clear the child items for the item.
item_code
(optional)
string The code of the item
item_name
(optional)
string The item name
item_description
(optional)
string The item description
item_attributes
(optional)
string A JSON-encoded string of the item's attributes
max_allowed
(optional)
integer The maximum number of the item that can exist in a user's inventory
available_individually
(optional)
boolean Whether or not the item can be obtained individually
enabled
(optional)
boolean Whether or not the item is enabled

Child Item Object

Parameter Type Description
item_id integer The ID of the child item
quantity integer The quantity of the child item included with the parent item

Response

Element Type Description
item_id integer The ID of the item saved
success boolean Whether the operation succeeded

Example

Request

https://api.miniclip.com/json/?app_id=##&secret=##&method=Currency/Item/Save&item_id=##&item_name=##

Sample response

{
	"item_id" : 123,
	"success" : true
}