fix(API): improve delete /projects/{project_id}/keys/{id}/key_links/{child_key_id} documentation#1194
Conversation
…{child_key_id} documentation
API changelog (oasdiff)Doc-only edits (descriptions, examples) do not appear here. |
|
if we want to merge these PRs individually, we should probably go with |
jablan very useful insight! so the automation here is triggered by the PR title? I'd then manually fix here and update the prompt instructions. |
|
jablan would you consider this as "fix" ? I'd say this is just "docs" update - wdyt? |
|
On the
We're avoiding |
Apply the batch review conventions: - Trim the scope/status sentence from the description (write-permission, 'returns 403 on a branch', 'returns 422 when ...'); the 403 and 422 responses already document these. Keep the main-project restriction and the error-code-format note. - Drop the '# Expected response on success: ...' trailer from the curl sample so it shows only the request. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
| code: KEY_IS_NOT_LINKED | ||
| '429': | ||
| description: | | ||
| Too many requests. You have exceeded the rate limit. Wait until the time indicated in X-Rate-Limit-Reset before retrying. |
There was a problem hiding this comment.
As this is a generic universal response for 429, it should live in responses.yaml#429. We should try to keep the error section as generic as possible to avoid duplicating the same or very similar content.
| Bad request. Returned when the request is malformed, such as unparseable JSON in the request body. Fix the request format and retry. | ||
| "$ref": "../../responses.yaml#/400" | ||
| '401': | ||
| description: | |
There was a problem hiding this comment.
same as for 429 error below, try to find a generic formulation and update responses.yml#401 with it. if there are more than one generic case, we could separate it to 401_write and 401_read for example and use the appropriate reference where needed.
Improves the documentation for
delete /projects/{project_id}/keys/{id}/key_links/{child_key_id}: sharper descriptions, parameter docs, error responses, and usage examples.Drafted with AI assistance and grounded in the API implementation. Please review for technical accuracy before merging; nothing is merged automatically.
🤖 Generated with Claude Code