Retrieve a list of mixins
You can list all mixins under the global or tenant container by making a GET request to /global/mixins or /tenant/mixins, respectively.
API format
| Parameter | Description |
|---|---|
{CONTAINER_ID} | The container you want to retrieve mixins from: global for Adobe-created mixins or tenant for mixins owned by your organization. |
{QUERY_PARAMS} | Optional query parameters to filter results by. See the appendix document for a list of available parameters. |
Request
The following request retrieves a list of mixins from the tenant container, using an orderby query parameter to sort the mixins by their title attribute.
The response format depends on the Accept header sent in the request. The following Accept headers are available for listing mixins:
Accept header | Description |
|---|---|
application/vnd.adobe.xed-id+json | Returns a short summary of each resource. This is the recommended header for listing resources. (Limit: 300) |
application/vnd.adobe.xed+json | Returns full JSON mixin for each resource, with original $ref and allOf included. (Limit: 300) |
Response
The request above used the application/vnd.adobe.xed-id+json Accept header, therefore the response includes only the title, $id, meta:altId, and version attributes for each mixin. Using the other Accept header (application/vnd.adobe.xed+json) returns all attributes of each mixin. Select the appropriate Accept header depending on the information you require in your response.
Look up a mixin
You can look up a specific mixin by including the mixin’s ID in the path of a GET request.
API format
| Parameter | Description |
|---|---|
{CONTAINER_ID} | The container that houses the mixin you want to retrieve: global for an Adobe-created mixin or tenant for a mixin owned by your organization. |
{MIXIN_ID} | The meta:altId or URL-encoded $id of the mixin you want to look up. |
Request
The following request retrieves a mixin by its meta:altId value provided in the path.
The response format depends on the Accept header sent in the request. All lookup requests require a version be included in the Accept header. The following Accept headers are available:
Accept header | Description |
|---|---|
application/vnd.adobe.xed+json; version=1 | Raw with $ref and allOf, has titles and descriptions. |
application/vnd.adobe.xed-full+json; version=1 | $ref and allOf resolved, has titles and descriptions. |
application/vnd.adobe.xed-notext+json; version=1 | Raw with $ref and allOf, no titles or descriptions. |
application/vnd.adobe.xed-full-notext+json; version=1 | $ref and allOf resolved, no titles or descriptions. |
application/vnd.adobe.xed-full-desc+json; version=1 | $ref and allOf resolved, descriptors included. |
Response
A successful response returns the details of the mixin. The fields that are returned depend on the Accept header sent in the request. Experiment with different Accept headers to compare the responses and determine which header is best for your use case.
Create a mixin
You can define a custom mixin under the tenant container by making a POST request.
API format
Request
When defining a new mixin, it must include a meta:intendedToExtend attribute, listing the $id of the classes with which the mixin is compatible. In this example, the mixin is compatible with a Property class that was defined previously. Custom fields must be nested under _{TENANT_ID} (as shown in the example) to avoid any collisions with similar fields provided by classes and other mixins.
Response
A successful response returns HTTP status 201 (Created) and a payload containing the details of the newly created mixin, including the $id, meta:altId, and version. These values are read-only and are assigned by the Schema Registry.
Performing a GET request to list all mixins in the tenant container would now include the Property Details mixin, or you can perform a lookup (GET) request using the URL-encoded $id URI to view the new mixin directly.
Update a mixin
You can replace an entire mixin through a PUT operation, essentially re-writing the resource. When updating a mixin through a PUT request, the body must include all of the fields that would be required when creating a new mixin in a POST request.
API format
| Parameter | Description |
|---|---|
{MIXIN_ID} | The meta:altId or URL-encoded $id of the mixin you want to re-write. |
Request
The following request re-writes an existing mixin, adding a new propertyCountry field.
Response
A successful response returns the details of the updated mixin.
Update a portion of a mixin
You can update a portion of a mixin by using a PATCH request. The Schema Registry supports all standard JSON Patch operations, including add, remove, and replace. For more information on JSON Patch, see the API fundamentals guide.
API format
| Parameter | Description |
|---|---|
{MIXIN_ID} | The URL-encoded $id URI or meta:altId of the mixin you want to update. |
Request
The example request below updates the description of an existing mixin, and adds a new propertyCity field.
The request body takes the form of an array, with each listed object representing a specific change to an individual field. Each object includes the operation to be performed (op), which field the operation should be performed on (path), and what information should be included in that operation (value).
Response
The response shows that both operations were performed successfully. The description has been updated, and propertyCountry has been added under definitions.
Delete a mixin
It may occasionally be necessary to remove a mixin from the Schema Registry. This is done by performing a DELETE request with the mixin ID provided in the path.
API format
| Parameter | Description |
|---|---|
{MIXIN_ID} | The URL-encoded $id URI or meta:altId of the mixin you want to delete. |
Request
Response
A successful response returns HTTP status 204 (No Content) and a blank body.
You can confirm the deletion by attempting a lookup (GET) request to the mixin. You will need to include an Accept header in the request, but should receive an HTTP status 404 (Not Found) because the mixin has been removed from the Schema Registry.
More help on this topic
Was this content helpful?
Announcements
Get hands-on with agentic AI.
Explore how AI agents work together through real examples and hands-on practice. Join your local User Group to design an agent workflow with your peers and leave with a practical framework you can apply to your own work.
Find an eventAgentic AI Roadmap Webinar - Americas & EMEA
Preview the Agentic AI roadmap, see Agent Orchestrator in action, and ask the team.
Agentic AI Roadmap Webinar - Americas & APAC
Preview the Agentic AI roadmap, see Agent Orchestrator in action, and ask the team.
Adobe Experience Platform + Apps Roadmap Webinar - Americas & EMEA
Preview the Experience Platform and Apps roadmap and ask the product team questions.