{"id":2579,"date":"2023-12-22T21:02:16","date_gmt":"2023-12-22T21:02:16","guid":{"rendered":"https:\/\/developers.maplink.global\/building-requests-for-the-restriction-zone-api\/"},"modified":"2024-02-29T17:25:46","modified_gmt":"2024-02-29T17:25:46","slug":"building-requests-for-the-restriction-zone-api","status":"publish","type":"post","link":"https:\/\/developers.maplink.global\/en\/building-requests-for-the-restriction-zone-api\/","title":{"rendered":"Building requests for the Restriction Zone API"},"content":{"rendered":"\n<p>Before you can start using the API, you will need to <a href=\"https:\/\/developers.maplink.global\/en\/how-do-i-generate-the-token-for-authentication\/\" data-type=\"post\" data-id=\"999\">obtain the <em>authentication token<\/em><\/a>. <\/p>\n\n<p>The following <em>headers <\/em>will be required, where the word <strong><em>token <\/em><\/strong>must be replaced by the token obtained in the authentication process:<\/p>\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">--header 'Content-Type: application\/json' \\\n--header 'Authorization: Bearer token'<\/pre>\n\n<p>The <em>body <\/em>will send all the parameters for managing the restriction zone.<\/p>\n\n<p>The Restriction Zone API has the following endpoints:<\/p>\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/api.maplink.global\/restriction\/v1\/restrictionZones\">https:\/\/api.maplink.global\/restriction\/v1\/restrictionZones<\/a> &#8211; <strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-luminous-vivid-amber-color\">POST<\/mark><\/strong><br\/>Used to create a restriction zone. <br\/><\/li>\n\n\n\n<li><a href=\"https:\/\/api.maplink.global\/restriction\/v1\/restrictionZones\">https:\/\/api.maplink.global\/restriction\/v1\/restrictionZones<\/a> &#8211; <strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-green-cyan-color\">GET<\/mark><\/strong><br\/>Used to consult all the restriction zones created.<br\/><\/li>\n\n\n\n<li><a href=\"https:\/\/api.maplink.global\/restriction\/v1\/restrictionZones\/%7B%7BrestrictionZone%7D%7D\">https:\/\/api.maplink.global\/restriction\/v1\/restrictionZones\/{{restrictionZone}}<\/a> &#8211; <strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-green-cyan-color\">GET<\/mark><\/strong><br\/>Used to consult a specific restriction zone. The term <code>{{restrictionZone}}<\/code> must be replaced by the name of the desired restriction zone.<br\/><\/li>\n\n\n\n<li><a href=\"https:\/\/api.maplink.global\/restriction\/v1\/restrictionZones\/%7B%7BrestrictionZone%7D%7D\">https:\/\/api.maplink.global\/restriction\/v1\/restrictionZones\/{{restrictionZone}}<\/a> &#8211; <strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">DELETE<\/mark><\/strong><br\/>Used to exclude a specific restriction zone. The term <code>{{restrictionZone}}<\/code> must be replaced by the name of the desired restriction zone.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Before you can start using the API, you will need to obtain the authentication token. The following headers will be required, where the word token must be replaced by the token obtained in the authentication process: The body will send all the parameters for managing the restriction zone. The Restriction Zone API has the following [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"categories":[162],"tags":[],"class_list":["post-2579","post","type-post","status-publish","format-standard","hentry","category-restriction-zone-en"],"acf":[],"_links":{"self":[{"href":"https:\/\/developers.maplink.global\/en\/wp-json\/wp\/v2\/posts\/2579","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/developers.maplink.global\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/developers.maplink.global\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/developers.maplink.global\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/developers.maplink.global\/en\/wp-json\/wp\/v2\/comments?post=2579"}],"version-history":[{"count":3,"href":"https:\/\/developers.maplink.global\/en\/wp-json\/wp\/v2\/posts\/2579\/revisions"}],"predecessor-version":[{"id":2596,"href":"https:\/\/developers.maplink.global\/en\/wp-json\/wp\/v2\/posts\/2579\/revisions\/2596"}],"wp:attachment":[{"href":"https:\/\/developers.maplink.global\/en\/wp-json\/wp\/v2\/media?parent=2579"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/developers.maplink.global\/en\/wp-json\/wp\/v2\/categories?post=2579"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/developers.maplink.global\/en\/wp-json\/wp\/v2\/tags?post=2579"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}