items
Update Item
items
Update Item
Updates an existing item’s properties, attributes, and classifiers.
PUT
/
items
/
{id}
curl --request PUT \
--url https://forgegames.org/api/items/{id} \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"thumbnail": "<string>",
"rollNumerator": 123,
"classifierOptionIds": {},
"attributes": [
{
"attributeId": "<string>",
"min": 123,
"max": 123
}
]
}'
{
"id": "<string>",
"name": "<string>",
"thumbnail": "<string>",
"rollNumerator": 123,
"createdAt": "<string>",
"updatedAt": "<string>",
"teamId": "<string>",
"classifiers": [
{
"classifierId": "<string>",
"classifierOption": {
"id": "<string>",
"name": "<string>",
"dropRateMultiplier": 123,
"classifierId": "<string>"
}
}
],
"attributes": [
{
"id": "<string>",
"itemId": "<string>",
"attributeId": "<string>",
"min": 123,
"max": 123
}
]
}
Authorizations
Basic authentication header of the form Basic <encoded-value>
, where <encoded-value>
is the base64-encoded string username:password
.
Path Parameters
Body
application/json
Response
200
application/json
Successful response
The response is of type object
.
curl --request PUT \
--url https://forgegames.org/api/items/{id} \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"thumbnail": "<string>",
"rollNumerator": 123,
"classifierOptionIds": {},
"attributes": [
{
"attributeId": "<string>",
"min": 123,
"max": 123
}
]
}'
{
"id": "<string>",
"name": "<string>",
"thumbnail": "<string>",
"rollNumerator": 123,
"createdAt": "<string>",
"updatedAt": "<string>",
"teamId": "<string>",
"classifiers": [
{
"classifierId": "<string>",
"classifierOption": {
"id": "<string>",
"name": "<string>",
"dropRateMultiplier": 123,
"classifierId": "<string>"
}
}
],
"attributes": [
{
"id": "<string>",
"itemId": "<string>",
"attributeId": "<string>",
"min": 123,
"max": 123
}
]
}