Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

NetBox Labs tenancy API

The tenancy API from NetBox Labs — 12 operation(s) for tenancy.

NetBox Labs tenancy API is one of 13 APIs that NetBox Labs publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include tenancy. The published artifact set on APIs.io includes an OpenAPI specification and authentication docs.

This API exposes 54 operations across 12 paths, and defines 53 schemas. It is described by OpenAPI 3.0.3, at version 4.6.5 (4.6).

Requests are made against the base URL https://demo.netbox.dev/api/.

54 operations 12 paths 53 schemas 12 DELETE12 GET12 PATCH6 POST12 PUT

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.0.3
API Version
4.6.5 (4.6)
Base URL
https://demo.netbox.dev/api/
Authentication
API Key, API Key
License
Apache v2 License
Resource Areas
1

Authentication & Security 2

NetBox Labs tenancy API declares 2 security schemes for authenticating requests. An API key is passed in the cookie as sessionid (cookieAuth). An API key is passed in the header as Authorization (tokenAuth).

  • tokenAuth — Token (v1) or Bearer . (v2)

Paths & Operations 54

Across 12 paths, the API surfaces 54 operations — 12 DELETE, 12 GET, 12 PATCH, 6 POST, 12 PUT. Each is listed below with its method, path, parameters, and response codes.

