Examples

POST /foundry-api/v1/asset-classes
{
  "data": {
    "type": "asset-classes",
    "attributes": {
      "name": "Sports 8"
    }
  }
}
201
{
  "data": {
    "id": "8",
    "type": "asset-classes",
    "links": {
      "self": "http://test.host/foundry-api/v1/asset-classes/8"
    },
    "attributes": {
      "name": "Sports 8"
    }
  }
}

Params

Param name Description
data
required

AssetClass information

Validations:

  • Must be a Hash

data[type]
required

Validations:

data[attributes]
required

Validations:

  • Must be a Hash

data[attributes][name]
required

Validations:

  • Must be a String