{"id":50,"date":"2016-01-26T00:38:32","date_gmt":"2016-01-26T00:38:32","guid":{"rendered":"http:\/\/192.168.114.129\/?page_id=50"},"modified":"2023-06-24T11:10:16","modified_gmt":"2023-06-24T11:10:16","slug":"get-organizations","status":"publish","type":"page","link":"https:\/\/api-users.4over.com\/?page_id=50","title":{"rendered":"Retrieve Organizations"},"content":{"rendered":"<h3>Organization Details<\/h3>\n<p>This route will return all Organizations associated with the authenticated user login. Each organization detail contains the resource URI to users, addresses and organization_roles associated with that organization.<\/p>\n<p>The response contains the following components for each organization:<\/p>\n<p>&#8211; organization_uuid: Unique identifier of the specified organization<br \/>\n&#8211; orgnization_name: Name of the specified Organization<br \/>\n&#8211; organization_description: Description of the specified Organization<br \/>\n&#8211; parent_organization: In case the organizations are nested this will identify the parent of specified Organization.<br \/>\n&#8211; users: Path to the users of specifed Organization<br \/>\n&#8211; addresses: Path to the addresses associated to specified Organization<br \/>\n&#8211; job_code_prefix: Jobs associated with this organization will have a job number starting with this job_code_prefix. <\/p>\n<h3>Resource URI<\/h3>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">GET \/organizations<\/pre>\n<h3>Sample Request<\/h3>\n<p>html<\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\nhttps:\/\/api.4over.com\/organizations\r\n<\/pre>\n<h3>Sample Response<\/h3>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\r\nJSON\r\n{\r\nentities: [\r\n  {\r\n        organization_uuid: &quot;5f985c6b-36b5-4fb4-daae-d4e8dcdef61e&quot;,\r\n        organization_name: &quot;Test Printers&quot;,\r\n        organization_description: &quot;Test Printers&quot;,\r\n        parent_organization: {\r\n          organization_uuid: &quot;d6d4e03e-7e88-4f69-9664-2e16da4da2b1&quot;,\r\n          organization_name: &quot;API&quot;,\r\n          organization_description: &quot;API Subscriber Organizations&quot;,\r\n        parent_organization: {\r\n          organization_uuid: &quot;8a17ef16-d997-4544-9f7c-d313febf9c40&quot;,\r\n          organization_name: &quot;4over, Inc.&quot;,\r\n          organization_description: &quot;4over corporate&quot;,\r\n          users: &quot;http:\/\/api.4over.com\/organizations\/8a17ef16-d997-4544-9f7c-d313febf9c40\/users&quot;,\r\n          job_code_prefix: &quot;Z&quot;\r\n      },\r\n      users: &quot;http:\/\/api.4over.com\/organizations\/d6d4e03e-7e88-4f69-9664-2e16da4da2b1\/users&quot;,\r\n      job_code_prefix: &quot;&quot;\r\n      },\r\n      users: &quot;http:\/\/api.4over.com\/organizations\/5f985c6b-36b5-4fb4-daae-d4e8dcdef61e\/users&quot;,\r\n      job_code_prefix: &quot;Z&quot;\r\n    }\r\n  ],\r\n  currentPage: 0,\r\n  maximumPages: 20\r\n}\r\n<\/pre>\n<h2>To get a specific Organization data:<\/h2>\n<h3>Resource URI<\/h3>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">GET \/organizations\/{organization_uuid}<\/pre>\n<h3>Input Parameters<\/h3>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n@param organization_uuid {uuid} The uuid of an Organization.\r\n<\/pre>\n<h3>Sample Request<\/h3>\n<p>html<\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\nhttps:\/\/api.4over.com\/organizations\/45514e13-b131-4c1d-b4eb-b40fbf8a3e69\r\n<\/pre>\n<h3>Sample Response<\/h3>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\r\nJSON\r\n{\r\n  {\r\n    organization_uuid: &quot;5f985c6b-36b5-4fb4-daae-d4e8dcdef61e&quot;,\r\n    organization_name: &quot;Test Printers&quot;,\r\n    organization_description: &quot;My Printer&quot;,\r\n    parent_organization: {\r\n      organization_uuid: &quot;d6d4e03e-7e88-4f69-9664-2e16da4da2b1&quot;,\r\n      organization_name: &quot;API&quot;,\r\n      organization_description: &quot;API Subscriber Organizations&quot;,\r\n      parent_organization: {\r\n        organization_uuid: &quot;8a17ef16-d997-4544-9f7c-d313febf9c40&quot;,\r\n        organization_name: &quot;4over, Inc.&quot;,\r\n        organization_description: &quot;4over corporate&quot;,\r\n        users: &quot;http:\/\/api.4over.com\/organizations\/8a17ef16-d997-4544-9f7c-d313febf9c40\/users&quot;,\r\n        job_code_prefix: &quot;Z&quot;\r\n        },\r\n        users: &quot;http:\/\/api.4over.com\/organizations\/d6d4e03e-7e88-4f69-9664-2e16da4da2b1\/users&quot;,\r\n        job_code_prefix: &quot;&quot;\r\n      },\r\n      users: &quot;http:\/\/api.4over.com\/organizations\/5f985c6b-36b5-4fb4-daae-d4e8dcdef61e\/users&quot;,\r\n      job_code_prefix: &quot;Z&quot;\r\n    }\r\n}\r\n\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Organization Details This route will return all Organizations associated with the authenticated user login. Each organization detail contains the resource URI to users, addresses and organization_roles associated with that organization. The response contains the following components for each organization: &#8211; organization_uuid: Unique identifier of the specified organization &#8211; orgnization_name: Name of the specified Organization &#8211; [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"parent":47,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-50","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/api-users.4over.com\/index.php?rest_route=\/wp\/v2\/pages\/50","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/api-users.4over.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/api-users.4over.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/api-users.4over.com\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/api-users.4over.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=50"}],"version-history":[{"count":5,"href":"https:\/\/api-users.4over.com\/index.php?rest_route=\/wp\/v2\/pages\/50\/revisions"}],"predecessor-version":[{"id":502,"href":"https:\/\/api-users.4over.com\/index.php?rest_route=\/wp\/v2\/pages\/50\/revisions\/502"}],"up":[{"embeddable":true,"href":"https:\/\/api-users.4over.com\/index.php?rest_route=\/wp\/v2\/pages\/47"}],"wp:attachment":[{"href":"https:\/\/api-users.4over.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=50"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}