Object Attribute Management

Disable Attribute

Use this API to disable an attribute.

🗒 Things to Know

  • This API only supports objects created via Object Manager, including Projects, Models, and Datasets.
put/v1/schema-attributes/{attributeId}/disable

Request

  • Base URL
    https://hostname/api/custom-entity
  • URL
    https://hostname/api/custom-entity/v1/schema-attributes/{attributeId}/disable
  • Auth
    OAuth 2
    Client credentials
    Token URL: https://{hostname}/api/access/v1/oauth/token scopes: OBJECT_MANAGER, OBJECT_MANAGER_WRITE

Path parameters

attributeIdstring uuid required

ID of the attribute to disable

Example:123e4567-e89b-12d3-a456-426614174001

The unique identifier of the attribute.

Query parameters

schemaIdstring uuid required

ID of the schema containing the attribute

Example:123e4567-e89b-12d3-a456-426614174000

The unique identifier of the attribute schema.

Response

OK

idstring uuid

The unique identifier of the attribute.

namestring required

The name of the attribute.

nameKeystring

The name key of the attribute used for translation purposes.

descriptionstring

The description of the attribute.

descriptionKeystring

The description key of the attribute used for translation purposes.

fieldNamestring required

The fieldName parameter value of the attribute.

mappedFieldNamestring

The mapped attribute field name.

enabledboolean required

This flag indicates whether the attribute is enabled.

requiredboolean

This flag indicates whether the attribute is required.

readOnlyboolean

This flag indicates whether the attribute is read-only.

encryptedboolean

This flag indicates whether the attribute is encrypted.

allowOtherboolean

This flag indicates whether Other can be selected as an option for the attribute value.

baseAttributeboolean

This flag indicates whether the attribute is a system attribute.

responseType'Text' | 'SingleSelect' | 'MultiSelect' | 'Date' | 'Formula' | 'Score' | 'Level' | 'Range'

The type of response associated with the attribute value.

formulastring

The mathematical formula containing functions and other numerical attributes that is used to calculate the attribute value.

optionType'None' | 'Static' | 'Dynamic'

The type of system list used to source the attribute options.

optionAllowedboolean

This flag indicates whether options were configured for the attribute.

schemaIdstring uuid

The unique identifier of the attribute schema.

schemaNamestring

The name of the attribute schema.

responseMaxLengthinteger

The maximum number of characters that can be entered for the attribute value.

responseSubType'STANDARD' | 'FORMULA' | 'MATRIX'

The type of scoring method associated with the attribute value.

multiSelectMaxOptionValuesinteger

The maximum number of options that can be selected for the attribute.

hiddenboolean

This flag indicates whether the attribute is hidden.

optionUrlstring

The URL of the attribute option.

deleteMarker'MARKED_FOR_DELETE' | 'DELETING' | 'DELETED'

The deletion status of the attribute.

validationRuleIdstring

The validation rule configured for the attribute.

associatedAttributeFieldNamestring

The fieldName parameter value of the attribute.

Example response

{
  "id": "550e8400-e29b-41d4-a716-446655440000",
  "name": "Type of the Record",
  "nameKey": "IM.Name",
  "description": "Gather Type for the record - provide some value related to nature of record",
  "descriptionKey": "IM.Name.Description",
  "fieldName": "nameOfRecord",
  "mappedFieldName": "name",
  "enabled": true,
  "responseType": "Text",
  "formula": "Default:Field4 + Default:Field3 + 100 + avg(CrossSchema:Field4 + Default:Field3)",
  "optionType": "None",
  "schemaId": "550e8400-e29b-41d4-a716-446655440000",
  "schemaName": "vendors",
  "options": [
    {
      "id": "550e8400-e29b-41d4-a716-446655440000",
      "option": "TypeA",
      "optionKey": "IM.TypeA",
      "colorCode": "#FF5733",
      "sequence": 1,
      "enabled": true
    }
  ],
  "referenceCategories": [
    {
      "name": "Financial Category",
      "nameKey": "IM.FinancialCategoryName"
    }
  ],
  "responseMaxLength": 4000,
  "responseSubType": "STANDARD",
  "associatedAttributeInformation": [
    {
      "name": "Count of members",
      "nameKey": "IM.CountOfMembersName",
      "description": "Provide details about count associated with this attribute",
      "descriptionKey": "IM.CountOfMembersDesc",
      "schemaName": "risk",
      "fieldName": "countOfMembers",
      "mappedFieldName": "count",
      "formula": "sum(1, 3)",
      "options": [
        {
          "id": "550e8400-e29b-41d4-a716-446655440000",
          "option": "TypeA",
          "optionKey": "IM.TypeA",
          "colorCode": "#FF5733",
          "sequence": 1,
          "enabled": true
        }
      ]
    }
  ],
  "multiSelectMaxOptionValues": 10,
  "optionUrl": "/api/risk-v2/risk-categories",
  "deleteMarker": "MARKED_FOR_DELETE",
  "optionMetadata": {
    "entityTypeName": "Location",
    "basicServiceContextPath": "/api/location",
    "optionUrl": "/api/location/ui/v1/entity-types/names/Location/entities/basic-details"
  },
  "validationRuleId": "email"
}

Changes

No recorded changes to this operation across all 1 revision of this API.