Update a project
Changes the name, the webhook address, or the routing defaults, and can rotate the webhook secret. Fields you leave out stay as they are.
Rules:
routingis replaced as a whole. A patch that sendsroutingwith one field drops every other routing field. Read the project, change the routing object, and send all of it.webhook_url: nullremoves the webhook address.rotate_webhook_secret: truereplaces the webhook secret and returns the new one once inwebhook_secret. The previous secret stays valid for 24 hours. See thesandboxEventwebhook for how deliveries are signed during that time. The rotation and the other fields of the same request are applied together or not at all.- Unknown fields return 400, also inside
routing. restricted: truehides the project from everymemberandviewerwho was not added to it withaddProjectMember, from the next request on.falseshows it to everyone in the account again. Owners and admins always see it, and so does every API key. When the project becomes restricted, the same transaction revokes every live key in it that amemberorvieweroutside it minted, with the keys minted from them. Each gets anapi_key.deletedaudit entry withreasonproject.updated. Settingfalseagain does not bring them back.
Scope: admin. People: owner or admin.
Authentication
A Meadow API key, sent as Authorization: Bearer mdw_.... The header
x-api-key: mdw_... is accepted in its place.
Path parameters
The project id.
Request
Where to send sandbox events for sandboxes that set no webhook_url of their own. Must be https and resolve to a public address. null removes it.
The most sandboxes of this project that may be alive at once, whichever key
made them. Null or left out means no cap. It counts the same states as
max_sandboxes on a key, and a create past it returns 403
project_sandbox_limit_exceeded. While a project has a cap, its sandbox
creates are admitted one at a time, which is a few database statements each.
It counts sandboxes, not dollars.
When true, replace the webhook secret. The new secret is returned once in
webhook_secret. The previous secret stays valid for 24 hours, and so does every
earlier secret still inside its own 24 hours. The rotation and the other
fields of the same request are applied together or not at all.
When true, only owners, admins and the people added with addProjectMember see the project.
Response headers
Meadow’s id for this request, req_ and 24 hex characters. Every response
carries it, including errors, streams and unknown routes. Every error in the
Error schema repeats it as request_id. Quote it when you report a problem.
Response
The updated project. webhook_secret is present only when it was rotated.
When true, a member or viewer sees the project only after addProjectMember. Owners, admins and keys are not affected.
Where to send sandbox events for sandboxes that set no webhook_url of their own. Must be https and resolve to a public address. null removes it.
The most sandboxes of this project that may be alive at once, whichever key
made them. Null or left out means no cap. It counts the same states as
max_sandboxes on a key, and a create past it returns 403
project_sandbox_limit_exceeded. While a project has a cap, its sandbox
creates are admitted one at a time, which is a few database statements each.
It counts sandboxes, not dollars.
The secret that signs webhook deliveries, starting with whsec_. Returned on create and when rotate_webhook_secret is true. Absent otherwise.