Skip to Content
PropertyPixel Docs

Pick a result

PATCH
/jobs/{id}/pick

Mark a finished photo version as a pick (picked: true) or remove the mark (picked: false). Picks are the versions the user wants to keep; get_download_link with picks_only downloads them together. The pick is a flag stored in the connected PropertyPixel workspace: it doesn't contact any outside service, and it never changes or deletes the version itself. Only completed enhancement and staging jobs can be picked.

Works with view-only access.

Authorization

headerAuthorizationBearer <pp_live_…>

An API key from Settings → Developers (pp_live_…), or an OAuth access token.

Path Parameters

id*string

Job ID of the finished version.

Match^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
Formatuuid

Header Parameters

Idempotency-Key?string

A unique key (for example a UUID) that makes retries safe. A retry with the same key and body returns the stored response; the same key with a different body returns 422. Keys last 24 hours.

Lengthlength <= 255

Request Body

application/json
  1. body
picked*boolean

True to pick, false to unpick.

Response Body

Pick a result

application/json
  1. response
object*string
id*string
Match^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
Formatuuid
kind*JobKind
Value in"enhancement""staging"
status*JobStatus
Value in"pending""processing""completed""failed""cancelled"
progress*|

Percent complete while processing.

stage*string|null
project_id*|null
photo_id*|

Source photo.

photo_ids*array<>

All source photos, in order.

source_job_id*|

Prior version this edit was applied on top of.

enhancement_types*array<string>
design_style*string|null
ultra_hd*boolean
credits*integer|null
picked*boolean
watermarked*boolean
result*|

The finished image, when completed.

thumbnail*|null
error*|

Why the job failed. Failed jobs are refunded automatically.

created_at*string
Match^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
Formatdate-time
completed_at*|null
Example Request
curl -X PATCH 'https://api.propertypixel.app/v1/jobs/497f6eca-6276-4993-bfeb-53cbbbba6f08/pick' \  -H 'Content-Type: application/json' \  -d '{  "picked": true}'
Example Response
{  "object": "job",  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "kind": "enhancement",  "status": "pending",  "progress": 0,  "stage": "string",  "project_id": "405d8375-3514-403b-8c43-83ae74cfe0e9",  "photo_id": "50c42bd2-615e-4fec-a325-0e5c4d3d73d3",  "photo_ids": [    "68e4fc1a-5272-4c7c-88ae-00ad654f19af"  ],  "source_job_id": "82ec7aa8-71eb-48cf-81de-c1b18e40e554",  "enhancement_types": [    "string"  ],  "design_style": "string",  "ultra_hd": true,  "credits": 0,  "picked": true,  "watermarked": true,  "result": {    "url": "http://example.com",    "expires_at": "2019-08-24T14:15:22Z"  },  "thumbnail": {    "url": "http://example.com",    "expires_at": "2019-08-24T14:15:22Z"  },  "error": {    "code": "string",    "message": "string"  },  "created_at": "2019-08-24T14:15:22Z",  "completed_at": "2019-08-24T14:15:22Z"}