{"id":2591,"date":"2023-12-22T21:18:12","date_gmt":"2023-12-22T21:18:12","guid":{"rendered":"https:\/\/developers.maplink.global\/status-codes-restriction-zones\/"},"modified":"2024-02-29T17:30:33","modified_gmt":"2024-02-29T17:30:33","slug":"status-codes-restriction-zones","status":"publish","type":"post","link":"https:\/\/developers.maplink.global\/en\/status-codes-restriction-zones\/","title":{"rendered":"Status Codes &#8211; Restriction Zones"},"content":{"rendered":"\n<p>Below is the table with the <em>status codes<\/em> for each endpoint available in the Restriction Zone API:<\/p>\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><strong>Code<\/strong><\/td><td><strong>Method<\/strong><\/td><td><strong>Endpoint<\/strong><\/td><td><strong>Description<\/strong><\/td><\/tr><tr><td>201<\/td><td>POST<\/td><td><a href=\"https:\/\/api.maplink.global\/restriction\/v1\/restrictionZones\/%7B%7BrestrictionZone%7D%7D\">https:\/\/api.maplink.global\/restriction\/v1\/restrictionZones\/<\/a><\/td><td><code>Restriction zone successfully created<\/code><\/td><\/tr><tr><td>400<\/td><td>POST<\/td><td><a href=\"https:\/\/api.maplink.global\/restriction\/v1\/restrictionZones\/%7B%7BrestrictionZone%7D%7D\">https:\/\/api.maplink.global\/restriction\/v1\/restrictionZones\/<\/a><\/td><td><code>Restricton zone with validation errors<\/code><\/td><\/tr><tr><td>409<\/td><td>POST<\/td><td><a href=\"https:\/\/api.maplink.global\/restriction\/v1\/restrictionZones\/%7B%7BrestrictionZone%7D%7D\">https:\/\/api.maplink.global\/restriction\/v1\/restrictionZones\/<\/a><\/td><td><code>Conflict<\/code> (there is already a restriction zone with the same name in the same clientId)<\/td><\/tr><tr><td>200<\/td><td>GET<\/td><td><a href=\"https:\/\/api.maplink.global\/restriction\/v1\/restrictionZones\/%7B%7BrestrictionZone%7D%7D\">https:\/\/api.maplink.global\/restriction\/v1\/restrictionZones\/<\/a><\/td><td><code>Restriction zone found<\/code><\/td><\/tr><tr><td>400<\/td><td>GET<\/td><td><a href=\"https:\/\/api.maplink.global\/restriction\/v1\/restrictionZones\/%7B%7BrestrictionZone%7D%7D\">https:\/\/api.maplink.global\/restriction\/v1\/restrictionZones\/<\/a><\/td><td><code>Restriction zone not found<\/code> (The restriction zone was not found. Check that the name and clientId are correct).<\/td><\/tr><tr><td>204<\/td><td>DELETE<\/td><td><a href=\"https:\/\/api.maplink.global\/restriction\/v1\/restrictionZones\/%7B%7BrestrictionZone%7D%7D\">https:\/\/api.maplink.global\/restriction\/v1\/restrictionZones\/<\/a><\/td><td><code>No Content<\/code>  (the restricted area has been successfully deleted)<\/td><\/tr><tr><td>400<\/td><td>DELETE<\/td><td><a href=\"https:\/\/api.maplink.global\/restriction\/v1\/restrictionZones\/%7B%7BrestrictionZone%7D%7D\">https:\/\/api.maplink.global\/restriction\/v1\/restrictionZones\/<\/a><\/td><td><code>Restriction zone not found<\/code> (The restriction zone was not found. Check that the name and clientId are correct).<\/td><\/tr><\/tbody><\/table><figcaption class=\"wp-element-caption\">Table with all possible statuses returned by each endpoint<\/figcaption><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Below is the table with the status codes for each endpoint available in the Restriction Zone API: Code Method Endpoint Description 201 POST https:\/\/api.maplink.global\/restriction\/v1\/restrictionZones\/ Restriction zone successfully created 400 POST https:\/\/api.maplink.global\/restriction\/v1\/restrictionZones\/ Restricton zone with validation errors 409 POST https:\/\/api.maplink.global\/restriction\/v1\/restrictionZones\/ Conflict (there is already a restriction zone with the same name in the same clientId) 200 [&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-2591","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\/2591","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=2591"}],"version-history":[{"count":3,"href":"https:\/\/developers.maplink.global\/en\/wp-json\/wp\/v2\/posts\/2591\/revisions"}],"predecessor-version":[{"id":2606,"href":"https:\/\/developers.maplink.global\/en\/wp-json\/wp\/v2\/posts\/2591\/revisions\/2606"}],"wp:attachment":[{"href":"https:\/\/developers.maplink.global\/en\/wp-json\/wp\/v2\/media?parent=2591"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/developers.maplink.global\/en\/wp-json\/wp\/v2\/categories?post=2591"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/developers.maplink.global\/en\/wp-json\/wp\/v2\/tags?post=2591"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}