Examples

PATCH /foundry-api/v1/countries/17
{
  "data": {
    "id": "17",
    "type": "countries",
    "attributes": {
      "slug": "singapore",
      "useful-links": [],
      "name": "USA",
      "total-insights": "0"
    },
    "relationships": {}
  }
}
200
{
  "data": {
    "id": "17",
    "type": "countries",
    "links": {
      "self": "http://test.host/foundry-api/v1/countries/17"
    },
    "attributes": {
      "slug": "singapore",
      "useful-links": [],
      "name": "USA",
      "total-insights": 0
    },
    "relationships": {
      "classification-distribution": {
        "links": {
          "self": "http://test.host/foundry-api/v1/countries/17/relationships/classification-distribution",
          "related": "http://test.host/foundry-api/v1/countries/17/classification-distribution"
        }
      },
      "geographies": {
        "links": {
          "self": "http://test.host/foundry-api/v1/countries/17/relationships/geographies",
          "related": "http://test.host/foundry-api/v1/countries/17/geographies"
        }
      }
    }
  }
}

Params

Param name Description
id
required

Country 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.