tenancy 54
GET
/api/tenancy/contact-assignments/
Get a list of contact assignment objects.
tenancy_contact_assignments_list 70 params → 200
POST
/api/tenancy/contact-assignments/
Post a list of contact assignment objects.
tenancy_contact_assignments_create body → 201
PUT
/api/tenancy/contact-assignments/
Put a list of contact assignment objects.
tenancy_contact_assignments_bulk_update body → 200
PATCH
/api/tenancy/contact-assignments/
Patch a list of contact assignment objects.
tenancy_contact_assignments_bulk_partial_update body → 200
DELETE
/api/tenancy/contact-assignments/
Delete a list of contact assignment objects.
tenancy_contact_assignments_bulk_destroy body → 204
GET
/api/tenancy/contact-assignments/{id}/
Get a contact assignment object.
tenancy_contact_assignments_retrieve 4 params → 200
PUT
/api/tenancy/contact-assignments/{id}/
Put a contact assignment object.
tenancy_contact_assignments_update 1 param body → 200
PATCH
/api/tenancy/contact-assignments/{id}/
Patch a contact assignment object.
tenancy_contact_assignments_partial_update 1 param body → 200
DELETE
/api/tenancy/contact-assignments/{id}/
Delete a contact assignment object.
tenancy_contact_assignments_destroy 1 param → 204
GET
/api/tenancy/contact-groups/
Get a list of contact group objects.
tenancy_contact_groups_list 93 params → 200
POST
/api/tenancy/contact-groups/
Post a list of contact group objects.
tenancy_contact_groups_create body → 201
PUT
/api/tenancy/contact-groups/
Put a list of contact group objects.
tenancy_contact_groups_bulk_update body → 200
PATCH
/api/tenancy/contact-groups/
Patch a list of contact group objects.
tenancy_contact_groups_bulk_partial_update body → 200
DELETE
/api/tenancy/contact-groups/
Delete a list of contact group objects.
tenancy_contact_groups_bulk_destroy body → 204
GET
/api/tenancy/contact-groups/{id}/
Get a contact group object.
tenancy_contact_groups_retrieve 4 params → 200
PUT
/api/tenancy/contact-groups/{id}/
Put a contact group object.
tenancy_contact_groups_update 1 param body → 200
PATCH
/api/tenancy/contact-groups/{id}/
Patch a contact group object.
tenancy_contact_groups_partial_update 1 param body → 200
DELETE
/api/tenancy/contact-groups/{id}/
Delete a contact group object.
tenancy_contact_groups_destroy 1 param → 204
GET
/api/tenancy/contact-roles/
Get a list of contact role objects.
tenancy_contact_roles_list 83 params → 200
POST
/api/tenancy/contact-roles/
Post a list of contact role objects.
tenancy_contact_roles_create body → 201
PUT
/api/tenancy/contact-roles/
Put a list of contact role objects.
tenancy_contact_roles_bulk_update body → 200
PATCH
/api/tenancy/contact-roles/
Patch a list of contact role objects.
tenancy_contact_roles_bulk_partial_update body → 200
DELETE
/api/tenancy/contact-roles/
Delete a list of contact role objects.
tenancy_contact_roles_bulk_destroy body → 204
GET
/api/tenancy/contact-roles/{id}/
Get a contact role object.
tenancy_contact_roles_retrieve 4 params → 200
PUT
/api/tenancy/contact-roles/{id}/
Put a contact role object.
tenancy_contact_roles_update 1 param body → 200
PATCH
/api/tenancy/contact-roles/{id}/
Patch a contact role object.
tenancy_contact_roles_partial_update 1 param body → 200
DELETE
/api/tenancy/contact-roles/{id}/
Delete a contact role object.
tenancy_contact_roles_destroy 1 param → 204
GET
/api/tenancy/contacts/
Get a list of contact objects.
tenancy_contacts_list 139 params → 200
POST
/api/tenancy/contacts/
Post a list of contact objects.
tenancy_contacts_create body → 201
PUT
/api/tenancy/contacts/
Put a list of contact objects.
tenancy_contacts_bulk_update body → 200
PATCH
/api/tenancy/contacts/
Patch a list of contact objects.
tenancy_contacts_bulk_partial_update body → 200
DELETE
/api/tenancy/contacts/
Delete a list of contact objects.
tenancy_contacts_bulk_destroy body → 204
GET
/api/tenancy/contacts/{id}/
Get a contact object.
tenancy_contacts_retrieve 4 params → 200
PUT
/api/tenancy/contacts/{id}/
Put a contact object.
tenancy_contacts_update 1 param body → 200
PATCH
/api/tenancy/contacts/{id}/
Patch a contact object.
tenancy_contacts_partial_update 1 param body → 200
DELETE
/api/tenancy/contacts/{id}/
Delete a contact object.
tenancy_contacts_destroy 1 param → 204
GET
/api/tenancy/tenant-groups/
Get a list of tenant group objects.
tenancy_tenant_groups_list 91 params → 200
POST
/api/tenancy/tenant-groups/
Post a list of tenant group objects.
tenancy_tenant_groups_create body → 201
PUT
/api/tenancy/tenant-groups/
Put a list of tenant group objects.
tenancy_tenant_groups_bulk_update body → 200
PATCH
/api/tenancy/tenant-groups/
Patch a list of tenant group objects.
tenancy_tenant_groups_bulk_partial_update body → 200
DELETE
/api/tenancy/tenant-groups/
Delete a list of tenant group objects.
tenancy_tenant_groups_bulk_destroy body → 204
GET
/api/tenancy/tenant-groups/{id}/
Get a tenant group object.
tenancy_tenant_groups_retrieve 4 params → 200
PUT
/api/tenancy/tenant-groups/{id}/
Put a tenant group object.
tenancy_tenant_groups_update 1 param body → 200
PATCH
/api/tenancy/tenant-groups/{id}/
Patch a tenant group object.
tenancy_tenant_groups_partial_update 1 param body → 200
DELETE
/api/tenancy/tenant-groups/{id}/
Delete a tenant group object.
tenancy_tenant_groups_destroy 1 param → 204
GET
/api/tenancy/tenants/
Get a list of tenant objects.
tenancy_tenants_list 93 params → 200
POST
/api/tenancy/tenants/
Post a list of tenant objects.
tenancy_tenants_create body → 201
PUT
/api/tenancy/tenants/
Put a list of tenant objects.
tenancy_tenants_bulk_update body → 200
PATCH
/api/tenancy/tenants/
Patch a list of tenant objects.
tenancy_tenants_bulk_partial_update body → 200
DELETE
/api/tenancy/tenants/
Delete a list of tenant objects.
tenancy_tenants_bulk_destroy body → 204
GET
/api/tenancy/tenants/{id}/
Get a tenant object.
tenancy_tenants_retrieve 4 params → 200
PUT
/api/tenancy/tenants/{id}/
Put a tenant object.
tenancy_tenants_update 1 param body → 200
PATCH
/api/tenancy/tenants/{id}/
Patch a tenant object.
tenancy_tenants_partial_update 1 param body → 200
DELETE
/api/tenancy/tenants/{id}/
Delete a tenant object.
tenancy_tenants_destroy 1 param → 204

Schemas 53

The contract defines 53 schemas that model the data the API accepts and returns. The most detailed are Tenant (24 properties), Contact (18 properties), TenantGroup (16 properties), ContactGroup (16 properties). Each schema is shown below with its type and property counts.

