PROD

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

Resource information
AuthenticationRequired
Scopesitemap-portal
HTTP MethodPOST
ResponseJSON
Version2

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 {access_token}

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

#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