---
title: "Organizations"
description: "Interface with the autoZnetwork organizations."
canonical_url: "https://autoznetwork.com/docs/api/organizations"
---

> Index of every page on this site: [llms.txt](https://autoznetwork.com/llms.txt)

# Organizations

### Properties

<table>
<thead>
  <tr>
    <th>
      Property
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        id
      </code>
    </td>
    
    <td>
      Integer
    </td>
    
    <td>
      The ID of the Organization.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        name
      </code>
    </td>
    
    <td>
      String
    </td>
    
    <td>
      Friendly name for the Organization.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        phone_number
      </code>
    </td>
    
    <td>
      String
    </td>
    
    <td>
      Associated phone number.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        social
      </code>
    </td>
    
    <td>
      Array
    </td>
    
    <td>
      An array of social media URLs.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        social.facebook
      </code>
    </td>
    
    <td>
      String
    </td>
    
    <td>
      URL of Organization's Facebook Page.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        social.twitter
      </code>
    </td>
    
    <td>
      String
    </td>
    
    <td>
      URL of Organization's Twitter Page.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        social.instagram
      </code>
    </td>
    
    <td>
      String
    </td>
    
    <td>
      URL of Organization's Instagram Page.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        social.youtube
      </code>
    </td>
    
    <td>
      String
    </td>
    
    <td>
      URL of Organization's YouTube Page.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        social.tiktok
      </code>
    </td>
    
    <td>
      String
    </td>
    
    <td>
      URL of Organization's TikTok Page.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        social.pinterest
      </code>
    </td>
    
    <td>
      String
    </td>
    
    <td>
      URL of Organization's Pinterest Page.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        created_at
      </code>
    </td>
    
    <td>
      DateTime
    </td>
    
    <td>
      DateTime the Organization was created in autoZnetwork's system.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        updated_at
      </code>
    </td>
    
    <td>
      DateTime
    </td>
    
    <td>
      DateTime the Organization was last updated in autoZnetwork's system.
    </td>
  </tr>
</tbody>
</table>

### Relationships

<table>
<thead>
  <tr>
    <th>
      Relationship
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <a href="/docs/api/locations">
        Locations
      </a>
    </td>
    
    <td>
      The Locations contained within the Organization.
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="/docs/api/location-groups">
        Location Groups
      </a>
    </td>
    
    <td>
      The Location Groups contained within the Organization.
    </td>
  </tr>
</tbody>
</table>

## List Organizations

GET Request: `https://api.autoznetwork.com/v1/organizations`

<code-group>

```bash [CURL]
AUTOZNETWORK_TOKEN="your API token"

curl https://api.autoznetwork.com/v1/organizations \
  -H "Authorization: Bearer $AUTOZNETWORK_TOKEN" \
  -H 'Accept: application/json'
```

```php [PHP]
<?php 
$apiToken = 'ABCD12345 ...';

$autoZnetwork = new AutozNetwork($apiToken);

$organizations = $autoznetwork
                  ->organizations()
                  ->get();

print($organizations)
```

</code-group>

## Get an Organization

This will return an individual organization.

GET Request: `https://api.autoznetwork.com/v1/organizations/{ORGANIZATION_ID}`

<code-group>

```bash [CURL]
AUTOZNETWORK_TOKEN="your API token"
AUTOZNETWORK_ORG_ID="your organization id"

curl -X GET https://api.autoznetwork.com/v1/organizations/$AUTOZNETWORK_ORG_ID \
  -H "Authorization: Bearer $AUTOZNETWORK_TOKEN" \
  -H 'Accept: application/json'
```

</code-group>

## Update an Organization

**You must be the owner of the organization in order to send this request.

PATCH Request: `https://api.autoznetwork.com/v1/organizations/{ORGANIZATION_ID}`

<code-group>

```bash [CURL]
AUTOZNETWORK_TOKEN="your API token"
AUTOZNETWORK_ORG_ID="your organization id"

curl -X PUT https://api.autoznetwork.com/v1/organizations/$AUTOZNETWORK_ORG_ID \
  -H "Authorization: Bearer $AUTOZNETWORK_TOKEN" \
    -H 'Accept: application/json' \
    -H 'Content-Type: application/json' \
    -d '{
      "name": "your NEW organization name",
    }'
```

</code-group>

## Delete an Organization

**You must be the owner of the organization in order to send this request.

DELETE Request: `https://api.autoznetwork.com/v1/organizations/{ORGANIZATION_ID}`

<code-group>

```bash [CURL]
AUTOZNETWORK_TOKEN="your API token"
AUTOZNETWORK_ORG_ID="your organization id"

curl -X DELETE https://api.autoznetwork.com/v1/organizations/$AUTOZNETWORK_ORG_ID \
  -H "Authorization: Bearer $AUTOZNETWORK_TOKEN" \
  -H 'Accept: application/json'
```

</code-group>

## Sitemap

See the full [sitemap](https://autoznetwork.com/sitemap.md) for all pages.
