Copy Ad

This endpoint can be used to create a copy of an advertisement including all its associated images.

Reference

POST /copyad/<adId>


Fields

field type description/constraints Req W U
adId int The adId of the advertisement to be copied Yes No No
status string The preferred status for the newly created advertisement. No Yes No
Available options:
- draft (default)
- concept
- active
- archive
titlemark string A string to add to the title of the advertisement to show it’s a copy No Yes No

Example copy advertisement

Request

POST /rest/v1/copyad/ HTTP/2
{
  "adId": 659593,
  "status": "active",
  "titlemark": "(copy)"
}

Response

{
  "result": true,
  "errors": [],
  "data": {
    "adId": "659594",
    "userId": "12311",
    "contactId": "",
    "folderId": "0",
    "status": "active",
    "externalAdId": "0",
    "type": "supply",
    "title": "Advertentietitel(copy)",
    "description": "<br /><ul><li>Uitgebreide <strong>omschrijving</strong> van het object</li></ul><u>fdsfasfdhs</u><br /><br /><br />Boel tekst met een streepje er onder.<br /><br /><br /><br />",
    "categoryId": "2301",
    "attributes": [
      {
        "portal": "marktplaats",
        "locale": "nl_NL",
        "attributes": [
          {
            "key": "condition",
            "value": "Gebruikt"
          },
          {
            "key": "delivery",
            "value": "Ophalen"
          }
        ]
      }
    ],
    "url": "www.isn.nl",
    "price": {
      "model": "fixed",
      "askingPrice": "2500",
      "minimumBid": "",
      "shippingCosts": "0",
      "retailPrice": "0"
    },
    "contact": {
      "contactId": false,
      "name": "test",
      "address": "",
      "houseNumber": "",
      "postalCode": "1721 PJ",
      "city": "test",
      "county": "DR",
      "country": "NL",
      "phone": ""
    },
    "settings": [
      {
        "portal": "marktplaats",
        "showcontact": true,
        "autoreplace": false,
        "video": ""
      }
    ],
    "images": [
      {
        "counter": 1,
        "image": {
          "url": "https://www.goedgeplaatst.nl/foto_video/66/664593/foto1.jpg"
        },
        "thumbnail": {
          "url": "https://www.goedgeplaatst.nl/foto_video/66/664593/thumb1.jpg"
        }
      },
      {
        "counter": 2,
        "image": {
          "url": "https://www.goedgeplaatst.nl/foto_video/66/664593/foto2.jpg"
        },
        "thumbnail": {
          "url": "https://www.goedgeplaatst.nl/foto_video/66/664593/thumb2.jpg"
        }
      }
    ]
  }
}