Apply a priority change
Makes the change the store’s priority and merges every product again with it. 409 `priority_change_not_ready` before its preview is done; 409 `priority_change_stale` when the store’s sources changed since.
POST
Makes the change the store’s priority and merges every product again with it. 409 priority_change_not_ready before its preview is done; 409 priority_change_stale when the store’s sources changed since.
apiKey writeheader
AuthorizationBearer <token>A workspace API key (pf_…), created under Developers → API keys.
Scope: write
id*stringFormat
uuididempotency-key?stringRun this write once: a retry with the same key gets the first answer (24 hours).
Length
1 <= length <= 255OK
application/json- response
id*stringFormat
uuidstoreId*stringFormat
uuidstatus*stringValue in
"previewing""ready""applying""applied""failed"rules*stale*booleancounts*error*string|nullcreatedAt*stringFormat
date-timereadyAt*|Format
date-timeappliedAt*|Format
date-timecompletedAt*|Format
date-timecurl -X POST 'https://api.postforge.dev/v1/product-priority-changes/497f6eca-6276-4993-bfeb-53cbbbba6f08/apply'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "storeId": "b8adcdc8-9238-4168-90f8-77b2d14c211c", "status": "previewing", "rules": { "order": [ "93b532b3-a125-4cd2-9b71-9996b1e164ce" ], "fields": { "property1": [ "497f6eca-6276-4993-bfeb-53cbbbba6f08" ], "property2": [ "497f6eca-6276-4993-bfeb-53cbbbba6f08" ] } }, "stale": true, "counts": { "products": 0, "previewed": 0, "changed": 0, "applied": 0 }, "error": "string", "createdAt": "2019-08-24T14:15:22Z", "readyAt": "2019-08-24T14:15:22Z", "appliedAt": "2019-08-24T14:15:22Z", "completedAt": "2019-08-24T14:15:22Z"}