Change a project with a batch of operations
Also available in Swagger.
All or nothing. Operations may name what they create with as and use that name later in the same batch. Send expect_version to be sure nobody changed the project meanwhile. Credits: 5.
bearerAuthorizationBearer <token>An API key: amk_live__. A key can have an expiry date chosen when it is created (1 hour to 90 days, or none). After that moment the API answers 401 unauthorized, as for a revoked key. Create a new key or rotate the expired one (rotation keeps the same lifetime). A key can also be limited to one folder (with its subfolders) or one project: anything else answers 404 not_found, and a project key cannot create projects or use folders (403 insufficient_scope). A folder key creates projects and folders inside its folder. If that folder or project is deleted for good, the key answers 403 target_gone.
id*stringuuiddry_run?booleantrue = check the whole batch and return the ids and all errors, save nothing. Costs a read (1 Credit) instead of a write (5).
application/json- body
ops*array<|||||||||||||||||||||||>items <= 500expect_version?integer1 <= valueApplied
application/json- response
curl -X POST 'https://pltlaavsvbpebaopfbsp.supabase.co/functions/v1/api/v1/projects/497f6eca-6276-4993-bfeb-53cbbbba6f08/batch' \ -H 'Content-Type: application/json' \ -d '{ "ops": [ { "op": "add_step", "type": "decision", "label": "Qualified?", "as": "qualify" } ]}'{ "version": 8, "ids": {}}