Create a category
post
                    https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/tmf-api/productCatalogManagement/v4/category
Request
There are no request parameters for this operation.
Supported Media Types
                            - application/json
Nested Schema : Category
    
    	Type: 
    	
    
    
    
    objectTitle: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
          
    
CategoryDiscriminator: @type 
Discriminator Values
Show Source- 
                
                    
                    @baseType: string
                    
                    
                     
                    
                
                
                the base class type of the category
- 
                
                    
                    @schemaLocation: string
                    
                    
                     
                    
                
                
                link to the schema describing this category
- 
                
                    
                    @type: string
                    
                    
                     
                    
                
                
                the class type of the Category
- 
                
                    
                    description: string
                    
                    
                     
                    
                
                
                Description of the category
- 
                
                    
                    href: string
                    
                    
                     
                    
                
                
                Reference of the catalog
- 
                
                    
                    id: string
                    
                    
                     
                    
                
                
                Maximum Length:30Unique identifier of the category
- 
                
                    
                    isRoot: boolean
                    
                    
                     
                    
                
                
                If true, this Boolean indicates that the category is a root of categories
- 
                
                    
                    lastUpdate: string
                    
                    
                     (date-time) 
                    
                
                
                Date and time of the last update
- 
                
                    
                    lifecycleStatus: string
                    
                    
                     
                    
                
                
                Used to indicate the current lifecycle status
- 
                
                    
                    name(required): string
                    
                    
                     
                    
                
                
                Name of the category
- 
                
                    
                    parentId: string
                    
                    
                     
                    
                
                
                Unique identifier of the parent category
- 
                
                    
                    productOffering: array
                    
                    
                
                
                    productOffering
                
                
                
- 
                
                    
                    subCategory: array
                    
                    
                
                
                    subCategory
                
                
                
- 
                
                    
                    validFor: object
                    
                    
                
                
                    TimePeriod
                
                
                Title:TimePeriodThe period for which the productOffering is valid
- 
                
                    
                    version: string
                    
                    
                     
                    
                
                
                Category version
Nested Schema : type
    
    	Type: 
    	
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        Show Source
        object- 
                
                    
                    applicationName: string
                    
                    
                     
                    
                
                
                name of the external application
- 
                
                    
                    created: string
                    
                    
                     (date-time) 
                    
                
                
                Date and time of the creation
- 
                
                    
                    createdBy: string
                    
                    
                     
                    
                
                
                name of the person who created item
- 
                
                    
                    externalId: string
                    
                    
                     
                    
                
                
                id of the external application
- 
                
                    
                    lastUpdatedBy: string
                    
                    
                     
                    
                
                
                name of the person who updated item
- 
                
                    
                    project: object
                    
                    
                
                
                    ProjectRef
                
                
                Title:ProjectRefProject Reference
- 
                
                    
                    versionState: number
                    
                    
                     
                    
                
                
                Version state of the category
Nested Schema : ProjectRef
    
    	Type: 
    	
    
    
    
    objectTitle: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    ProjectRefProject Reference
    
    
    
    
        Show Source
        - 
                
                    
                    href: string
                    
                    
                     
                    
                
                
                Unique reference of the project
- 
                
                    
                    id(required): string
                    
                    
                     
                    
                
                
                Unique identifier of the project
- 
                
                    
                    name: string
                    
                    
                     
                    
                
                
                Name of the project
- 
                
                    
                    version: string
                    
                    
                     
                    
                
                
                Version of the project
Response
Supported Media Types
                - application/json
201 Response
Your request is successful and a new resource has been created.
                            
                            
                                Nested Schema : Category
    
    	Type: 
    	
    
    
    
    objectTitle: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
          
    
CategoryDiscriminator: @type 
Discriminator Values
Show Source- 
                
                    
                    @baseType: string
                    
                    
                     
                    
                
                
                the base class type of the category
- 
                
                    
                    @schemaLocation: string
                    
                    
                     
                    
                
                
                link to the schema describing this category
- 
                
                    
                    @type: string
                    
                    
                     
                    
                
                
                the class type of the Category
- 
                
                    
                    description: string
                    
                    
                     
                    
                
                
                Description of the category
- 
                
                    
                    href: string
                    
                    
                     
                    
                
                
                Reference of the catalog
- 
                
                    
                    id: string
                    
                    
                     
                    
                
                
                Maximum Length:30Unique identifier of the category
- 
                
                    
                    isRoot: boolean
                    
                    
                     
                    
                
                
                If true, this Boolean indicates that the category is a root of categories
- 
                
                    
                    lastUpdate: string
                    
                    
                     (date-time) 
                    
                
                
                Date and time of the last update
