Get a deployment file

Returns one file of a deployment request as it would deploy: the target version, the source version, the patch between them and the file's override.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Returns one of a deployment's files. Works for drafts.

Response fields

FieldDescription
statusWhat deploying the file does to the target: ADD, MODIFY, DELETE or UNCHANGED.
binarytrue for a binary file, which carries no text and no patch.
additions, deletionsLines added and removed by patch.
patchUnified diff from the target version to the source version. It does not include the override. Line numbers for inline comments refer to this patch.
targetThe file in the target branch: commit and text (null when absent or binary).
sourceThe file as the deployment takes it from the source: commit and text. For a Real-time deployment this is the version pulled from the org.
overridenull, or {deleted, text} when an override replaces the source version in this deployment. See Set a file override.
Path Params
int32
required

The numeric identifier of the Deployment Request.

Query Params
string
required

One of the deployment's files, e.g. src/classes/InvoiceService.cls.

Responses

Language
Credentials
OAuth2
LoadingLoading…
Response
Choose an example:
application/json