PRODUCTION

This webservice is used to submit a url to Mapaprop for build sitemaps service. Only for sitemap-portal scope service

Resource information
AuthenticationRequired
HTTP MethodPOST
ResponseJSON
Version1

Resource URL

https://mapaprop.app/api/action/portal-v2/sitemap/search-url/{countryiso}

countryIso = check Constants

Parameters

KeyTypeRequiredDescription
urlstringyesThe url for search query (without root url). View Example

Sample code

POST /api/action/portal-v2/messages HTTP/1.1
Host: mapaprop.app
Content-Type: application/x-www-form-urlencoded
Content-Length: 0
Authorization: Bearer ya29.1.AADtN_UxybTdjLw9jX6lg_SXIgc3wTtek4q2WvfETzSrz7Q6loEYoJEWd1x4qvlpGw

url=/buscar/operacion-venta_1/tipo-departamento_1/zona-el-palomar-moron-buenos-aires_2-222-50

Response

The JSON response will tell you if the url was submitted and recorded or is has error

ObjectFieldTypeRequiredDescription
ResponseresultsuccessbooleanyesA boolean showing if the submission was or not successful
idintnoA text indicating the id number of the record
updatedbooleanyesA boolean showing if the submission was or not recorded
errorstringnoA text indicating the type of error

Sample code

#success
{
    "result": {
        "id": 290426,
        "updated": 1
    }
}

#success but not recorded (duplicated)
{
    "result": {
        "updated": 0
    }
}

#error
{
    "result": {
      "error": "You don't have enough permissions for this action"
    }
}

Duplicate urls cannot be saved

Example for url

#complete url
https://www.martillerosunidos.com/ar/buscar/operacion-venta_1/tipo-departamento_1/zona-el-palomar-moron-buenos-aires_2-222-50

#root url mapaprop.app
https://www.martillerosunidos.com

#country component
ar

#query url
/buscar/operacion-venta_1/tipo-departamento_1/zona-el-palomar-moron-buenos-aires_2-222-50