- 
                
                    
                    lifecycleStatus: string
                    
                    
                     
                    
                
                
                Used to indicate the current lifecycle status
- 
                
                    
                    name(required): string
                    
                    
                     
                    
                
                
                Name of the category
- 
                
                    
                    parentId: string
                    
                    
                     
                    
                
                
                Unique identifier of the parent category
- 
                
                    
                    productOffering: array
                    
                    
                
                
                    productOffering
                
                
                
- 
                
                    
                    subCategory: array
                    
                    
                
                
                    subCategory
                
                
                
- 
                
                    
                    validFor: object
                    
                    
                
                
                    TimePeriod
                
                
                Title:TimePeriodThe period for which the productOffering is valid
- 
                
                    
                    version: string
                    
                    
                     
                    
                
                
                Category version
Nested Schema : type
    
    	Type: 
    	
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        Show Source
        object- 
                
                    
                    applicationName: string
                    
                    
                     
                    
                
                
                name of the external application
- 
                
                    
                    created: string
                    
                    
                     (date-time) 
                    
                
                
                Date and time of the creation
- 
                
                    
                    createdBy: string
                    
                    
                     
                    
                
                
                name of the person who created item
- 
                
                    
                    externalId: string
                    
                    
                     
                    
                
                
                id of the external application
- 
                
                    
                    lastUpdatedBy: string
                    
                    
                     
                    
                
                
                name of the person who updated item
- 
                
                    
                    project: object
                    
                    
                
                
                    ProjectRef
                
                
                Title:ProjectRefProject Reference
- 
                
                    
                    versionState: number
                    
                    
                     
                    
                
                
                Version state of the category
Nested Schema : ProjectRef
    
    	Type: 
    	
    
    
    
    objectTitle: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    ProjectRefProject Reference
    
    
    
    
        Show Source
        - 
                
                    
                    href: string
                    
                    
                     
                    
                
                
                Unique reference of the project
- 
                
                    
                    id(required): string
                    
                    
                     
                    
                
                
                Unique identifier of the project
- 
                
                    
                    name: string
                    
                    
                     
                    
                
                
                Name of the project
- 
                
                    
                    version: string
                    
                    
                     
                    
                
                
                Version of the project
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.
                            
                            
                                Root Schema : Error
    
    	Type: 
    	
    
    
    
    objectTitle: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        Show Source
        Error- 
                
                    
                    @schemaLocation: string
                    
                    
                     
                    
                
                
                It provides a link to the schema describing a REST resource.
- 
                
                    
                    @type: string
                    
                    
                     
                    
                
                
                The class type of a REST resource.
- 
                
                    
                    code(required): string
                    
                    
                     
                    
                
                
                Application related code (as defined in the API or from a common list)
- 
                
                    
                    message: string
                    
                    
                     
                    
                
                
                Text that provide more details and corrective actions related to the error. This can be shown to a client user.
- 
                
                    
                    reason(required): string
                    
                    
                     
                    
                
                
                Text that explains the reason for error. This can be shown to a client user.
- 
                
                    
                    referenceError: string
                    
                    
                     
                    
                
                
                url pointing to documentation describing the error
- 
                
                    
                    status: string
                    
                    
                     
                    
                
                
                http error code extension like 400-2
401 Response
Your request isn't authorized. The authentication credentials included with this request are missing or invalid.
                            
                            
                                Root Schema : Error
    
    	Type: 
    	
    
    
    
    objectTitle: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        Show Source
        Error- 
                
                    
                    @schemaLocation: string
                    
                    
                     
                    
                
                
                It provides a link to the schema describing a REST resource.
- 
                
                    
                    @type: string
                    
                    
                     
                    
                
                
                The class type of a REST resource.
- 
                
                    
                    code(required): string
                    
                    
                     
                    
                
                
                Application related code (as defined in the API or from a common list)
- 
                
                    
                    message: string
                    
                    
                     
                    
                
                
                Text that provide more details and corrective actions related to the error. This can be shown to a client user.
- 
                
                    
                    reason(required): string
                    
                    
                     
                    
                
                
                Text that explains the reason for error. This can be shown to a client user.
- 
                
                    
                    referenceError: string
                    
                    
                     
                    
                
                
                url pointing to documentation describing the error
- 
                
                    
                    status: string
                    
                    
                     
                    
                
                
                http error code extension like 400-2
404 Response
Your request includes a resource URI that doesn't exist.
                            
                            
                                Root Schema : Error
    
    	Type: 
    	
    
    
    
    objectTitle: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        Show Source
        Error- 
                
                    
                    @schemaLocation: string
                    
                    
                     
                    
                
                
                It provides a link to the schema describing a REST resource.
