updateRepoAgentInstructions
Rewrite agent instructions, whoever owns them.
PATCH
/repos/{repo_id}/branches/{branch}/agent-instructions/{instructions_id}Path parameters
Request body JSON required
Returns
200
AgentInstructions
400
InvalidRequest | RequestBodyTooDeep
JSON
One of the following:
- InvalidRequestEncoded
- RequestBodyTooDeepEncoded
403
Forbidden | ForbiddenOrigin | RequiresPersonalSession | RunBranchRequired
JSON
One of the following:
- ForbiddenEncoded
- ForbiddenOriginEncoded
- RequiresPersonalSessionEncoded
- RunBranchRequiredEncoded
404
BranchNotFound | AgentInstructionsNotFound | RepoNotFound
JSON
One of the following:
- BranchNotFoundEncoded
- AgentInstructionsNotFoundEncoded
- RepoNotFoundEncoded
413
WriteTooLarge | RequestBodyTooLarge
JSON
One of the following:
- WriteTooLargeEncoded
- RequestBodyTooLargeEncoded
422
InvalidAgentInstructions | WriteRefused
JSON
One of the following:
- InvalidAgentInstructionsEncoded
- WriteRefusedEncoded
503
RepoBusy | SessionUnavailable | RateLimitUnavailable
JSON
One of the following:
- RepoBusyEncoded
- SessionUnavailableEncoded
- RateLimitUnavailableEncoded