Avetta · Schema

3.29.14_CreateCompanyAndCompanyRelationshipResource

CompanySupply ChainRisk ManagementComplianceContractor ManagementSafetyESGSupplier Management

Properties

Name Type Description
relationshipType string
newCompany object
View JSON Schema on GitHub

JSON Schema

avetta-3-29-14-create-company-and-company-relationship-resource-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/avetta/json-schema/avetta-3-29-14-create-company-and-company-relationship-resource-schema.json",
  "title": "3.29.14_CreateCompanyAndCompanyRelationshipResource",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/avetta-pegasusscope-scope-company-relationship-controller-api-openapi.yml#/components/schemas/3.29.14_CreateCompanyAndCompanyRelationshipResource",
  "required": [
    "newCompany",
    "relationshipType"
  ],
  "type": "object",
  "properties": {
    "relationshipType": {
      "type": "string",
      "enum": [
        "PRIMARY",
        "SUB_CONTRACTOR"
      ]
    },
    "newCompany": {
      "$ref": "#/$defs/3.29.14_CompanyRegistrationResource"
    }
  },
  "$defs": {
    "3.29.14_AddressResource": {
      "required": [
        "country"
      ],
      "type": "object",
      "properties": {
        "id": {
          "type": "integer",
          "format": "int32"
        },
        "address": {
          "maxLength": 200,
          "minLength": 0,
          "type": "string"
        },
        "town": {
          "maxLength": 50,
          "minLength": 0,
          "type": "string"
        },
        "state": {
          "maxLength": 50,
          "minLength": 0,
          "type": "string"
        },
        "postcode": {
          "maxLength": 15,
          "minLength": 0,
          "type": "string"
        },
        "country": {
          "maxLength": 2,
          "minLength": 0,
          "type": "string"
        }
      }
    },
    "3.29.14_CompanyRegistrationResource": {
      "required": [
        "contactEmail",
        "contactFirstName",
        "contactLastName",
        "countryId",
        "name"
      ],
      "type": "object",
      "properties": {
        "id": {
          "type": "integer",
          "format": "int32"
        },
        "name": {
          "maxLength": 185,
          "minLength": 0,
          "type": "string"
        },
        "address": {
          "$ref": "#/$defs/3.29.14_AddressResource"
        },
        "deliveryAddress": {
          "$ref": "#/$defs/3.29.14_DeliveryAddressResource"
        },
        "phone": {
          "maxLength": 20,
          "minLength": 0,
          "type": "string"
        },
        "mobilePhone": {
          "maxLength": 20,
          "minLength": 0,
          "type": "string"
        },
        "fax": {
          "maxLength": 20,
          "minLength": 0,
          "type": "string"
        },
        "contactFirstName": {
          "maxLength": 30,
          "minLength": 0,
          "type": "string"
        },
        "contactLastName": {
          "maxLength": 30,
          "minLength": 0,
          "type": "string"
        },
        "contactEmail": {
          "maxLength": 80,
          "minLength": 0,
          "type": "string"
        },
        "countryId": {
          "maxLength": 2,
          "minLength": 0,
          "type": "string"
        },
        "locale": {
          "type": "string"
        },
        "extSysKey": {
          "type": "string"
        },
        "idKey": {
          "type": "string"
        },
        "connectStatus": {
          "type": "string",
          "enum": [
            "ACTIVE",
            "INACTIVE",
            "REJECTED",
            "PENDING"
          ]
        },
        "abn": {
          "maxLength": 14,
          "minLength": 0,
          "type": "string"
        },
        "businessNo": {
          "maxLength": 20,
          "minLength": 0,
          "type": "string"
        },
        "webAddress": {
          "maxLength": 64,
          "minLength": 0,
          "type": "string"
        },
        "createdBy": {
          "maxLength": 60,
          "minLength": 0,
          "type": "string"
        },
        "integrationSource": {
          "type": "string"
        },
        "state": {
          "type": "string"
        },
        "town": {
          "type": "string"
        },
        "postCode": {
          "type": "string"
        },
        "deliveryTown": {
          "type": "string"
        },
        "deliveryState": {
          "type": "string"
        },
        "deliveryPostCode": {
          "type": "string"
        },
        "streetAddress": {
          "type": "string"
        },
        "deliveryStreetAddress": {
          "type": "string"
        }
      }
    },
    "3.29.14_DeliveryAddressResource": {
      "required": [
        "country"
      ],
      "type": "object",
      "properties": {
        "id": {
          "type": "integer",
          "format": "int32"
        },
        "address": {
          "maxLength": 200,
          "minLength": 0,
          "type": "string"
        },
        "town": {
          "maxLength": 50,
          "minLength": 0,
          "type": "string"
        },
        "state": {
          "maxLength": 50,
          "minLength": 0,
          "type": "string"
        },
        "postcode": {
          "maxLength": 15,
          "minLength": 0,
          "type": "string"
        },
        "country": {
          "maxLength": 2,
          "minLength": 0,
          "type": "string"
        }
      }
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/avetta-3-29-14-create-company-and-company-relationship-resource"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.