Custom fields are additional properties for Data Marketplace objects that are defined by your Administrator in Metadata Command Center.
A stakeholder of a data collection can use custom attributes to specify additional information about a data collection when the standard properties of the collection are insufficient. Additionally, Data Users that order the data collection can use the newly added property to provide more information when they place an order.
For more information about custom fields, see the Create custom fields for objects topic in the Set Up Data Marketplace help.
Retrieve custom fields
Use REST APIs to retrieve the custom field details for a data collection or an order.
Endpoint and method
The following table describes the connection properties for the API:
Property
Description
Endpoint
/api/v1/integration/model/customAttributes
Method
GET
Note: Before you call this API, consider the following:
•If you use an Application Integration system service action to invoke this API, you can call a maximum of 100 APIs per minute.
•If you use JWT authentication to invoke this API, you can call a maximum of 120 APIs per minute and 10,000 APIs per day.
The following table describes the parameters of each custom field that is retrieved:
Parameter
Description
offset
Starting index for the paginated results.
limit
Maximum number of results.
totalCount
Number of custom fields retrieved.
classType
Type of object for which the custom field details were retrieved.
This parameter can have one of the following values:
- If the parameter value is com.infa.cdmp.marketplace.DataCollection, the object is a data collection.
- If the parameter value is com.infa.cdmp.marketplace.Order, the object is an order.
items > customAttributeId
System generated unique identifier of the custom field in Metadata Command Center.
items > name
Name of the custom field as configured in Metadata Command Center.
items > status
Status of the custom field as configured in Metadata Command Center.
This parameter returns only the custom fields that are in PUBLISHED state. The PUBLISHED state indicates that the custom fields are displayed in Data Marketplace.
items > mandatory
This parameter determines whether or not the custom field is mandatory.
This parameter can have one of the following values:
- true. A user must enter a value in this field.
- false. A user doesn't require to enter a value in this field.
items > searchable
This parameter determines whether or not you can use the custom field to search for a data collection.
This parameter can have one of the following values:
- true. You can use the custom field to search for a data collection.
- false. You can't use the custom field to search for a data collection.
items > defaultValues
Default value of the custom field as configured in Metadata Command Center.
items > datatype > type
Type of the custom field as configured in Metadata Command Center.
items > datatype > properties
Subtype of the custom field as configured in Metadata Command Center.
The value of the properties parameter depends on the value configured for the type parameter.
items > datatype > dropDownOptions
The values that are acceptable inputs to the custom field, as configured in Metadata Command Center.
Note: This parameter is displayed in the response body only if the custom field is of type DROPDOWN_SINGLE_SELECT.