Update a draft assessment
PATCH/api/v1/assessments/drafts/:draft_id
Update mutable fields on a draft assessment.
Accepts full code/public_id (e.g. AIS-ADB-XKR-DRAFT). Owner/admin
can edit any draft in their org; managers can only edit their own.
- Scope required:
assessments:update. - Rate-limit tier: read/default.
- Idempotent per-request; repeated identical payloads are safe.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 409
- 422
- 429
- 500
Successful Response
Bad request — malformed input or failed validation.
Missing, expired, or invalid credentials.
Authenticated but not authorized for this resource. Note: cross-organization reads return 404, not 403.
Resource not found, or hidden for tenant-enumeration safety (the caller lacks permission to know whether the resource exists).
Conflict — the current resource state does not allow this operation (e.g. assessment already started, email already in use).
Semantic validation failure — request shape was valid but contents were not.
Too many requests — rate limited. Retry after the window resets.
Internal server error — unexpected failure.