# system.kanoa.cmms.addProcedureCategory(procedureCategoryInfo, userId)

Creates a new procedure category, used to organize and group related maintenance procedures within the CMMS module (e.g. "Electrical", "HVAC", "Conveyors"). Categories can be nested by supplying a `parentId`, allowing a hierarchical category tree; pass `None` for `parentId` to create a top-level category.
All procedureCategoryInfo keys are required.

---
### Parameters
**procedureCategoryInfo** `Dictionary`<br />
<table class='dictionaryKeyTable'>
	<tbody>
 	<tr><td> - enabled</td><td>Boolean</td><td></td></tr>	
 	<tr><td> - parentId</td><td>Integer</td><td>Id of parent procedure category. Can be None</td></tr>	
 	<tr><td> - procedureCategoryName</td><td>String</td><td>Name of procedure category</td></tr>	
	</tbody>
</table>

**userId** `Integer`:Id of the user executing the function<br />

---
### Returns
**procedureCategoryId** `Integer`<br />
**message** `String` None if success<br />

---
### Example
```python

userId = system.kanoa.security.getIDPUserId({'userName': 'SYSTEM'})
procedureCategoryInfo = {
							"procedureCategoryName": "Conveyors",
							"parentId": None,
							"enabled": True
						}

procedureCategoryId, message = system.kanoa.cmms.addProcedureCategory(procedureCategoryInfo, userId)
print procedureCategoryId, message
```
