Destination Nodes
Destination nodes form the routing tree of a destination. Each destination node belongs to one of three types. The API infers the node type from the fields included in the request body; it does not accept an explicit type field. Determine the required node type before constructing the request:
The request body must contain the distinguishing field for the intended node type. If it contains neither distinguishing field, the API creates a valid DestinationFolderNode. As a result, omitting the required field from an intended DestinationExperienceNode or DestinationRedirectNode doesn’t produce a validation error. Instead, the API creates a folder node that doesn’t resolve to an experience or redirect target.
If the request body contains both distinguishing fields, it doesn’t match any supported destination node type, and the API rejects the request.
Every request to create or update a destination node includes the following common fields, regardless of the node type:
The discriminating field determines the destination node type:
A destination node response is one of three response variants. Each variant contains properties, parent, and sys, together with the discriminating field for its node kind.
Write operations are validated against the entire destination tree, not only the destination node in the request. Contentful rejects any operation that would:
- Create a duplicate path.
- Assign the home path to more than one destination node.
- Set a destination redirect node target to anything other than a destination experience node.
- Violate the integrity of the destination tree.
There is no endpoint that lists destination nodes. Use Get the Destination Node tree for a Destination to enumerate them, or keep the IDs returned by create and upsert requests.
Destination Node
Upsert a Destination Node by ID
Delete a Destination Node by ID