Create a new software deployment
Creates a new software deployment and returns its ID and details.
Helpful resources
Required Scopes
- software-deployments.read-write
Request
- application/json
Body
The ID of the software to deploy.
Device group ID for device-based targeting. Required if active_group_type is 'Device'. Must be null if 'Role'.
Group ID for role-based targeting. Required if active_group_type is 'Role'. Must be null if 'Device'.
Type of group targeting: 'Role' or 'Device'.
Responses
- 200
- 400
- 401
- 403
Successful response
- application/json
- Schema
- Example (from schema)
Schema
Matches one or more of these formats:
- Format 1id string nullable required
Identifier field
created_at string nullable requiredRecord creation date
updated_at string nullable requiredRecord update date
name string nullableThe name of the software.
display_name string nullableCustom display name for the software.
icon_url string nullableURL for the software icon.
description string nullableDescription of the software.
category string nullableCategory of the software.
scope string nullableScope of the software (PUBLIC, CUSTOM, INTERNAL).
available_platforms string[] nullablePlatforms this software is available on (macOS, Windows, etc).
- Format 2value object nullablePossible values: [null]
- Format 1
__meta object
redacted_fields object[]
The name for the redacted field
The reason for the redaction
Identifier field
Record creation date
Record update date
The ID of the software to deploy.
software objectnullable
Device group ID for device-based targeting. Required if active_group_type is 'Device'. Must be null if 'Role'.
Group ID for role-based targeting. Required if active_group_type is 'Role'. Must be null if 'Device'.
Type of group targeting: 'Role' or 'Device'.
Whether installation report syncing is in progress. When true, deployment status may be temporarily inconsistent.
{
"__meta": {
"redacted_fields": [
{
"name": "date_of_birth",
"reason": "Insufficient entitlements"
}
]
},
"id": "string",
"created_at": "string",
"updated_at": "string",
"software_id": "string",
"software": {
"id": "string",
"created_at": "string",
"updated_at": "string",
"name": "string",
"display_name": "string",
"icon_url": "string",
"description": "string",
"category": "string",
"scope": "string",
"available_platforms": [
"string"
]
},
"ma_device_group_id": "string",
"group_id": "string",
"active_group_type": "Role",
"is_report_syncing_in_progress": false
}
The request failed validation. The response body describes the error.
- application/json
- Schema
- Example (from schema)
Schema
Matches exactly one of these formats:
- Format 1
A request-wide error uses `detail`. Field errors use the input field names as keys.
detail stringA human-readable explanation of why the request failed.
property name* objectField-specific details can be a message, a list of messages, or nested errors.
- Format 2
Validation messages or issues returned directly rather than keyed by field name.
Matches exactly one of these formats:
- Format 1
A validation message without a separate path or error code.
value stringA validation message without a separate path or error code.
- Format 2
A validation issue that identifies the invalid input and the reason it was rejected.
Matches exactly one of these formats:
- Format 1value string
- Format 2value integer
- Format 1
loc object[]required
Ordered path to the invalid input, using field names and list indexes.Array []msg string requiredHuman-readable reason the input was rejected.
type string requiredMachine-readable code for the validation failure.
- Format 1
Array []
- Format 1
{
"name": [
"This field is required."
]
}
[
{}
]
Authentication is required or the supplied credentials are invalid.
- application/json
- Schema
- Example (from schema)
Schema
Whether the request succeeded. Always false for an authentication error.
A human-readable explanation of why authentication failed.
{
"ok": false,
"error": "Incorrect authentication credentials."
}
The caller is not authorized to perform this action.
- application/json
- Schema
- Example (from schema)
Schema
A human-readable explanation of why the request failed.
{
"detail": "string"
}