---
title: "SMJobSubmit(_:_:_:_:)"
framework: Service Management
role: symbol
role_heading: Function
platforms: [iOS 3.0+, iPadOS 3.0+, Mac Catalyst 13.1+, macOS 10.6+]
path: "servicemanagement/smjobsubmit(_:_:_:_:)"
---

# SMJobSubmit(_:_:_:_:)

Submits the specified job to the specified domain.

## Declaration

```swift
func SMJobSubmit(_ domain: CFString!, _ job: CFDictionary, _ auth: UnsafeMutableRawPointer!, _ outError: UnsafeMutablePointer<Unmanaged<CFError>?>!) -> Bool
```

```swift
func SMJobSubmit(_ domain: CFString!, _ job: CFDictionary, _ auth: AuthorizationRef!, _ outError: UnsafeMutablePointer<Unmanaged<CFError>?>!) -> Bool
```

## Parameters

- `domain`: The job’s domain (for example, doc://com.apple.servicemanagement/documentation/ServiceManagement/kSMDomainSystemLaunchd).
- `job`: A dictionary describing a job.
- `auth`: An AuthorizationRef containing the doc://com.apple.servicemanagement/documentation/ServiceManagement/kSMRightModifySystemDaemons right if the specified domain is doc://com.apple.servicemanagement/documentation/ServiceManagement/kSMDomainSystemLaunchd.
- `outError`: An output reference to a CFErrorRef describing the specific error when submitting the job, or NULL if no error occurred. It’s the responsibility of the app to release the error reference. This argument can be NULL.

## Return Value

Return Value Returns true if the system successfully submits the job, otherwise false.

## See Also

### Deprecated Functions

- [SMCopyAllJobDictionaries(_:)](servicemanagement/smcopyalljobdictionaries(_:).md)
- [SMJobCopyDictionary(_:_:)](servicemanagement/smjobcopydictionary(_:_:).md)
- [SMJobRemove(_:_:_:_:_:)](servicemanagement/smjobremove(_:_:_:_:_:).md)