- 
                
                    
                    @type: string
                    
                    
                     
                    
                
                
                The class type of a REST resource.
- 
                
                    
                    code(required): string
                    
                    
                     
                    
                
                
                Application related code (as defined in the API or from a common list)
- 
                
                    
                    message: string
                    
                    
                     
                    
                
                
                Text that provide more details and corrective actions related to the error. This can be shown to a client user.
- 
                
                    
                    reason(required): string
                    
                    
                     
                    
                
                
                Text that explains the reason for error. This can be shown to a client user.
- 
                
                    
                    referenceError: string
                    
                    
                     
                    
                
                
                url pointing to documentation describing the error
- 
                
                    
                    status: string
                    
                    
                     
                    
                
                
                http error code extension like 400-2
405 Response
HTTP action specified in the request (DELETE, GET, POST, PUT) isn't supported for this request URI.
                            
                            
                                Root Schema : Error
    
    	Type: 
    	
    
    
    
    objectTitle: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        Show Source
        Error- 
                
                    
                    @schemaLocation: string
                    
                    
                     
                    
                
                
                It provides a link to the schema describing a REST resource.
- 
                
                    
                    @type: string
                    
                    
                     
                    
                
                
                The class type of a REST resource.
- 
                
                    
                    code(required): string
                    
                    
                     
                    
                
                
                Application related code (as defined in the API or from a common list)
- 
                
                    
                    message: string
                    
                    
                     
                    
                
                
                Text that provide more details and corrective actions related to the error. This can be shown to a client user.
- 
                
                    
                    reason(required): string
                    
                    
                     
                    
                
                
                Text that explains the reason for error. This can be shown to a client user.
- 
                
                    
                    referenceError: string
                    
                    
                     
                    
                
                
                url pointing to documentation describing the error
- 
                
                    
                    status: string
                    
                    
                     
                    
                
                
                http error code extension like 400-2
500 Response
The server encountered something unexpected that prevented it from completing the request.
                            
                            
                                Root Schema : Error
    
    	Type: 
    	
    
    
    
    objectTitle: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        Show Source
        Error- 
                
                    
                    @schemaLocation: string
                    
                    
                     
                    
                
                
                It provides a link to the schema describing a REST resource.
- 
                
                    
                    @type: string
                    
                    
                     
                    
                
                
                The class type of a REST resource.
- 
                
                    
                    code(required): string
                    
                    
                     
                    
                
                
                Application related code (as defined in the API or from a common list)
- 
                
                    
                    message: string
                    
                    
                     
                    
                
                
                Text that provide more details and corrective actions related to the error. This can be shown to a client user.
- 
                
                    
                    reason(required): string
                    
                    
                     
                    
                
                
                Text that explains the reason for error. This can be shown to a client user.
- 
                
                    
                    referenceError: string
                    
                    
                     
                    
                
                
                url pointing to documentation describing the error
- 
                
                    
                    status: string
                    
                    
                     
                    
                
                
                http error code extension like 400-2
Examples
The following example shows how to create a category by submitting a POST request on the REST resource using cURL.
cURL Command
                      curl -u username:password -X POST \
https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/tmf-api/productCatalogManagement/v4/category \ -H 'Content-Type: application/json' -D @create_category.json | json_pp
Example of Request Body
The following example shows the contents of the request body in JSON format.
{
    "id": "RVAS",
	"name": "Residential Value Add Services",
    "description": "This catalog has product offers for home automation, home security, connected vehicles etc.",
    "@type": "CategoryOracle",
    "version": "1.0",
    "lifecycleStatus": "In design",
    "validFor": {
        "startDateTime": "2020-08-10T00:00:00.000Z"
    },
     "project": {
        "id": "SpringProject",
        "name": "SpringProject"
    }
}Example of Response Body
The
following example shows the contents of the response body in JSON
format.
               {
    "id": "RVAS",
    "name": "Residential Value Add Services",
    "description": "This catalog has product offers for home automation, home security, connected vehicles etc.",
    "@type": "CategoryOracle",
    "version": "1.0",
    "lifecycleStatus": "In design",
    "validFor": {
        "startDateTime": "2020-08-10T00:00:00.000Z"
    },
     "project": {
        "id": "SpringProject",
        "name": "SpringProject"
    },
    "href": "https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/tmf-api/productCatalogManagement/v4/category/RVAS",
    "createdBy": "anonymous",
    "created": "2020-08-21T08:08:48.000Z",
    "lastUpdatedBy": "anonymous",
    "lastUpdate": "2020-08-21T08:08:48.000Z"
}