Change the workspace settings.
const url = 'https://example.com/api/v1/admin/settings';const options = { method: 'PUT', headers: {'Content-Type': 'application/json'}, body: '{"max_file_mb":1,"max_bundle_mb":1,"invite_ttl_days":1,"resolve_sources":true,"parallel_calls":1,"reviews_interactive":1,"reviews_pr":1}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://example.com/api/v1/admin/settings \ --header 'Content-Type: application/json' \ --data '{ "max_file_mb": 1, "max_bundle_mb": 1, "invite_ttl_days": 1, "resolve_sources": true, "parallel_calls": 1, "reviews_interactive": 1, "reviews_pr": 1 }'Request Bodyrequired
Section titled “Request Bodyrequired”object
REQ-009. Default 10.
REQ-009. Default 50.
REQ-081. Default 7.
Read the metadata of each grounding source. Default true. With it off, a source carries no redirect chain and no retrieval date.
REQ-105. Model calls at a time per run. Default 8.
Reviews at a time in the interactive queue, the reviews and answers a person waits for. Default 3.
Reviews at a time in the pr queue, the pull request reviews of the GitHub App. Default 2.
Examplegenerated
{ "max_file_mb": 1, "max_bundle_mb": 1, "invite_ttl_days": 1, "resolve_sources": true, "parallel_calls": 1, "reviews_interactive": 1, "reviews_pr": 1}Responses
Section titled “ Responses ”The settings.
object
REQ-009. Default 10.
REQ-009. Default 50.
REQ-081. Default 7.
Read the metadata of each grounding source. Default true. With it off, a source carries no redirect chain and no retrieval date.
REQ-105. Model calls at a time per run. Default 8.
Reviews at a time in the interactive queue, the reviews and answers a person waits for. Default 3.
Reviews at a time in the pr queue, the pull request reviews of the GitHub App. Default 2.
Examplegenerated
{ "max_file_mb": 1, "max_bundle_mb": 1, "invite_ttl_days": 1, "resolve_sources": true, "parallel_calls": 1, "reviews_interactive": 1, "reviews_pr": 1}default
Section titled “default”An error.
RFC 9457 problem details with a stable code.
object
A stable machine-readable error code.
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example", "code": "example"}