GET /api/v1/countries
List Content Verticals

Examples

GET /foundry-api/v1/content-verticals
401
{
  "errors": [
    {
      "title": "You are not authorized to access this request"
    }
  ]
}

GET /api/v1/countries/:id
Show a Content Vertical

Examples

GET /foundry-api/v1/content-verticals/842
401
{
  "errors": [
    {
      "title": "You are not authorized to access this request"
    }
  ]
}

Params

Param name Description
id
required

Content Vertical ID

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hyphen(-) with no leading or trailing space.


POST /api/v2/countries
Create a Content Vertical

Examples

POST /foundry-api/v1/content-verticals
{
  "data": {
    "type": "content-verticals",
    "attributes": {
      "slug": null,
      "useful-links": [],
      "name": "Kids 840",
      "auto-tag-entities": false,
      "description": null,
      "security-type": null,
      "total-insights": "0",
      "respect-market-cap": true
    },
    "relationships": {}
  }
}
201
{
  "data": {
    "id": "840",
    "type": "content-verticals",
    "links": {
      "self": "http://test.host/foundry-api/v1/content-verticals/840"
    },
    "attributes": {
      "slug": "kids-840",
      "useful-links": [],
      "name": "Kids 840",
      "auto-tag-entities": false,
      "description": null,
      "security-type": null,
      "total-insights": 0,
      "respect-market-cap": true
    },
    "relationships": {
      "classification-distribution": {
        "links": {
          "self": "http://test.host/foundry-api/v1/content-verticals/840/relationships/classification-distribution",
          "related": "http://test.host/foundry-api/v1/content-verticals/840/classification-distribution"
        }
      },
      "strategy": {
        "links": {
          "self": "http://test.host/foundry-api/v1/content-verticals/840/relationships/strategy",
          "related": "http://test.host/foundry-api/v1/content-verticals/840/strategy"
        }
      }
    }
  }
}

PATCH /api/v2/countries/:id
Update a Content Vertical

Examples

PATCH /foundry-api/v1/content-verticals/844
{
  "data": {
    "id": "844",
    "type": "content-verticals",
    "attributes": {
      "slug": "home-books-baby-845",
      "useful-links": [],
      "name": "New Vertical Name",
      "auto-tag-entities": false,
      "description": null,
      "security-type": null,
      "total-insights": "0",
      "respect-market-cap": true
    },
    "relationships": {}
  }
}
401
{
  "errors": [
    {
      "title": "You are not authorized to access this request"
    }
  ]
}

Params

Param name Description
id
required

Content Vertical ID

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hyphen(-) with no leading or trailing space.


DELETE /api/v2/countries/:id
Delete a Content Vertical

Examples

DELETE /foundry-api/v1/content-verticals/833
401
{
  "errors": [
    {
      "title": "You are not authorized to access this request"
    }
  ]
}

Params

Param name Description
id
required

Content Vertical ID

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hyphen(-) with no leading or trailing space.