Skip to main content

Create a bulk agent deployment plan

POST /api/v1/agent-deployments

Idempotent caller UUID binds the exact plan, creator and tenant. Approves managed settings, fleet group, device capacity and expiry within seven days. Provider names describe intended distribution; this does not publish packages or assign provider devices. Intune, ConfigMgr and Group Policy currently select Windows; Jamf selects macOS. Repeated creation cannot modify a plan.

Allowed roles: admin.

Authentication​

The following OpenAPI alternatives describe accepted authentication. Browser mutations also require the canonical Origin header.

[
{
"organizationCredential": []
},
{
"browserSession": []
}
]

Parameters​

[]

Request body​

{
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"provider": {
"type": "string",
"enum": [
"intune",
"jamf",
"ansible",
"configmgr",
"group-policy"
]
},
"platform": {
"type": "string",
"enum": [
"windows",
"linux",
"macos"
]
},
"architecture": {
"type": "string",
"enum": [
"x86_64",
"arm64"
]
},
"capabilities": {
"minItems": 1,
"maxItems": 10,
"type": "array",
"items": {
"type": "string",
"enum": [
"tls",
"quic",
"ssh",
"code",
"capture",
"aws-kms",
"gcp-kms",
"azure-keyvault",
"runtime",
"windows-certificates"
]
}
},
"relay": {
"type": "object",
"properties": {
"relays": {
"minItems": 1,
"maxItems": 2,
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"expectedRevision": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740990
}
},
"required": [
"id",
"expectedRevision"
],
"additionalProperties": false
}
},
"directFallback": {
"type": "string",
"enum": [
"disabled",
"when-unavailable"
]
}
},
"required": [
"relays",
"directFallback"
],
"additionalProperties": false
},
"settings": {
"type": "object",
"properties": {
"sshHostKeyProfile": {
"type": "string",
"enum": [
"baseline",
"host-keys-v1",
"host-keys-v2"
]
},
"enabled": {
"type": "boolean"
},
"pollSeconds": {
"type": "integer",
"minimum": 5,
"maximum": 120
},
"allowedQuicTargets": {
"maxItems": 256,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 300,
"pattern": "^[A-Za-z0-9.[\\]:-]+$"
}
},
"allowedTargets": {
"maxItems": 256,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 300,
"pattern": "^[A-Za-z0-9.[\\]:-]+$"
}
},
"allowedSshTargets": {
"maxItems": 256,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 300,
"pattern": "^[A-Za-z0-9.[\\]:-]+$"
}
},
"repositoryRoots": {
"maxItems": 256,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 4096
}
},
"captureRoots": {
"maxItems": 256,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 4096
}
},
"allowedAwsKmsKeys": {
"maxItems": 200,
"type": "array",
"items": {
"type": "string",
"maxLength": 300,
"pattern": "^arn:(aws|aws-us-gov|aws-cn):kms:([a-z]{2}(?:-[a-z]+){1,3}-[0-9]+):[0-9]{12}:key\\/(?:[a-f0-9]{8}-(?:[a-f0-9]{4}-){3}[a-f0-9]{12}|mrk-[a-f0-9]{32})$"
}
},
"allowedGcpKmsVersions": {
"maxItems": 200,
"type": "array",
"items": {
"type": "string",
"maxLength": 300,
"pattern": "^projects\\/([a-z][a-z0-9-]{4,28}[a-z0-9]|[1-9][0-9]{0,19})\\/locations\\/[a-z][a-z0-9-]{0,62}\\/keyRings\\/[A-Za-z0-9_-]{1,63}\\/cryptoKeys\\/[A-Za-z0-9_-]{1,63}\\/cryptoKeyVersions\\/[1-9][0-9]{0,19}$"
}
},
"allowedAzureKeyVersions": {
"maxItems": 200,
"type": "array",
"items": {
"type": "string",
"maxLength": 300,
"pattern": "^https:\\/\\/([a-z][a-z0-9-]{1,22}[a-z0-9])\\.vault\\.azure\\.net\\/keys\\/[A-Za-z0-9-]{1,127}\\/[a-f0-9]{32}$"
}
},
"allowedRuntimeProcesses": {
"maxItems": 200,
"type": "array",
"items": {
"type": "string",
"maxLength": 100,
"pattern": "^[1-9][0-9]{0,6}:[0-9]{1,20}:[a-f0-9]{64}$"
}
},
"allowedWindowsCertificateStores": {
"maxItems": 12,
"type": "array",
"items": {
"type": "string",
"pattern": "^(?:CurrentUser|LocalMachine)\\/(?:MY|ROOT|CA|TrustedPeople|TrustedPublisher|Disallowed)$"
}
}
},
"required": [
"enabled",
"pollSeconds",
"allowedTargets",
"allowedSshTargets",
"repositoryRoots"
],
"additionalProperties": false
},
"group": {
"type": "string",
"minLength": 1,
"maxLength": 64,
"pattern": "^(?:[a-z0-9][a-z0-9._/-]*)?$"
},
"maxDevices": {
"type": "integer",
"minimum": 1,
"maximum": 100000
},
"expiresAt": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
}
},
"required": [
"id",
"name",
"provider",
"platform",
"architecture",
"capabilities",
"settings",
"maxDevices",
"expiresAt"
],
"additionalProperties": false
}
}
}
}

Responses​

{
"201": {
"description": "Success",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
},
"400": {
"description": "Validation error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"401": {
"description": "Missing/expired/revoked credential",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"403": {
"description": "Insufficient role",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"404": {
"description": "Not found",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"409": {
"description": "State or idempotency conflict",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"413": {
"description": "Body too large",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"415": {
"description": "Unsupported media type",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"429": {
"description": "Request budget exhausted; respect Retry-After",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
},
"headers": {
"Retry-After": {
"schema": {
"type": "integer",
"minimum": 1
},
"description": "Seconds until sufficient budget is expected; concurrent traffic may consume replenished capacity."
}
}
},
"500": {
"description": "Internal error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"503": {
"description": "Not configured",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
}

References such as #/components/schemas/Asset resolve in shared schemas. Download the OpenAPI contract for client generation. This page is generated; it describes the implemented development API, not planned endpoints.