Preview Changes
PUT/jobs/diff
Compares a proposed job specification with an existing job to preview changes.
When to Use:
- Before deploying job updates: Preview exactly what will change
- Validate changes: Ensure updates match your intentions
- Code review: Share diffs with team before deploying
- Troubleshooting: Verify a job spec matches what you expect
What You Get
- Unified diff showing additions, removals, and changes
- Line-by-line comparison of the job specifications
- Empty diff if specs are identical (no changes)
Common Workflow
- Modify your job specification file
PUT /jobs/diffwith the new spec- Review the diff to verify changes
- If changes look correct:
PUT /jobsto apply - If not: Adjust spec and repeat
Important Notes
- This is read-only - it doesn't modify the job
- Internal metadata (expanso.io/* keys) are ignored in diff
- Empty diff means no changes will be applied (422 on PUT /jobs)
Request
Responses
- 200
- 400
- 404
- 500
Returns diff (may be empty if no changes)
Invalid job specification format
Job not found
Internal Server Error