Add Attribute to SchemaAsk AIpost https://{hostname}/api/custom-entity/v1/schema-attributesUse this API to add an attribute to a specific schema. πThings to Know This API only supports objects created via Object Manager, including Projects, Models, and Datasets. Query ParamsschemaNamestringrequiredThe name of the attribute schema.Body ParamsfieldNamestringrequiredlength β€ 100The fieldName parameter value of the attribute.namestringrequiredlength between 1 and 255The name of the attribute.nameKeystringlength β€ 255The name key of the attribute used for translation purposes.descriptionstringlength β€ 1000The description of the attribute.descriptionKeystringlength β€ 255The description key of the attribute used for translation purposes.requiredbooleanDefaults to falseThis flag indicates whether the attribute is required.truefalseallowOtherbooleanDefaults to falseThis flag indicates whether Other can be selected as an option for the attribute value.truefalseresponseTypestringenumrequiredThe type of response associated with the attribute value.TextSingleSelectMultiSelectDateFormulaScoreLevelRangeShow 8 enum valuesoptionTypestringenumlength β€ 50Defaults to NoneThe type of system list used to source the attribute options.NoneStaticDynamicAllowed:NoneStaticDynamicoptionsarray of objectsThe options for the attribute.optionsADD objectreferenceCategoryIdsarray of uuidsThe list of category identifiers of the attribute.referenceCategoryIdsADD uuidformulastringlength β€ 4000The mathematical formula containing functions and other numerical attributes that is used to calculate the attribute value.contextobjectThe contextual details of the attribute.context objectsourcestringlength β€ 50The source of the attribute.responseSubTypestringenumThe type of scoring method associated with the attribute value.STANDARDSTANDARDFORMULAMATRIXAllowed:STANDARDFORMULAMATRIXassociatedAttributeRequestobjectThe attributes to add to the schema.associatedAttributeRequest objectmaxMultiSelectAllowedOptionValuesint321 to 100The maximum number of options that can be selected for the attribute.encryptedbooleanDefaults to falseThis flag indicates whether the attribute is encrypted.truefalsemetadatastringThe metadata details of the attribute option.intakeQuestionobjectThe details of the attribute intake question.intakeQuestion objectvalidationRuleIdstringlength β€ 255The validation rule configured for the attribute.Responses 201Created 400Bad Request 401Unauthorized 403Forbidden 429Too Many Requests. For more information, see API Rate Limits. 500Internal Server ErrorUpdated 4 months ago