Params
attributes(Object) – The custom attributes and their values of the new CMS object.
Throws
ArgumentError– If a given attribute is invalid.
Returns
The created Obj.
Examples
Creates a new Obj with the given attributes.
Params
attributes (Object) – The custom attributes and their values of the new CMS object.Throws
ArgumentError – If a given attribute is invalid.Returns
The created Obj.
Examples
Create a new blog post with a permalink:
Be aware that setting a permalink this way (as opposed to setting it using the UI’s permalink editor) does not check whether the permalink is already in use.
Create a new page consisting of an initial text widget that says “Hello!”. After creating the page, navigate to the new page: