<!--
{
  "availability" : [
    "iOS: 26.4.0 -",
    "iPadOS: 26.4.0 -",
    "macCatalyst: 26.4.0 -",
    "macOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "PhotoKit",
  "identifier" : "/documentation/Photos/PHAssetResourceUploadJobChangeRequest/creationRequestForJob(destination:resource:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Photos"
    ],
    "preciseIdentifier" : "c:objc(cs)PHAssetResourceUploadJobChangeRequest(cm)creationRequestForJobWithDestination:resource:"
  },
  "title" : "creationRequestForJob(destination:resource:)"
}
-->

# creationRequestForJob(destination:resource:)

Creates an asset resource upload job and returns the change request.

```
class func creationRequestForJob(destination: URLRequest, resource: PHAssetResource) -> Self
```

## Parameters

`destination`

the destination <doc://com.apple.documentation/documentation/Foundation/NSURLRequest> to which this asset resource will be sent.

`resource`

the asset resource to be uploaded.

## Return Value

A change request for the created job.

## Discussion

This method creates an upload job and returns a change request that can be used to access the placeholder
for the created job. Use the placeholder to obtain the local identifier before the change block completes.

If the number of jobs exceeds [`jobLimit`](/documentation/Photos/PHAssetResourceUploadJob/jobLimit) the photo library [`performChanges(_:completionHandler:)`](/documentation/Photos/PHPhotoLibrary/performChanges(_:completionHandler:)) request will fail with a [`PHPhotosError.Code.limitExceeded`](/documentation/Photos/PHPhotosError-swift.struct/Code/limitExceeded) error.
To generate jobs after this limit is triggered, you must acknowledge succeeded/failed jobs, and wait for the registered/pending ones to finish uploading, which will make those jobs also succeeded/failed.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)