mirror of
https://github.com/appwrite/appwrite
synced 2026-05-21 16:08:22 +00:00
25 lines
843 B
Markdown
25 lines
843 B
Markdown
|
|
POST /v1/functions/{functionId}/deployments HTTP/1.1
|
||
|
|
Host: HOSTNAME
|
||
|
|
Content-Type: multipart/form-data; boundary="cec8e8123c05ba25"
|
||
|
|
X-Appwrite-Response-Format: 1.0.0
|
||
|
|
X-Appwrite-Project: 5df5acd0d48c2
|
||
|
|
X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2
|
||
|
|
Content-Length: *Length of your entity body in bytes*
|
||
|
|
|
||
|
|
--cec8e8123c05ba25
|
||
|
|
Content-Disposition: form-data; name="operations"
|
||
|
|
|
||
|
|
{ "query": "mutation { functionsCreateDeployment(functionId: $functionId, entrypoint: $entrypoint, code: $code, activate: $activate) { id }" }, "variables": { "functionId": "[FUNCTION_ID]", "entrypoint": "[ENTRYPOINT]", "code": null, "activate": false } }
|
||
|
|
|
||
|
|
--cec8e8123c05ba25
|
||
|
|
Content-Disposition: form-data; name="map"
|
||
|
|
|
||
|
|
{ "0": ["variables.code"], }
|
||
|
|
|
||
|
|
--cec8e8123c05ba25
|
||
|
|
Content-Disposition: form-data; name="0"; filename="code.ext"
|
||
|
|
|
||
|
|
File contents
|
||
|
|
|
||
|
|
--cec8e8123c05ba25--
|