/v2/{path} (PATCH)
PATCH
/v2/{path}
const url = 'https://infra-hyphae.run/v2/example';const options = {method: 'PATCH', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://infra-hyphae.run/v2/example \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters”path
required
string
Remainder of the Native /v2 path, e.g. capabilities, sql, search.
Header Parameters
Section titled “Header Parameters”X-Hyphae-Project
string
Optional tenant reference (prj_<16 hex> or the bare hex) for clients that cannot set Host. Must match the key’s project.
Responses
Section titled “ Responses ”Missing, malformed, duplicate, or unknown credential (authentication_required).
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
Example
{ "error": { "code": "invalid_request" }}Headers
Section titled “Headers”WWW-Authenticate
string
Valid credential for a different project than the one referenced, or an account signup without a valid invite code on an invite-gated deployment (authorization_denied).
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
Example
{ "error": { "code": "invalid_request" }}Body exceeds the surface’s limit (payload_too_large).
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
Example
{ "error": { "code": "invalid_request" }}The engine failed to start or did not answer (upstream_unavailable).
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
Example
{ "error": { "code": "invalid_request" }}The project has no running engine; call wakeup (tenant_not_running).
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
Example
{ "error": { "code": "invalid_request" }}Native’s answer, unchanged.
Native’s answer, unchanged (for example 400 for a missing X-Hyphae-Protocol-Minor).