Organizations
Properties
Property | Type | Description |
---|---|---|
id | Integer | The ID of the Organization. |
name | String | Friendly name for the Organization. |
phone_number | String | Associated phone number. |
social | Array | An array of social media URLs. |
social.facebook | String | URL of Organization's Facebook Page. |
social.twitter | String | URL of Organization's Twitter Page. |
social.instagram | String | URL of Organization's Instagram Page. |
social.youtube | String | URL of Organization's YouTube Page. |
social.tiktok | String | URL of Organization's TikTok Page. |
social.pinterest | String | URL of Organization's Pinterest Page. |
created_at | DateTime | DateTime the Organization was created in autoZnetwork's system. |
updated_at | DateTime | DateTime the Organization was last updated in autoZnetwork's system. |
Relationships
Relationship | Description |
---|---|
Locations | The Locations contained within the Organization. |
Location Groups | The Location Groups contained within the Organization. |
List Organizations
GET Request: https://api.autoznetwork.com/v1/organizations
CURL
AUTOZNETWORK_TOKEN="your API token"
curl https://api.autoznetwork.com/v1/organizations \
-H "Authorization: Bearer $AUTOZNETWORK_TOKEN" \
-H 'Accept: application/json'
Get an Organization
This will return an individual organization.
GET Request: https://api.autoznetwork.com/v1/organizations/{ORGANIZATION_ID}
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'
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}
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",
}'
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}
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'