---
title: "creationRequestForJob(destination:resource:)"
framework: photos
role: symbol
role_heading: Type Method
path: "photos/phassetresourceuploadjobchangerequest/creationrequestforjob(destination:resource:)"
---

# creationRequestForJob(destination:resource:)

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

## Declaration

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

## Return Value

Return Value A change request for the created job.

## Discussion

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 the photo library performChanges request will fail with a PHPhotosErrorLimitExceeded 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. Parameter: destination: the destination NSURLRequest to which this asset resource will be sent. resource: the asset resource to be uploaded.

## See Also

### Creating jobs

- [creationRequestForDownloadJob(resource:)](photos/phassetresourceuploadjobchangerequest/creationrequestfordownloadjob(resource:).md)
