Partial Update Or Create Item
PATCH/v1/sandbox/:sandbox_id/item/:item_id
Partial update of Item. Requires permission sandbox:config:edit.
Request
Path Parameters
Sandbox ID
- application/json
Body
required
custom_data
object
Possible values: non-empty and <= 125 characters
Possible values: <= 250 characters
Possible values: [unit, recipe, recipe_with_price_reduction, entitlement]
The type of item.
Possible values: > 0 and <= 1
Responses
- 200
- 422
Successful Response
- application/json
- Schema
- Example (from schema)
Schema
custom_data
object
Custom data associated with the resource
Possible values: non-empty and <= 125 characters
Name of the resource
Possible values: <= 250 characters
Description of the resource
Possible values: [unit, recipe, recipe_with_price_reduction, entitlement]
The type of item.
This is only valid for an entitlement Item. When this item is granted and Inventory Session creation, this is the Loot ID that will be fulfilled.
The XP Table that is used to determine the Player's level for this XP. The level increase occurs when the quantity of this Item increases above the minimum XP of an XP Level. This is only valid for an unit Item.
The vendor containing the rewards to grant to the player as they level up. If a level_xp_table_id is configured, when this item is granted to a player their quantity is converted to a level using that table and rewards are granted based on the sort_order of loot inside this reward vendor. If there is no level_xp_table_id configured, the quantity is used to select loot to grant from this reward vendor. This is only valid for an unit Item.
The Inventory Bucket Use Rule Set ID that determines how this item can be used across buckets.
Possible values: > 0 and <= 1
The amount the price is discounted. This is a percentage between 0 and 1. For example, 0.25 would be a 25% discount.
If true, the coupon will be consumed when used by decreasing the quantity in the Player's Inventory by 1. If false, the coupon will remain in the Player's inventory after use.
Default value: ``
List of Loot IDs this item can discount
Name of corresponding currency Item ID
The Item ID of the currency to be used for the coupon.
Default value: 0
Maximum ownership (permanent+rental) count that a player is allowed for this item ID
The Legacy Item ID.
ID of the Sandbox
Account ID of the user who last modified the resource
Timestamp of when the resource was last modified
Timestamp of when the resource was created
The Item ID.
Name corresponding entitled Loot ID
Name of corresponding level Vendor ID
Name of corresponding level XP Table ID
Name of corresponding Inventory Bucket Use Rule Set ID
{
"custom_data": {},
"name": "string",
"description": "string",
"item_type": "unit",
"entitled_loot_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"level_xp_table_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"level_vendor_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"inventory_bucket_use_rule_set_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"coupon_discount_percentage": 0,
"coupon_consume_on_use": true,
"coupon_discount_loot": [
"3fa85f64-5717-4562-b3fc-2c963f66afa6"
],
"coupon_discount_currency_item_name": "string",
"coupon_discount_currency_item_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"total_ownership_max": 0,
"legacy_item_id": 0,
"sandbox_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"last_modified_account_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"last_modified_timestamp": "2024-07-29T15:51:28.071Z",
"created_timestamp": "2024-07-29T15:51:28.071Z",
"item_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"entitled_loot_name": "string",
"level_vendor_name": "string",
"level_xp_table_name": "string",
"inventory_bucket_use_rule_set_name": "string"
}
Validation Error
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
- MOD1
- MOD2
]
]
detail
object[]
loc
object[]
required
anyOf
string
integer
{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}