Skip to content

Retrieve a metaobject definition

View as Markdown
get /rest/api/metaobject_definitions/{id}

Retrieves a MetaobjectDefinition resource.

Returns a single metaobject definition by id, including its type slug, displayNameField and fieldDefinitions.

Headers

NameTypeRequiredDescription
X-Flowkiwi-Organization-IdstringrequiredThe organization the request acts as. Determines the identity, permissions and ownership applied when reading or modifying data on the instance.

Path parameters

NameTypeRequiredDescription
idstringrequiredMetaobjectDefinition identifier

Response

200 - MetaobjectDefinition resource

PropertyTypeRequiredDescription
@contextobject-
@idstringrequired
@typestringrequired
idstring-The resource's unique identifier (UUID).
typestringrequiredThe unique slug identifier for this metaobject definition.
namestringrequiredThe human-readable name of the metaobject definition.
descriptionstring | null-The description of the metaobject definition.
displayNameFieldstring | null-The key of the field definition used as the display name for records of this type. Optional - when omitted it is null and records have no derived display name. When set, it must match the key of one of this definition's fieldDefinitions, otherwise the request is rejected with 422.
fieldDefinitionsEmbeddedMetaobjectFieldDefinitionResource[]-The field definitions that make up this metaobject definition.
Show fieldDefinitions fields
PropertyTypeRequiredDescription
idstring-The resource's unique identifier (UUID).
keystringrequiredThe field key, unique within the definition (referenced by metaobject fields).
namestringrequiredThe human-readable name of the field.
descriptionstring | null-An optional description of the field.
typestringrequiredThe field data type, as an IRI to the field-type resource.
requiredboolean-Whether a value for this field is required on metaobjects of the definition.
validationsEmbeddedMetaobjectFieldDefinitionValidationResource[]-The validation rules applied to values of this field.
Show validations fields
PropertyTypeRequiredDescription
namestringrequiredThe type of validation rule
valuestringrequiredThe validation parameter value. Format depends on the validation type.
createdAtstring-The date and time when the resource was created (ISO 8601 format).
updatedAtstring-The date and time when the resource was last modified (ISO 8601 format).

Errors

403 - Access denied. The caller is missing one or more identity permissions required for this operation.

Content-Type: application/problem+json

PropertyTypeRequiredDescription
@contextobject-
@idstringrequired
@typestringrequired
typestring-
titlestring-
statusinteger-
detailstring-
missingPermissionsstring[]-Identity permissions that the caller is missing for this operation. Present only when the 403 is caused by a denied identity:* permission.

404 - Not found

PropertyTypeRequiredDescription
@contextobject-
@idstringrequired
@typestringrequired
titlestring | null-A short, human-readable summary of the problem.
detailstring | null-A human-readable explanation specific to this occurrence of the problem.
statusnumber | null-
instancestring | null-A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.
typestring-A URI reference that identifies the problem type