SOAP method for adding a container to a bodycopy


(Mahearnpad) #1

Hi gurus


I've managed to change the attributes of an existing container - eg add html content to a wysywig container. BUT … is there a way to add a new one using the SOAP API? This would replace the manual add new wysywig div and provide the div id for it.

I need to do this for over 300 pages, so obviously the content authors are depending on me to come up with the goods. But I can't see any methods in the manual that make this possible.



Can anyone help?



TIA

Michael


(Mahearnpad) #2

I've discovered the clone_asset function works for what I want to do.


Thanks






[quote]

Hi gurus



I've managed to change the attributes of an existing container - eg add html content to a wysywig container. BUT … is there a way to add a new one using the SOAP API? This would replace the manual add new wysywig div and provide the div id for it.

I need to do this for over 300 pages, so obviously the content authors are depending on me to come up with the goods. But I can't see any methods in the manual that make this possible.



Can anyone help?



TIA

Michael

[/quote]


(Squiz) #3

For future reference, I believe you can use the CreateAsset SOAP call to create a new asset under your bodycopy with the TypeCode of “bodycopy_div”.


Might be a bit of overkill, but there’s a really useful SQL query you can run against your database to find a list of type codes you can create with the API.


(Mahearnpad) #4

Thanks Ash - this is good to know for future reference.

[quote]

For future reference, I believe you can use the CreateAsset SOAP call to create a new asset under your bodycopy with the TypeCode of “bodycopy_div”.



Might be a bit of overkill, but there’s a really useful SQL query you can run against your database to find a list of type codes you can create with the API.

[/quote]