Successful Response

APIs.ioEngineeringPlatform

Properties

Name Type Description
requests array Information about the requests to add elements to the Private API Network.
meta object The response's non-standard meta information.
View JSON Schema on GitHub

JSON Schema

apis-io-engineering-platform-getallpanaddelementrequests-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/getAllPanAddElementRequests",
  "title": "Successful Response",
  "type": "object",
  "properties": {
    "requests": {
      "description": "Information about the requests to add elements to the Private API Network.",
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "The request's ID.",
            "example": 2
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "The date and time at which the request was created.",
            "example": "2022-06-09T14:48:45.000Z"
          },
          "createdBy": {
            "type": "integer",
            "description": "The ID of the user who created the request.",
            "example": 12345678
          },
          "message": {
            "type": "string",
            "description": "The user's optional message included in the request.",
            "example": "Please approve this collection"
          },
          "status": {
            "type": "string",
            "description": "The request's status.",
            "enum": [
              "pending",
              "denied"
            ],
            "example": "denied"
          },
          "element": {
            "type": "object",
            "description": "Information about the requested element.",
            "properties": {
              "id": {
                "type": "string",
                "description": "The element's ID.",
                "example": "5360b75f-447e-467c-9299-12fd3c92450d"
              },
              "type": {
                "type": "string",
                "description": "The element type.",
                "enum": [
                  "api",
                  "workspace",
                  "collection"
                ],
                "example": "collection"
              },
              "name": {
                "type": "string",
                "description": "The element's name.",
                "example": "Test Collection"
              },
              "summary": {
                "type": "string",
                "nullable": true,
                "description": "If applicable, the element's short summary.",
                "example": null
              }
            }
          },
          "response": {
            "description": "Information about the response to the request. This object only returns when the network manager denied a request with a message.",
            "type": "object",
            "properties": {
              "createdAt": {
                "type": "string",
                "format": "date-time",
                "description": "The date and time at which the network manager denied the request.",
                "example": "2020-06-01T08:32:31.000Z"
              },
              "createdBy": {
                "type": "integer",
                "description": "The network manager's user ID.",
                "example": 2272
              },
              "message": {
                "type": "string",
                "description": "The network manager's request response message.",
                "example": "Too many errors, please fix and resubmit"
              }
            }
          }
        }
      }
    },
    "meta": {
      "type": "object",
      "description": "The response's non-standard meta information.",
      "properties": {
        "limit": {
          "type": "integer",
          "description": "The maximum number of items returned.",
          "example": 10
        },
        "offset": {
          "type": "integer",
          "description": "The zero-based offset of the first item returned.",
          "example": 5
        },
        "totalCount": {
          "type": "integer",
          "description": "The total count of items found.",
          "example": 100
        }
      }
    }
  }
}