Skip to main content
POST
/
Attributes
Modify attributes of an owned item (only if the product is 'platform managed'). Only attributes that are put on DYNAMIC will be taken into consideration.
curl --request POST \
  --url https://intern.payingame.io/rest/PayIngame/PublicAPI/Attributes \
  --header 'Content-Type: application/json' \
  --data '
{
  "ApiKey": "<string>",
  "ProjectGuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "TokenID": "<string>",
  "IsIgnoreErrors": false,
  "Atrtibutes": [
    {
      "Name": "<string>",
      "Value": "<string>"
    }
  ]
}
'
{
  "isError": "0",
  "Error": ""
}
Will update the attributs of an Item (if the item is put on DYNAMIC), based on the Token ID. In case of a web3 item, it will reconstruct the Json attached to the NFT. This will only work if the product is identified as “platform managed”.

Body

application/json
ApiKey
string
required
ProjectGuid
string<uuid>
required
TokenID
string
required

The ID of the item that needs to be changed. This can be found by calling the 'items' or 'item' endpoint.

IsIgnoreErrors
enum<boolean>
required

When this field is set to true, then the system will ignore items that are not existing in the attributes. If set to false, then it will not save any attribute in case of a problem.

Available options:
false
Atrtibutes
object[]
Minimum array length: 1

Response

200 - application/json

Award tokens response

isError
string
required
Example:

"0"

Error
string
required
Example:

""