---
updatedAt: 2026-05-28T21:10:45.000Z
agentTools:
  projectIndex: https://docs.hivestack.com/llms.txt
---

# Create a network

Creates a network associated to your organization

# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "title": "Inventory",
    "version": "2",
    "description": "Inventory",
    "contact": {
      "email": "support@perion.com"
    }
  },
  "servers": [
    {
      "url": "https://apps.hivestack.com/api/v2"
    }
  ],
  "security": [
    {
      "APIKeyHeader": []
    },
    {
      "APIKeyQuery": []
    }
  ],
  "tags": [
    {
      "name": "Networks",
      "description": ""
    }
  ],
  "paths": {
    "/networks": {
      "post": {
        "tags": [
          "Networks"
        ],
        "summary": "Create a network",
        "description": "Creates a network associated to your organization",
        "operationId": "postNetwork",
        "requestBody": {
          "description": "A payload containing required network fields",
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/network"
                  },
                  {
                    "required": [
                      "name",
                      "code"
                    ]
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/SuccessNetwork"
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "APIKeyHeader": {
        "type": "apiKey",
        "name": "hs-auth",
        "in": "header",
        "description": "The value should follow the following format: `apikey access_key:secret_key`"
      },
      "APIKeyQuery": {
        "type": "apiKey",
        "name": "apikey",
        "in": "query",
        "description": "The value should follow the following format: `access_key:secret_key`"
      }
    },
    "schemas": {
      "network": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "description": "A code that uniquely represents the network within the organization",
            "example": "NETWORK_CODE"
          },
          "created_on_utc": {
            "type": "string",
            "readOnly": true,
            "format": "date-time"
          },
          "modified_on_utc": {
            "type": "string",
            "readOnly": true,
            "format": "date-time"
          },
          "name": {
            "type": "string",
            "description": "The name of the network",
            "example": "Network Name"
          },
          "network_id": {
            "type": "integer",
            "readOnly": true,
            "example": 1
          },
          "owner_id": {
            "type": "integer",
            "readOnly": true,
            "description": "The ID of the organization that owns the network",
            "example": 14
          },
          "loop_length": {
            "type": "integer",
            "description": "The total duration of the content loop on the Digital Out-of-Home (DOOH) inventory for a specific network",
            "example": 60
          },
          "spot_length": {
            "type": "integer",
            "description": "The default duration of an individual advertisement on the network",
            "example": 10
          }
        }
      }
    },
    "responses": {
      "SuccessNetwork": {
        "description": "OK - an object representing a network",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/network"
            }
          }
        }
      }
    }
  }
}
```