uploadToConnector
Upload a file through a connector for future processing. Returns a requestId that can be used to track the upload status.
Examples
mutation UploadToConnector($connectorId: String!, $mode: ConnectorUploadMode!, $file: Upload!) {
uploadToConnector(connectorId: $connectorId, mode: $mode, file: $file) {
requestId
success
message
}
}Variables
This is an example input showing all available input fields. Only fields marked as required in the schema are mandatory.
{
"connectorId": "2",
"mode": "keep",
"file": "example"
}curl -X POST \
https://api.cloud.ox.security/api/apollo-gateway \
-H 'Content-Type: application/json' \
-H 'Authorization: YOUR_API_TOKEN' \
-d '{
"query": "mutation UploadToConnector($connectorId: String!, $mode: ConnectorUploadMode!, $file: Upload!) { uploadToConnector(connectorId: $connectorId, mode: $mode, file: $file) { requestId success message } }",
"variables": {
"connectorId": "2",
"mode": "keep",
"file": "example"
}
}'Arguments
You can use the following argument(s) to customize your uploadToConnector mutation.
connectorId String! required
Id of the connector to upload the file through
mode ConnectorUploadMode! required
Whether to keep or cleanup connector upload artifacts after processing
file Upload! required
Fields
Return type: UploadFileResponse!
You can use the following field(s) to specify what information your uploadToConnector mutation will return. Please note that some fields may have their own subfields.
requestId String!
Unique identifier for tracking the upload request
success Boolean!
Indicates whether the file upload was successful
message String
Human-readable error message when success is false (e.g. duplicate or oversized upload)
Last updated