# Create a new software deployment

> Create a new software deployment

POST

/software-deployments/

Creates a new software deployment and returns its ID and details.

#### Helpful resources

-   [Create and manage software deployments](https://developer.rippling.com/documentation/rest-api/guides/software-deployments)

### Required Scopes

-   software-deployments.read-write
    

### Request

-   application/json

**Body**

**software_id** string required

The ID of the software to deploy.

**ma_device_group_id** string nullable

Device group ID for device-based targeting. Required if active\_group\_type is 'Device'. Must be null if 'Role'.

**group_id** string nullable

Group ID for role-based targeting. Required if active\_group\_type is 'Role'. Must be null if 'Device'.

**active_group_type** string nullable

Type of group targeting: 'Role' or 'Device'.

**Possible values:** \[Role,Device,null\]

## Responses

-   200
-   400
-   401
-   403

Successful response

-   application/json

-   Schema
-   Example (from schema)

**Schema**

**__meta** object

**redacted_fields** object\[\]

See [RedactedField](https://developer.rippling.com/documentation/rest-api/reference/schemas/redactedfield.md).

**id** string nullable required

Identifier field

**created_at** string nullable required

Record creation date

**updated_at** string nullable required

Record update date

**software_id** string nullable required

The ID of the software to deploy.

**software** object nullable

The software being deployed. Expandable to get software name, icon, and metadata.

See [SFMSoftware](https://developer.rippling.com/documentation/rest-api/reference/schemas/sfmsoftware.md).

**ma_device_group_id** string nullable

Device group ID for device-based targeting. Required if active\_group\_type is 'Device'. Must be null if 'Role'.

**group_id** string nullable

Group ID for role-based targeting. Required if active\_group\_type is 'Role'. Must be null if 'Device'.

**active_group_type** string nullable

Type of group targeting: 'Role' or 'Device'.

**Possible values:** \[Role,Device,null\]

**is_report_syncing_in_progress** boolean nullable

Whether installation report syncing is in progress. When true, deployment status may be temporarily inconsistent.

```json
{
  "__meta": {
    "...": "object"
  },
  "id": "string",
  "created_at": "string",
  "updated_at": "string",
  "software_id": "string",
  "software": {
    "...": "SFMSoftware"
  },
  "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:
    
    1.  **Format 1**
        
        A request-wide error uses \`detail\`. Field errors use the input field names as keys.
        
        **detail** string
        
        A human-readable explanation of why the request failed.
        
        **property name\*** object
        
        Field-specific details can be a message, a list of messages, or nested errors.
        
    2.  **Format 2**
        
        Validation messages or issues returned directly rather than keyed by field name.
        
        Array \[
        
        -   Matches exactly one of these formats:
            
            1.  **Format 1**
                
                A validation message without a separate path or error code.
                
                **value** string
                
                A validation message without a separate path or error code.
                
            2.  **Format 2**
                
                A validation issue that identifies the invalid input and the reason it was rejected.
                
                **loc** object\[\] required
                
                Ordered path to the invalid input, using field names and list indexes.
                
                Array \[
                
                -   Matches exactly one of these formats:
                    
                    1.  **Format 1**
                        
                        **value** string
                        
                    2.  **Format 2**
                        
                        **value** integer
                        
                
                \]
                
                **msg** string required
                
                Human-readable reason the input was rejected.
                
                **type** string required
                
                Machine-readable code for the validation failure.
                
        
        \]
        

**Format 1**

```json
{
  "name": [
    "This field is required."
  ]
}
```

**Format 2**

```json
[
  {}
]
```

Authentication is required or the supplied credentials are invalid.

-   application/json

-   Schema
-   Example (from schema)

**Schema**

**ok** boolean required

Whether the request succeeded. Always false for an authentication error.

**Possible values:** \[false\]

**error** string required

A human-readable explanation of why authentication failed.

```json
{
  "ok": false,
  "error": "Incorrect authentication credentials."
}
```

The caller is not authorized to perform this action.

-   application/json

-   Schema
-   Example (from schema)

**Schema**

**detail** string

A human-readable explanation of why the request failed.

```json
{
  "detail": "string"
}
```

Source: https://developer.rippling.com/documentation/rest-api/reference/create-software-deployments

> For the complete documentation index, see [llms.txt](https://developer.rippling.com/llms.txt). Public pages have a Markdown version at the same URL with .md added.
