---
schema_version: "1"
id: 7c9539dedf8900056d244f3febc8b42f5881e2a0ee2b45e6d64f5e627a685e08
title: TMFTMForumCreateCategory
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/industries-integrations/comms/guides/TMF620/IP/TMFTMForumCreateCategory.md
canonical_url: https://developer.salesforce.com/docs/industries/communications/guide/TMFTMForumCreateCategory.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: fd8151b75f272a55d5f31c79d96536b0e1f5628b98af27a9e4057bfd30f31d95
products:
  - Communications Cloud TM Forum API
  - Industries Integrations
---
# TMFTMForumCreateCategory

This IP is used to invoke the TM Forum API to create a category.

## Input JSON

```@json
{
    "description": "new",
    "lastUpdate": "2023-02-23T07:04:26.000+0000",
    "lifecycleStatus": "Inactive",
    "name": "new",
    "validFor": {
        "endDateTime": "2024-03-25T00:00:00.000+0000",
        "startDateTime": "2020-08-24T00:00:00.000+0000"
    },
    "@type": "Category",
    "href": "/services/apexrest/vlocity_cmt/tmforum/productopenapi/v1/category/a0j4x0000052VfDAAU",
    "subCategory": [
        {
            "@type": "Catalog",
            "href": "/services/data/v57.0/sobjects/vlocity_cmt__Catalog__c/a0j4x0000052VfEAAU",
            "id": "f89a76ce-5587-df10-74e2-6d9352c9572a",
            "name": "updated++"
        },
        {
            "@type": "Catalog",
            "href": "/services/data/v57.0/sobjects/vlocity_cmt__Catalog__c/a0j4x0000032Qw1AAE",
            "id": "a47a6362-b2c4-5899-5ed1-cfb72a5af3af",
            "name": "updated++"
        }
    ]
}
```

## Output JSON

```@json
{
    "description": "new",
    "id": "d07d1118-08af-ee76-d246-fe295fa4a0ee",
    "isRoot": true,
    "lastUpdate": "2023-02-23T07:04:26.000+0000",
    "lifecycleStatus": "Inactive",
    "name": "new",
    "validFor": {
        "endDateTime": "2024-03-25T00:00:00.000+0000",
        "startDateTime": "2020-08-24T00:00:00.000+0000"
    },
    "@type": "Category",
    "href": "/services/apexrest/vlocity_cmt/tmforum/productopenapi/v1/category/a0j4x0000052VfDAAU",
    "subCategory": [
        {
            "@type": "Catalog",
            "href": "/services/data/v57.0/sobjects/vlocity_cmt__Catalog__c/a0j4x0000052VfEAAU",
            "id": "f89a76ce-5587-df10-74e2-6d9352c9572a",
            "name": "updated++"
        },
        {
            "@type": "Catalog",
            "href": "/services/data/v57.0/sobjects/vlocity_cmt__Catalog__c/a0j4x0000032Qw1AAE",
            "id": "a47a6362-b2c4-5899-5ed1-cfb72a5af3af",
            "name": "updated++"
        }
    ]
}
```

## Usage

This IP calls the [TMFOpenAPICategoryService.invokeMethod](https://developer.salesforce.com/docs/industries/communications/apex/TMFOpenAPICategoryService.md) Apex method and the following Data Raptors:

- [TMFTMForumCategoryRequestTransform](https://developer.salesforce.com/docs/industries/communications/DR/TMFTMForumCategoryRequestTransform.md)
- [TMFTMForumCategoryResponseTransform](https://developer.salesforce.com/docs/industries/communications/DR/TMFTMForumCategoryResponseTransform.md)
