I am trying to post Wikis with REST API.
The input I used was:
curl --data "@myPost.xml" --header "Content-Type: application/atom+xml" "
https://w3-connections.ibm.com/wikis/basic/api/wiki/W56cd286f277b_4ebc_a54a_c8d108e8c839/feed" -u xxx@xx.ibm.com -k -L -v
myPost.xml was:
<?xml version="1.0" encoding="UTF-8"?>
<entry xmlns="http://www.w3.org/2005/Atom">
<category term="wiki" scheme="tag:ibm.com,2006:td/type" label="wiki"></category>
<title type="text">ATOM API</title>
</entry>
But I got the result as:
HTTP/1.1 415 Unsupported Media Type
<?xml version="1.0" encoding="UTF-8"?><td:error xmlns:td="urn:ibm.com/td"><td:errorCode>InvalidType</td:errorCode><td:errorMessage>An invalid entry was encountered for this operation. This operation expects entries of category type document | page for input.</td:errorMessage></td:error>
Could someone help me about this?
Thanks very much.