Property | Description |
|---|---|
Endpoint | /api/v2/categories |
Method | POST |
Parameter | Description | Additional Information |
|---|---|---|
parentCategoryId | Optional. Enter the system-generated unique identifier of the parent category for the category that you want to create. If the category that you want to create isn't a subcategory to another category, you can leave this parameter empty. | For more information about how you can use an API to get the system-generated unique identifier of a category, see Retrieve all categories. To get the system-generated unique identifier of a category from the Data Marketplace user interface, open the category. The category page's URL contains the system-generated unique identifier. For example, in the URL https://{{CDMP_URL}}/category/view?ac=67417f72-e5ab-44f0-add9-a1e412c1ce13&dtn=_AfterEBF%20may20, the system-generated unique identifier is 67417f72-e5ab-44f0-add9-a1e412c1ce13. |
externalId | Optional. Enter a reference identifier for the category. | If you don't specify a reference identifier, Data Marketplace automatically assigns a unique value to the item. 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 category. | 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 category as "Retail Department" while a category called "Retail department" already exists, the API call fails. |
description | Required. Enter a description for the category. | - |
status | Required. Specify the status of the category. The status determines whether the category is discoverable and usable in Data Marketplace. Enter one of the following values:
| - |
assetGroups | Optional. Enter the system-generated unique identifier of the asset group for the category. | Asset groups enable you to control access to the category, the subcategories and data collections within it. For more information about asset groups, see the Implement access controls on metadata topic in the Set Up Data Marketplace help. To get the system-generated unique identifier of an asset group, navigate to My Services > Metadata Command Center > Customize. On the Customize page, select the Asset Groups tab. On the Asset Groups tab, click an asset group. The user role page's URL contains the unique identifier. For example, in the URL /assetGroup/07a3ef9c-9410-421f-9b21-64ec9ac9778f, the unique identifier is 07a3ef9c-9410-421f-9b21-64ec9ac9778f. |
stakeholdership > stakeholderId | Optional. Enter the system-generated unique identifier of the user account or user group that you want to assign as a stakeholder on the category. |
For example, in the URL /cloudUI/products/administer/main/usersAsset/0LH3xBJC9A6haZ26htGZyT, the unique identifier is 0LH3xBJC9A6haZ26htGZyT. For example, in the URL /cloudUI/products/administer/main/userGroupsAsset/90uizkSWg0ycuu7hSNXSW4, the unique identifier is 90uizkSWg0ycuu7hSNXSW4. |
stakeholdership > roleId | Optional. Enter the system-generated unique identifier of the user role that is assigned to the stakeholder that you specified in the stakeholderId parameter. | If you specify a value for the stakeholderId parameter, ensure that you also specify a value for the roleId parameter. To get the system-generated unique identifier of a user role, navigate to My Services > Administrator > User Roles. On the User Roles page, click a user role. The user role page's URL contains the unique identifier. For example, in the URL /cloudUI/products/administer/main/userRolesAsset/90uizkSWg0ycuu7hSNXSW4, the unique identifier is 90uizkSWg0ycuu7hSNXSW4. |
Parameter | Description |
|---|---|
externalId | Reference identifier of the category. |
id | System-generated unique identifier of the category. |
name | Name of the category. |
description | Description of the category. |
status | Status of the category. A category can have one of the following statuses:
|
effectiveStatus | Indicates whether the category is available in Data Marketplace. A category can have one of the following statuses:
|
assetGroups | Details of the asset group that is assigned to the category. |
assetGroups > id | System-generated identifier of the asset group. |
assetGroups > name | Name of the asset group. |
assetGroups > isInherited | Indicates whether the asset group is directly assigned to the category or if the asset group is inherited from the category hierarchy. This parameter can have one of the following values:
|
Property | Description |
|---|---|
Endpoint | /api/v2/categories/<categoryId> <categoryID>: Required. Enter the system-generated unique identifier of the category for which you want to retrieve the details. To get the system-generated unique identifier of a category from the Data Marketplace user interface, open the category. The category page's URL contains the system-generated unique identifier. For example, in the URL https://{{CDMP_URL}}/category/view?ac=67417f72-e5ab-44f0-add9-a1e412c1ce13&dtn=_AfterEBF%20may20, the system-generated unique identifier is 67417f72-e5ab-44f0-add9-a1e412c1ce13. |
Method | GET |
Parameter | Description | Additional Information |
|---|---|---|
segments | Optional. Specify the type of details that you want the API request to return. Enter one or more of the following values:
| By default, the parameter is assigned no value and the API response includes only the basic information about the category such as name, description and so on. |
Parameter | Description |
|---|---|
externalId | Reference identifier of the category. |
id | System-generated unique identifier of the category. |
parentId | System-generated unique identifier of the parent category. |
name | Name of the category. |
description | Description of the category. |
status | Status of the category as configured by a stakeholder of the category. A category can have one of the following statuses:
|
effectiveStatus | The effective status of the category indicates whether a category is discoverable and usable in Data Marketplace. The effective status of a category is influenced by the effective status of its parent category. For example, if the value of the status parameter of a category is Active but the category is added to an effectively inactive parent category, the category becomes inactive. A category can have one of the following statuses:
|
parentCategory | Details of the parent category. |
stakeholdership | Details of the stakeholders of the category. |
stakeholdership > stakeholderId | System-generated identifier of the user account or user group that is assigned as a stakeholder of the category. |
stakeholdership > userType | Indicates whether the stakeholder is an individual user account or user group. This parameter can have one of the following values:
|
stakeholdership > roleId | System-generated identifier of the user role that is assigned to the stakeholder of the category. |
stakeholdership > isInherited | Indicates whether the stakeholder is directly assigned to the category or if the stakeholder is inherited from the category hierarchy. This parameter can have one of the following values:
|
assetGroups | Details of the asset group that is assigned to the category. |
assetGroups > id | System-generated identifier of the asset group. |
assetGroups > name | Name of the asset group. |
assetGroups > isInherited | Indicates whether the asset group is directly assigned to the category or if the asset group is inherited from the category hierarchy. This parameter can have one of the following values:
|
systemAttributes > createdBy | System-generated identifier of the user account that created the category. |
systemAttributes > createdOn | Date when the category was created. |
systemAttributes > modifiedBy | System-generated identifier of the latest user account that modified the category. |
systemAttributes > modifiedOn | Latest date when the category was modified. |
Property | Description |
|---|---|
Endpoint | /api/v2/categories |
Method | GET |
Parameter | Description | Additional Information |
|---|---|---|
segments | Optional. Specify the type of details that you want the API request to return. Enter one or more of the following values:
| By default, the parameter is assigned no value and the API response includes only the basic information about the category such as name, description and so on. |
search | Optional. Enter the search term to find a category by name or description. | To retrieve details for all the categories in Data Marketplace, enter an asterisk (*). Default value is an asterisk (*). Ensure that the search terms that you enter don't contain an asterisk (*). |
offset | Optional. Specify the starting index for the paginated results. | Default value is 0. |
limit | Optional. Specify the maximum number of results that are displayed on a page. | Default value is 20. Maximum value is 200. |
sortby | Optional. Specify the parameters to sort the search results. Enter one of the following values:
| Default value is modifiedOn. |
sortOrder | Optional. Set the sorting order of the search results. Enter one of the following values:
| Default value is desc. |
Parameter | Description |
|---|---|
pageInfo > offset | Starting index of the paginated results. |
pageInfo > limit | The maximum number of results that are displayed on a page. |
pageInfo > totalCount | Number of categories retrieved. |
links > self > href | The API that was invoked to generate this response. |
links > first > href | The API endpoint that you can use to retrieve the search results that are displayed on the first page. |
links > next > href | The API endpoint that you can use to retrieve the search results from the page following the one you currently have open. |
links > previous > href | The API endpoint that you can use to retrieve the search results from the page prior to the one you currently have open. |
links > last > href | The API endpoint that you can use to retrieve the search results that are displayed on the last page. |
externalId | Reference identifier of the category. |
id | System-generated unique identifier of the category. |
parentId | System-generated unique identifier of the parent category. |
name | Name of the category. |
description | Description of the category. |
status | Status of the category as configured by a stakeholder of the category. A category can have one of the following statuses:
|
effectiveStatus | The effective status of the category indicates whether a category is discoverable and usable in Data Marketplace. The effective status of a category is influenced by the effective status of its parent category. For example, if the value of the status parameter of a category is Active but the category is added to an effectively inactive parent category, the category becomes inactive. A category can have one of the following statuses:
|
parentCategory | Details of the parent category. |
stakeholdership | Details of the stakeholders of the category. |
stakeholdership > stakeholderId | System-generated identifier of the user account or user group that is assigned as a stakeholder on the category. |
stakeholdership > userType | Indicates whether the stakeholder is an individual user account or user group. This parameter can have one of the following values:
|
stakeholdership > roleId | System-generated identifier of the user role that is assigned to the stakeholder of the category. |
stakeholdership > isInherited | Indicates whether the stakeholder is directly assigned to the category or if the stakeholder is inherited from the category hierarchy. This parameter can have one of the following values:
|
assetGroups | Details of the asset group that is assigned to the category. |
assetGroups > id | System-generated identifier of the asset group. |
assetGroups > name | Name of the asset group. |
assetGroups > isInherited | Indicates whether the asset group is directly assigned to the category or if the asset group is inherited from the category hierarchy. This parameter can have one of the following values:
|
systemAttributes > createdBy | System-generated identifier of the user account that created the category. |
systemAttributes > createdOn | Date when the category was created. |
systemAttributes > modifiedBy | System-generated identifier of the latest user account that modified the category. |
systemAttributes > modifiedOn | Latest date when the category was modified. |
Property | Description |
|---|---|
Endpoint | /api/v2/categories/<categoryId> <categoryID>: Required. Enter the system-generated unique identifier of the category that you want to modify. To get the system-generated unique identifier of a category from the Data Marketplace user interface, open the category. The category page's URL contains the system-generated unique identifier. For example, in the URL https://{{CDMP_URL}}/category/view?ac=67417f72-e5ab-44f0-add9-a1e412c1ce13&dtn=_AfterEBF%20may20, the system-generated unique identifier is 67417f72-e5ab-44f0-add9-a1e412c1ce13. |
Method | PATCH |
Parameter | Description | Additional Information |
|---|---|---|
operation | Required. Specify the type of change you want to make to the category. Enter one of the following values:
| - |
segment | Required. Specify the type of details that you want the API request to modify. Enter one of the following values:
| - |
name | Optional. Enter a name for the category. | 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 category as "Retail Department" while a category called "Retail department" already exists, the API call fails. |
parentCategoryId | Optional. the system-generated unique identifier of the parent category for the category that you want to create. | If you don't want to add this category as a subcategory to another category, you can leave this parameter empty. For more information about how you can use an API to get the system-generated unique identifier of a category, see Retrieve all categories. To get the system-generated unique identifier of a category from the Data Marketplace user interface, open the category. The category page's URL contains the system-generated unique identifier. For example, in the URL https://{{CDMP_URL}}/category/view?ac=67417f72-e5ab-44f0-add9-a1e412c1ce13&dtn=_AfterEBF%20may20, the system-generated unique identifier is 67417f72-e5ab-44f0-add9-a1e412c1ce13. |
description | Optional. Enter a description for the category. | - |
externalId | Optional. Enter a reference identifier for the category. | If you don't specify a reference identifier, Data Marketplace automatically assigns a unique value to the item. 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. |
assetGroups | Optional. Specify an asset group for the category. | Asset groups enable you to control access to the category, the subcategories and data collections within it. For more information about asset groups, see the Implement access controls on metadata topic in the Set Up Data Marketplace help. |
status | Optional. Specify the status of the category. The status determines whether the category is discoverable and usable in Data Marketplace. Enter one of the following values:
| |
stakeholdership > stakeholderId | Optional. Enter the system-generated unique identifier of the user account or user group that you want to assign as a stakeholder on the category. |
For example, in the URL /cloudUI/products/administer/main/usersAsset/0LH3xBJC9A6haZ26htGZyT, the unique identifier is 0LH3xBJC9A6haZ26htGZyT. For example, in the URL /cloudUI/products/administer/main/userGroupsAsset/90uizkSWg0ycuu7hSNXSW4, the unique identifier is 90uizkSWg0ycuu7hSNXSW4. |
stakeholdership > roleId | Optional. Enter the system-generated unique identifier of the user role that is assigned to the stakeholder that you specified in the stakeholderId parameter. | If you specify a value for the stakeholderId parameter, ensure that you also specify a value for the roleId parameter. To get the system-generated unique identifier of a user role, navigate to My Services > Administrator > User Roles. On the User Roles page, click a user role. The user role page's URL contains the unique identifier. For example, in the URL /cloudUI/products/administer/main/userRolesAsset/90uizkSWg0ycuu7hSNXSW4, the unique identifier is 90uizkSWg0ycuu7hSNXSW4. |
Parameter | Description |
|---|---|
trackerJobId | System-generated identifier of the job that enables you to track the progress of the job in Metadata Command Center. For more information about jobs in Metadata Command Center, see the Administration help in Metadata Command Center. |
propagationJobId | System-generated identifier of the internal job that applies your changes to Data Marketplace . |
Property | Description |
|---|---|
Endpoint | /api/v2/categories/<categoryId> <categoryID>: Required. Enter the system-generated unique identifier of the category that you want to delete. To get the system-generated unique identifier of a category from the Data Marketplace user interface, open the category. The category page's URL contains the system-generated unique identifier. For example, in the URL https://{{CDMP_URL}}/category/view?ac=67417f72-e5ab-44f0-add9-a1e412c1ce13&dtn=_AfterEBF%20may20, the system-generated unique identifier is 67417f72-e5ab-44f0-add9-a1e412c1ce13. |
Method | DELETE |