Skip to main content
PUT
/
api
/
landscapes
/
{id}
/
entities
Set entity list for a landscape (replace all)
curl --request PUT \
  --url https://api.example.com/api/landscapes/{id}/entities \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "entity_ids": [
    123
  ]
}
'
{
  "data": {
    "id": 123,
    "ecosystem_id": 123,
    "name": "<string>",
    "description": "<string>",
    "sort_order": 123,
    "entities": [
      {
        "id": 123,
        "name": "<string>",
        "tagline": "<string>",
        "image": "<string>"
      }
    ]
  }
}

Authorizations

Authorization
string
header
required

Auth0 JWT access token

Path Parameters

id
string
required
Minimum string length: 1
Pattern: ^\d+$
Example:

"1"

Body

application/json
entity_ids
integer[]
required

Response

Updated landscape with new entity list

data
object
required