Returns a list of location objects in the network.
Success
{- "_object": "/api/response",
- "version": 2,
- "data": {
- "_object": "/api/collections/paginated",
- "next": null,
- "total_count": 11,
- "data": [
- {
- "_object": "/network/location",
- "id": "abdef123",
- "metadata": { },
- "name": "Wayne Enterprises",
- "address": {
- "_object": "/address",
- "street_address": "1641 Gotham Lane",
- "street_address2": "STE 2918",
- "city": "Albany",
- "state": "MN",
- "country": "United States of America",
- "country_code": "US",
- "zip": "56307",
- "unlocode": "USAL2",
- "timezone": "America/Los_Angeles",
- "ref": "wayne_enterprises_ref"
}, - "editable": true,
- "contacts": {
- "_object": "/api/refs/collection",
- "ref_type": "/network/contacts",
}, - "company": {
- "_object": "/api/refs/object",
- "ref_type": "/network/company",
- "id": "abc123"
}
}
]
}
}
The created location
error
{- "name": "Zoomit",
- "company_id": "xyz_123_ABC",
- "address": {
- "street_address": "1641 Settlers Lane",
- "street_address2": "STE 2918",
- "city": "Albany",
- "state": "MN",
- "country_code": "US",
- "zip": "56307",
- "unlocode": "USAL2"
}, - "contact_ids": [
- "asdlkfaiowejfa",
- "398qehfiaiurh",
- "yfhvalnertughv"
], - "ref": "zoomit-management-co",
- "metadata": {
- "color": [
- "blue",
- "green"
]
}
}
Success
{- "_object": "/api/response",
- "version": 2,
- "data": {
- "_object": "/network/location",
- "id": "abdef123",
- "metadata": { },
- "name": "Zoomit",
- "address": {
- "_object": "/address",
- "street_address": "1641 Settlers Lane",
- "street_address2": "STE 2918",
- "city": "Los Angeles",
- "state": "CA",
- "country": "United States of America",
- "country_code": "US",
- "zip": "56307",
- "unlocode": "USLAX",
- "timezone": "America/Los_Angeles",
- "ref": "zoomit-management-co"
}, - "editable": true,
- "contacts": {
- "_object": "/api/refs/collection",
- "ref_type": "/network/contacts",
}, - "company": {
- "_object": "/api/refs/object",
- "ref_type": "/network/company",
- "id": "xyz_13_zbc"
}
}
}
Retrieves the details of a single location
Success
_object | string | ||||||||||||||||||
self | string | ||||||||||||||||||
version | integer | ||||||||||||||||||
object (Location) | |||||||||||||||||||
|
error
{- "_object": "/api/response",
- "version": 2,
- "data": {
- "_object": "/network/location",
- "id": "abdef123",
- "metadata": { },
- "name": "Wayne Enterprises",
- "address": {
- "_object": "/address",
- "street_address": "1641 Gotham Lane",
- "street_address2": "STE 2918",
- "city": "Albany",
- "state": "MN",
- "country": "United States of America",
- "country_code": "US",
- "zip": "56307",
- "unlocode": "USAL2",
- "timezone": "America/Los_Angeles",
- "ref": "wayne_enterprises_ref"
}, - "editable": true,
- "contacts": {
- "_object": "/api/refs/collection",
- "ref_type": "/network/contacts",
}, - "company": {
- "_object": "/api/refs/object",
- "ref_type": "/network/company",
- "id": "abc123"
}
}
}
name | string New name of the location |
object (AddressForRequestBody) | |
contact_ids | Array of strings If a value for contact_ids is specified, the array specified will replace all the existing contacts at the location |
ref | string The new ref for the location |
metadata | object Metadata to replace existing metadata. Keys must be strings and values should be arrays. |
Success
_object | string | ||||||||||||||||||
self | string | ||||||||||||||||||
version | integer | ||||||||||||||||||
object (Location) | |||||||||||||||||||
|
error
{- "name": "Zoomit V2",
- "address": {
- "street_address": "1641 Settlers Lane",
- "street_address2": "STE 2918",
- "city": "Albany",
- "state": "MN",
- "country_code": "US",
- "zip": "56307",
- "unlocode": "USAL2"
}, - "contact_ids": [
- "asdlkfaiowejfa",
- "398qehfiaiurh",
- "yfhvalnertughv"
], - "ref": "zoomit-management-co",
- "metadata": {
- "color": [
- "blue",
- "green"
]
}
}
Success
{- "_object": "/api/response",
- "version": 2,
- "data": {
- "_object": "/network/location",
- "id": "abdef123",
- "metadata": { },
- "name": "Zoomit V2",
- "address": {
- "_object": "/address",
- "street_address": "2 World Way",
- "street_address2": null,
- "city": "Los Angeles",
- "state": "CA",
- "country": "United States of America",
- "country_code": "US",
- "zip": "90045",
- "unlocode": "USLAX",
- "timezone": "America/Los_Angeles",
- "ref": "zoomit-management-co"
}, - "editable": true,
- "contacts": {
- "_object": "/api/refs/collection",
- "ref_type": "/network/contacts",
}, - "company": {
- "_object": "/api/refs/object",
- "ref_type": "/network/company",
- "id": "xyz_13_zbc"
}
}
}