ContactAssignment
object
Adds support for custom fields and tags.
13 properties 9 required
ContactRoleRequest
object
Base serializer class for models inheriting from OrganizationalModel.
7 properties 2 required
NestedTenantGroupRequest
object
Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniqu…
2 properties 2 required
BulkContactGroupRequest
object
Base serializer class for models inheriting from NestedGroupModel.
9 properties 3 required
BriefTenantGroupRequest
object
Base serializer class for models inheriting from NestedGroupModel.
3 properties 2 required
BriefOwnerRequest
object
Extends the built-in ModelSerializer to enforce calling fullclean() on a copy of the associated instance during validation. (DRF does not do this by default; s…
2 properties 1 required
ContactAssignmentRequest
object
Adds support for custom fields and tags.
7 properties 3 required
TenantGroup
object
Base serializer class for models inheriting from NestedGroupModel.
16 properties 10 required
Contact
object
Base serializer class for models inheriting from PrimaryModel.
18 properties 7 required
BriefTenantGroup
object
Base serializer class for models inheriting from NestedGroupModel.
8 properties 7 required
PatchedWritableTenantGroupRequest
object
Base serializer class for models inheriting from NestedGroupModel.
8 properties
PatchedBulkTenantGroupRequest
object
Base serializer class for models inheriting from NestedGroupModel.
9 properties 1 required
PatchedBulkContactGroupRequest
object
Base serializer class for models inheriting from NestedGroupModel.
9 properties 1 required
BulkContactRoleRequest
object
Base serializer class for models inheriting from OrganizationalModel.
8 properties 3 required
PaginatedTenantList
object
4 properties 2 required
PaginatedTenantGroupList
object
4 properties 2 required
BriefContactRequest
object
Base serializer class for models inheriting from PrimaryModel.
2 properties 1 required
ContactRole
object
Base serializer class for models inheriting from OrganizationalModel.
13 properties 8 required
WritableContactGroupRequest
object
Base serializer class for models inheriting from NestedGroupModel.
8 properties 2 required
NestedContactGroupRequest
object
Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniqu…
2 properties 2 required
Tenant
object
Base serializer class for models inheriting from PrimaryModel.
24 properties 18 required
TenantGroupRequest
object
Base serializer class for models inheriting from NestedGroupModel.
8 properties 2 required
PatchedContactRoleRequest
object
Base serializer class for models inheriting from OrganizationalModel.
7 properties
PaginatedContactAssignmentList
object
4 properties 2 required
BriefContactRole
object
Base serializer class for models inheriting from OrganizationalModel.
6 properties 5 required
PatchedBulkContactRequest
object
Base serializer class for models inheriting from PrimaryModel.
13 properties 1 required
WritableTenantGroupRequest
object
Base serializer class for models inheriting from NestedGroupModel.
8 properties 2 required
PatchedBulkContactRoleRequest
object
Base serializer class for models inheriting from OrganizationalModel.
8 properties 1 required
WritableContactAssignmentRequest
object
Adds support for custom fields and tags.
7 properties 3 required
BulkContactAssignmentRequest
object
Adds support for custom fields and tags.
8 properties 4 required
PatchedBulkTenantRequest
object
Base serializer class for models inheriting from PrimaryModel.
9 properties 1 required
BriefContactRoleRequest
object
Base serializer class for models inheriting from OrganizationalModel.
3 properties 2 required
PatchedContactRequest
object
Base serializer class for models inheriting from PrimaryModel.
12 properties
PaginatedContactRoleList
object
4 properties 2 required
PaginatedContactGroupList
object
4 properties 2 required
NestedContactGroup
object
Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniqu…
7 properties 7 required
BulkTenantRequest
object
Base serializer class for models inheriting from PrimaryModel.
9 properties 3 required
PatchedWritableContactGroupRequest
object
Base serializer class for models inheriting from NestedGroupModel.
8 properties
ContactGroup
object
Base serializer class for models inheriting from NestedGroupModel.
16 properties 10 required
PatchedBulkContactAssignmentRequest
object
Adds support for custom fields and tags.
8 properties 1 required
NestedTenantGroup
object
Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniqu…
7 properties 7 required
PaginatedContactList
object
4 properties 2 required
PatchedWritableContactAssignmentRequest
object
Adds support for custom fields and tags.
7 properties
NestedTagRequest
object
Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniqu…
3 properties 2 required
BulkTenantGroupRequest
object
Base serializer class for models inheriting from NestedGroupModel.
9 properties 3 required
ContactGroupRequest
object
Base serializer class for models inheriting from NestedGroupModel.
8 properties 2 required
BulkContactRequest
object
Base serializer class for models inheriting from PrimaryModel.
13 properties 2 required
PatchedTenantRequest
object
Base serializer class for models inheriting from PrimaryModel.
8 properties
BriefOwner
object
Extends the built-in ModelSerializer to enforce calling fullclean() on a copy of the associated instance during validation. (DRF does not do this by default; s…
5 properties 4 required
NestedTag
object
Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniqu…
7 properties 6 required
TenantRequest
object
Base serializer class for models inheriting from PrimaryModel.
8 properties 2 required
BriefContact
object
Base serializer class for models inheriting from PrimaryModel.
5 properties 4 required
ContactRequest
object
Base serializer class for models inheriting from PrimaryModel.
12 properties 1 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

netbox-labs-tenancy-api-openapi.yml Raw ↑

Other APIs NetBox Labs publishes across the network.

NetBox Labs authentication-check API
NetBox Labs circuits API
NetBox Labs core API
NetBox Labs dcim API
NetBox Labs extras API
NetBox Labs ipam API
NetBox Labs schema API
NetBox Labs status API
NetBox Labs users API
NetBox Labs virtualization API
NetBox Labs vpn API
NetBox Labs wireless API