POST/projects/api/v3/companies/:id/domains.json

Create a new company domains.

Creates a new company domain attached to company that id is passed as param.

Body Params

BulkRequest contains information of a company domains to be created.

    • Name
      companyDomains
      Type
      array
      Description
      Domain contains all the information returned from a domain.

    Responses

    • Code
      201
      Type
      object
      Schema
      Description
      201 Created
      BulkResponse contains information about a group of domains.
    • Code
      400
      Type
      object
      Schema
      Description
      400 Bad Request
      ErrorResponse defines how []Error should be marshaled to JSON.
    • Code
      403
      Type
      object
      Schema
      Description
      403 Forbidden
      ErrorResponse defines how []Error should be marshaled to JSON.

    Examples

    201 Created

    BulkResponse
    {
      "domains": [
        {
          "companyId": 0,
          "createdAt": "string",
          "createdByUser": 0,
          "deletedAt": "string",
          "deletedByUser": 0,
          "domain": "string",
          "id": 0,
          "state": "string",
          "updatedAt": "string",
          "updatedByUser": 0
        }
      ],
      "meta": {
        "averageSpend": 0,
        "limit": 0,
        "nextCursor": "string",
        "page": {
          "count": 0,
          "hasMore": true,
          "pageOffset": 0,
          "pageSize": 0
        },
        "prevCursor": "string",
        "totalCapacity": 0
      }
    }