Stripe | Financial Infrastructure to Grow Your Revenue

Stripe | Financial Infrastructure to Grow Your Revenue

4466 articles

Update a redaction job


Update a redaction job Preview

POST / v1 / privacy / redaction_jobs /:id

Updates the properties of a redaction job without running or canceling the job.

If the job to update is in a failed status, it will not automatically start to validate. Once you applied all of the changes, use the validate API to start validation again.

Parameters

  • job string Required RedactionJob object identifier
  • validation _ behavior enum Determines the validation behavior of the job. Default is error. Possible enum values error The job will generate a validation error for every object that cannot be redacted. If there are any errors, all of them will need to be resolved before the job can run. fix The job will attempt to fix validation errors whenever possible. Some objects cannot be automatically fixed and will need to be resolved before the job can run.

Returns

Returns the RedactionJob object with the updated changes.

Response

{ "id": "prj_123", "object": "privacy.redaction_job", "created": 1234567890, "livemode": true, "status": "failed", "validation_behavior": "fix"}

Retrieve a redaction job Preview

GET / v1 / privacy / redaction_jobs /:id

Retrieves the details of a previously created redaction job.

Parameters

  • job string Required RedactionJob object identifier

Returns

Returns the RedactionJob object.

Response

{ "id": "prj_123", "object": "privacy.redaction_job", "created": 1234567890, "livemode": true, "status": "ready", "validation_behavior": "error"}

List all redaction jobs Preview

GET / v1 / privacy / redaction_jobs

Returns a list of redaction jobs.

Parameters

  • status enum If provided, only RedactionJob objects with the given status will be returned. Possible enum values canceled The job is canceled. No objects are redacted. canceling The job is canceling and no objects will be redacted. created This job is newly created and will begin validating shortly. failed The job failed to validate. View the job’s validation errors for more information. ready The job is ready to run or cancel. redacting The job is running. It is redacting the job’s specified objects. succeeded The job is complete. The job’s objects are redacted. validating The job is checking if the objects are eligible for redaction.

More parameters

  • ending _ before string
  • limit integer
  • starting _ after string

Returns

Returns a list of RedactionJob objects.

Response

Last verified 2026-09-24

Is this helpful?