This webservice is used to submit a url to Mapaprop for build sitemaps service. Only for sitemap-portal scope service
| Resource information | |
|---|---|
| Authentication | Required |
| HTTP Method | POST |
| Response | JSON |
| Version | 1 |
<https://mapaprop.app/api/action/portal-v2/sitemap/search-url/{countryiso}>
countryIso = check Constants
| Key | Type | Required | Description |
|---|---|---|---|
| url | string | yes | The url for search query (without root url). View Example |
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
The JSON response will tell you if the url was submitted and recorded or is has error
| Object | Field | Type | Required | Description | |
|---|---|---|---|---|---|
| Response | result | success | boolean | yes | A boolean showing if the submission was or not successful |
| id | int | no | A text indicating the id number of the record | ||
| updated | boolean | yes | A boolean showing if the submission was or not recorded | ||
| error | string | no | A text indicating the type of error |
#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"
}
}
<aside> ⚠️ Duplicate urls cannot be saved
</aside>
#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