☁️ Loving our new documentation website? Provide feedback in the CloudCannon Community! ✨

assigned_structures.*

Table of contents

Description:

This key represents the assigned structures for a specific allowed key name in the _inputs.*(object-input).options.entries.assigned_structures object.

The value is an array of structure key name strings. When team members select this allowed key name, CloudCannon will prompt them to choose one of these structures.

Available for Mutable Objects only.

Appears in:
└── _inputs
    └── *
        └── Object Input
            └── options
                └── entries
                    └── assigned_structures
                        └── *
Type:
Array<*[*]>
Items:
[*]string#

This key represents an individual assigned structure string in the _inputs.*(object-input).options.entries.assigned_structures.* array.

The value is a string that specifies a structure key name assigned to entries in an Object Input.

Show examplesHide examples

In this example, we have configured an assigned structure for entries in a mutable Object Input.

Copied to clipboard
_inputs:
  metadata:
    type: object
    options:
      allow_create: true
      entries:
        allowed_keys:
          - title
        assigned_structures:
          title:
            - article_metadata
{
  "_inputs": {
    "metadata": {
      "type": "object",
      "options": {
        "allow_create": true,
        "entries": {
          "allowed_keys": [
            "title"
          ],
          "assigned_structures": {
            "title": [
              "article_metadata"
            ]
          }
        }
      }
    }
  }
}
Examples:
Open in a new tab