DocuTray

updateStep

Update a step

PATCH/api/steps/{id}

Partially update a step of the API key's organization. Fields absent from the body keep their current value.

Requires the owner or admin organization role; a member receives 403.

identification.types replaces the whole list, it is not merged. Sending a non-empty list also switches the step to automatic identification, replacing any fixed document type it was configured with. On a step that does not use automatic identification an empty list is rejected with 409 instead of applied: such a step reads back as types: [], so echoing the object returned by GET would otherwise erase its fixed type or turn identification on against every accessible document type.

Document type codes the step already has configured are accepted even if the organization can no longer access them (a public type that was unpublished), so re-sending what GET returned always works. Adding an inaccessible code is still rejected with 400.

The internal processing configuration managed by Docutray (conversion options, result caching, RAG configs, AI model) is preserved untouched.

Authorization

ApiKeyAuth
AuthorizationBearer <token>

Bearer token for API authentication

In: header

Path Parameters

id*string

Step ID

Request Body

application/json

Response Body

application/json