v1

latestOpenAPI 3.0.32026-07-24198357534.7 KB
Data Model

Create a new Attribute in the datamodel

Creates a attributes resource.

post/attributes

Request body

idstring
type'date' | 'decimal' | 'html_text' | 'integer' | 'json' | 'localized_text' | 'multi_select' | 'multiline_text' | 'simple_select' | 'switch' | 'time' | 'unlocalized_text'
isEditableboolean
isFilterableboolean
isVisibleboolean
isPrimaryboolean
isRequiredboolean
isComputedboolean

Example request

{
  "type": "date",
  "name": {
    "fr-FR": "fr-FR translation",
    "en-US": "en-US translation",
    "<*>": "..."
  },
  "description": {
    "fr-FR": "fr-FR translation",
    "en-US": "en-US translation",
    "<*>": "..."
  },
  "helpText": {
    "fr-FR": "fr-FR translation",
    "en-US": "en-US translation",
    "<*>": "..."
  }
}

Response

attributes resource created

type'date' | 'decimal' | 'html_text' | 'integer' | 'json' | 'localized_text' | 'multi_select' | 'multiline_text' | 'simple_select' | 'switch' | 'time' | 'unlocalized_text'
isVisibleboolean
isEditableboolean
isFilterableboolean
isPrimaryboolean
isRequiredboolean
isAIEnabledboolean
isComputedboolean
dateCreatedstring date-time nullable

This is an ISO datetime

dateModifiedstring date-time nullable

This is an ISO datetime

documentTypestring iri-reference
aiTemplatestring iri-reference nullable
idstring

This is the unique identifier of the resource

documentTypeCodestring

This is the unique identifier of the document type that the resource should be apply to

legacyIdinteger
AITemplatestring iri-reference nullable

Example response

{
  "type": "date",
  "helpText": {
    "fr-FR": "fr-FR translation",
    "en-US": "en-US translation",
    "<*>": "..."
  },
  "id": "identifier_example",
  "description": {
    "fr-FR": "fr-FR translation",
    "en-US": "en-US translation",
    "<*>": "..."
  },
  "name": {
    "fr-FR": "fr-FR translation",
    "en-US": "en-US translation",
    "<*>": "..."
  },
  "documentTypeCode": "document_type_example"
}