Item Types

Item Types are the different types that an item can be, e.g. Head item. On this page, we'll dive into the different item type endpoints you can use to manage item types programmatically. We'll look at how to query item types.

The item type model

The item type model contains all the information about the item type.

Properties

  • Name
    id
    Type
    integer
    Description

    Unique identifier for the currency.

  • Name
    name
    Type
    string
    Description

    Name for the item type.

  • Name
    image_url
    Type
    string
    Description

    Image URL for the item type


GET/item-types

List all item types

This endpoint allows you to retrieve a list of all the item types.

Request

GET
/item-types
curl -G https://prod-app.themeparkshark.com/api/item-types \
-H "Accept: application/json"

Response

{
  "data": [
    {
      "id": 1,
      "name": "Head item",
      "image_url": "https://assets.themeparkshark.com/mobile/production/assets/image.png"
    },
    // ...
  ]
}

Was this page helpful?