Property | Description |
---|---|
Endpoint | /api/v1/integration/usageContext |
Method | POST |
Parameter | Description | Additional Information |
---|---|---|
refId | Optional. Enter a reference identifier for the usage type. | If you don't specify a reference identifier, Data Marketplace automatically assigns a unique value to the object. The reference identifier that Data Marketplace automatically generates contains a prefix. The Administrator can specify the prefix of the automatically generated reference identifier in Metadata Command Center. If you want to specify a reference identifier, ensure that you enter a unique value. Ensure that you don't use the prefix value that is configured in Metadata Command Center. |
name | Required. Enter a name for the usage type. | Ensure that you enter a unique value. Data Marketplace doesn't consider the letter case when it verifies the uniqueness of the name parameter's value. For example, if you try to name a usage type as "Sales Analytics" while a usage type called "Sales analytics" already exists, the API call fails. |
description | Required. Enter a description for the usage type. | - |
color | Required. Specify a color indicator for the usage type. Assigning a unique color indicator allows Data Marketplace users to identify a usage type easily. | Enter the hexadecimal value that represents the color that you want to use. |
status | Required. Specify a status for the usage type. The status determines whether a usage type is available to be added to a data collection or to be selectable on an order. | Enter one of the following values:
|
Parameter | Description |
---|---|
index | The position of the usage type in the objects JSON array. This value does not impact how the usage type is used by a Data Marketplace user. |
id | System generated unique identifier of the usage type. |
refId | Reference identifier of the usage type. |
name | Name of the usage type. |
Property | Description |
---|---|
Endpoint | /api/v1/integration/usageContext |
Method | GET |
Parameter | Description | Additional Information |
---|---|---|
ids | Optional. Enter the system generated unique identifier of a usage type. | To enter more than one value, use the following format: ids=<value1>&ids=<value2> |
search | Optional. Enter the search term that you want to use to find a usage type. | Ensure that the search term that you enter don't contain an asterisk (*). |
fields | Optional. Enter the fields on which the search term applies. The terms that you entered in the search field parameter are used to search the fields that you specify here. | Enter the following values:
|
createdDateFrom | Optional. To find usage types that were created between a date range, enter the initial date when the usage types were created. | To specify a date, use the YYYY-MM-DD format. The value that you specify is automatically converted and stored in the Coordinated Universal Time (UTC) time standard. If you have specified a value for the createdDateFrom parameter, ensure that you also enter a value for the createdDateTo parameter. |
createdDateTo | Optional. To find usage types that were created between a date range, enter the latest date when the usage types were created. | To specify a date, use the YYYY-MM-DD format. The value that you specify is automatically converted and stored in the Coordinated Universal Time (UTC) time standard. If you have specified a value for the createdDateTo parameter, ensure that you also enter a value for the createdDateFrom parameter. |
modifiedDateFrom | Optional. To find usage types that were modified between a date range, enter the initial date when the usage types were modified. | To specify a date, use the YYYY-MM-DD format. The value that you specify is automatically converted and stored in the Coordinated Universal Time (UTC) time standard. If you have specified a value for the modifiedDateFrom parameter, ensure that you also enter a value for the modifiedDateTo parameter. |
modifiedDateTo | Optional. To find usage types that were modified between a date range, enter the latest date when the usage types were modified. | To specify a date, use the YYYY-MM-DD format. The value that you specify is automatically converted and stored in the Coordinated Universal Time (UTC) time standard. If you have specified a value for the modifiedDateTo parameter, ensure that you also enter a value for the modifiedDateFrom parameter. |
sortByField | Optional. Specify the parameters to sort the search results. | To sort the search results, enter one of the following values:
Default value is MODIFIED_ON. |
sort | Optional. Set the sorting order of the search results. | You can sort the search results in the following order:
Default value is DESC. |
status | Optional. Specify the status of the usage type. The status indicates whether a usage type is available to be added to a data collection or to be selectable on an order. | Enter one of the following values:
|
offset | Optional. Enter the starting index for the paginated results. | Default value is 0. |
limit | Optional. Enter the maximum number of results. | Default value is 50. Maximum value is 100. |
Parameter | Description |
---|---|
offset | Starting index for the paginated results. |
limit | Maximum number of results. |
totalCount | Number of usage types retrieved. |
id | System generated unique identifier of the usage type. |
refId | Reference identifier of the usage type. |
name | Name of the usage type. |
description | Description of the usage type. |
color | A hexadecimal value that represents the color indicator of the usage type. |
status | The status indicates whether a usage type is available to be added to a data collection or to be selectable on an order. A usage type can have one of the following values:
|
createdBy | System generated unique identifier of the user account that created the usage type. |
createdOn | Date when the usage type was created. |
modifiedBy | System generated unique identifier of the latest user account that modified the usage type. |
modifiedOn | Latest date when the usage type was modified. |
Property | Description |
---|---|
Endpoint | /api/v1/integration/usageContext |
Method | PUT |
Parameter | Description | Additional Information |
---|---|---|
id | Required. Enter the system generated unique identifier of the usage type that you want to modify. | For more information about how you can use an API to get the unique identifier of a usage type, see Retrieve usage type. |
refId | Optional. Enter a reference identifier for the usage type. | If you don't specify a reference identifier, Data Marketplace automatically assigns a unique value to the object. The reference identifier that Data Marketplace automatically generates contains a prefix. The Administrator can specify the prefix of the automatically generated reference identifier in Metadata Command Center. If you want to specify a reference identifier, ensure that you enter a unique value. Ensure that you don't use the prefix value that is configured in Metadata Command Center. |
name | Required. Enter a name for the usage type. | Ensure that you enter a unique value. Data Marketplace doesn't consider the letter case when it verifies the uniqueness of the name parameter's value. For example, if you try to name a usage type as "Sales Analytics" while a usage type called "Sales analytics" already exists, the API call fails. |
description | Required. Enter a description for the usage type. | - |
color | Required. Specify a color indicator for the usage type. Assigning a unique color indicator allows Data Marketplace users to identify a usage type easily. | Enter the hexadecimal value that represents the color that you want to use. |
status | Required. Specify a status for the usage type. The status determines whether a usage type is available to be added to a data collection or to be selectable on an order. | Enter one of the following values:
|
Parameter | Description |
---|---|
index | The position of the usage type in the objects JSON array. This value does not impact how the usage type is used by a Data Marketplace user. |
id | System generated unique identifier of the usage type. |
refId | Reference identifier of the usage type. |
name | Name of the usage type. |
Property | Description |
---|---|
Endpoint | /api/v1/integration/usageContext/status |
Method | PATCH |
Parameter | Description | Additional Information |
---|---|---|
id | Required. Enter the system generated unique identifier of the usage type. | For more information about how you can use an API to get the system generated unique identifier of a usage type, see Retrieve usage type. |
status | Required. Specify a status for the usage type. The status determines whether a usage type is available to be added to a data collection or to be selectable on an order. | Enter one of the following values:
|