[
{
"id": 2,
"name": "Interspace Test",
"url": "http://accesstrade.co.id",
"status": "APPROVED"
},
{
"id": 10737,
"name": "test site",
"url": "http://example.test.com/",
"status": "REVIEWING"
}
]
{
"name": "test site updated",
"url": "http://example.test.com/updated",
"type": "COMMUNITY",
"status": "REVIEWING",
"categories":
[
{
"name":"Trading",
"value":4
},
{
"name":"Games",
"value":20
}
],
"description": "my site description",
"traffic": "TWITTER",
"leadGeneration": "CASHBACK"
}
{
"name": "test site",
"url": "http://example.test.com",
"type": "BLOG",
"categories": [
{
"value": 1
},
{
"value": 10
}
],
"description": "test site for testing adding a new site",
"traffic": "TWITTER",
"leadGeneration": "CASHBACK"
}
{
"id": 12
}
{
"id": 1,
"name": "test site updated",
"url": "http://example.test.com/updated",
"type": "COMMUNITY",
"description": "updated description",
"categories": [
{
"value": 5
},
{
"value": 11
}
],
"traffic": "TWITTER",
"leadGeneration": "CASHBACK"
}
The request path is the same as for Create Website above. The only difference is in the request body: the update request contains the ID of the site-to-be-updated along with all the details that are also present in the Create Website request. The request represents the site in the way it should look like after the update. So any fields not sent in the request will be updated to an empty value!
{
"id": 12
}