Resources in Adobe Experience Platform Launch are often related to each other. This document provides an overview of how resource relationships are established in Platform Launch, and the relationship requirements of each resource type in the API.
Depending on the type of resource in question, some relationships are required. A required relationship implies that the parent resource cannot exist without the relationship. All other relationships are optional.
Regardless of whether they are required or optional, relationships are either automatically established by the system when relevant resources are created, or they must be created manually. In the case of creating relationships manually, there are two possible methods depending on the resource in question:
Refer to the section on relationship requirements for a list of the compatible relationships for each Platform Launch resource type, and the methods required to establish those relationships where applicable.
Create a relationship by payload
Some relationships must be manually established when you initially create a resource. To accomplish this, you must provide a relationship object in the request payload when you first create the parent resource. Examples of these relationships include:
An object that must be provided when creating relationships by payload. Each key in this object represents a specific relationship type. In the above example, extension and rules relationships are established, which are particular to rule_components. For more information on compatible relationship types for different Platform Launch resources, see the section on relationship requirements by resource.
data
Each relationship type provided under the relationship object must contain a data property, which references the id and type of the Platform Launch resource a relationship is being established with. You can create a relationship with multiple resources of the same type by formatting the data property as an array of objects, with each object containing the id and type of an applicable resource.
id
The unique ID of a Platform Launch resource. Each id must be accompanied with a sibling type property, indicating the type of resource in question.
type
The type of Platform Launch resource as referenced by a sibling id field. Accepted values include data_elements, rules, extensions, and environments.
Create a relationship by URL
Unlike other Platform Launch resources, libraries establish relationships through their own dedicated /relationship endpoints. Examples include:
An object which references the id and type of the target Platform Launch resource for the relationship. If you are creating a relationship with multiple resources of the same type (such as extensions and rules), the data property must be formatted as an array of objects, with each object containing the id and type of an applicable resource.
id
The unique ID of a Platform Launch resource. Each id must be accompanied with a sibling type property, indicating the type of resource in question.
type
The type of Platform Launch resource as referenced by a sibling id field. Accepted values include data_elements, rules, extensions, and environments.
Relationship requirements by resource
The following tables outline the available relationships for each resource type, whether or not those relationships are required, and the accepted method to manually create the relationship where applicable.
Note
If a relationship is not listed being created by payload or URL, then it is automatically assigned by the system.