Docs

Post

POST /resourceTypes

POST/resourceTypes

Creates a resource type. A new type gets one default section and a hidden base variant; attributes are not part of this body, so place library attributes into its sections with ResourceTypes_PlaceResourceTypeAttribute. The category id comes from ResourceTypes_GetCategories and any default rule set ids from ResourceTypes_GetRuleSets. Requires ResourceTypeDatabase.Edit.

Request Body

FieldTypeRequiredDescription
typestringOptional
namestringOptional
labelstringOptional
iconstringOptional
colorstringOptional
categoryIduuidOptional
isDockablebooleanOptional
isScheduledbooleanOptional
hasProviderbooleanOptional
hasPayorbooleanOptional
lineItemLabelstringOptional
trackingTypestringOptional
defaultOwneruuidOptional
defaultRuleSetIdsuuid[]Optional