cancel
Showing results for 
Search instead for 
Did you mean: 

Create/update Content Type

jameszhou
Champ in-the-making
Champ in-the-making
Hi I cant find any APIs to allow me to create or update a content type.  There is a link talking about how to create a new content type: http://wiki.alfresco.com/wiki/Data_Dictionary_Guide.

But how do I create a type programmatically?

Thanks,
2 REPLIES 2

gavinc
Champ in-the-making
Champ in-the-making
You can do it but it's a lower level API.

You'd have to find what APIs are used by the process that creates the types from the XML and re-use them.

As you've probably guessed this isn't something we've exposed as a public API yet!

davidc
Star Contributor
Star Contributor
Take a look at http://forums.alfresco.com/viewtopic.php?t=2049 for code that creates a model programmatically.