Get a category

get

https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/tmf-api/productCatalogManagement/v4/category/{id}

Request

Path Parameters
Query Parameters

There's no request body for this operation.

Back to Top

Response

Supported Media Types

200 Response

OK
Body ()
Root Schema : CategoryOracle
Title: CategoryOracle
Match All
Show Source
  • Category
    Title: Category
    Discriminator: { "propertyName":"@type", "mapping":{ "Category":"#/components/schemas/Category", "CategoryOracle":"#/components/schemas/CategoryOracle" } }
  • type
Nested Schema : Category
Type: object
Title: Category
Discriminator: @type

Discriminator Values

Show Source
Nested Schema : type
Type: object
Show Source
Nested Schema : ProjectRef
Type: object
Title: ProjectRef
Project Reference
Show Source

400 Response

Your request couldn't be processed because it contains missing or invalid information, such as a validation error on an input field, a missing required value, and so forth.
Body ()
Root Schema : Error
Type: object
Title: Error
Show Source

401 Response

Your request isn't authorized. The authentication credentials included with this request are missing or invalid.
Body ()
Root Schema : Error
Type: object
Title: Error
Show Source

404 Response

Your request includes a resource URI that doesn't exist.
Body ()
Root Schema : Error
Type: object
Title: Error
Show Source

405 Response

HTTP action specified in the request (DELETE, GET, POST, PUT) isn't supported for this request URI.
Body ()
Root Schema : Error
Type: object
Title: Error
Show Source

500 Response

The server encountered something unexpected that prevented it from completing the request.
Body ()
Root Schema : Error
Type: object
Title: Error
Show Source
Back to Top

Examples

The following example shows how to get a category by submitting a GET request on the REST resource using cURL.

cURL Command

curl -u username:password -X GET https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/tmf-api/productCatalogManagement/v4/category/32000 \ -H 'Content-Type: application/json'

Example of Response Body

The following example shows the contents of the response body in JSON format.

{
    "subCategory": [
        {
            "@referredType": "CategoryOracle",
            "subCategory": [],
            "href": "https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/tmf-api/productCatalogManagement/v4/category/32000/32112",
            "version": "1.0",
            "name": "Fruit",
            "id": "32112"
        },
        {
            "@referredType": "CategoryOracle",
            "subCategory": [],
            "href": "https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/tmf-api/productCatalogManagement/v4/category/32000/32111",
            "version": "1.0",
            "name": "Juice",
            "id": "32111"
        },
        {
            "@referredType": "CategoryOracle",
            "subCategory": [],
            "href": "https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/tmf-api/productCatalogManagement/v4/category/32000/32113",
            "version": "1.0",
            "name": "Flavoring",
            "id": "32113"
        },
        {
            "@referredType": "CategoryOracle",
            "subCategory": [],
            "href": "https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/tmf-api/productCatalogManagement/v4/category/32000/32114",
            "version": "1.0",
            "name": "Starch",
            "id": "32114"
        },
        {
            "@referredType": "CategoryOracle",
            "subCategory": [],
            "href": "https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/tmf-api/productCatalogManagement/v4/category/32000/32115",
            "version": "1.0",
            "name": "Water",
            "id": "32115"
        },
        {
            "@referredType": "CategoryOracle",
            "subCategory": [],
            "href": "https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/tmf-api/productCatalogManagement/v4/category/32000/32116",
            "version": "1.0",
            "name": "Color",
            "id": "32116"
        },
        {
            "@referredType": "CategoryOracle",
            "subCategory": [],
            "href": "https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/tmf-api/productCatalogManagement/v4/category/32000/32117",
            "version": "1.0",
            "name": "Leavening",
            "id": "32117"
        },
        {
            "@referredType": "CategoryOracle",
            "subCategory": [],
            "href": "https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/tmf-api/productCatalogManagement/v4/category/32000/32118",
            "version": "1.0",
            "name": "Soda",
            "id": "32118"
        },
        {
            "@referredType": "CategoryOracle",
            "subCategory": [],
            "href": "https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/tmf-api/productCatalogManagement/v4/category/32000/32119",
            "version": "1.0",
            "name": "Coffee",
            "id": "32119"
        }
    ],
    "href": "https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/tmf-api/productCatalogManagement/v4/category/32000",
    "isRoot": false,
    "parentId": "30000",
    "description": "Beverage",
    "version": "1.0",
    "name": "Beverage",
    "id": "32000"
}
Back to Top