POST
/
fastedge
/
v1
/
binaries
/
raw
Store compiled WASM binary
curl --request POST \
  --url https://api.gcore.com/fastedge/v1/binaries/raw \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/octet-stream'
{
  "id": 123,
  "status": 123,
  "unref_since": "<string>",
  "api_type": "<string>",
  "checksum": "<string>"
}

Authorizations

Authorization
string
header
required

API key for authentication. Make sure to include the word apikey, followed by a single space and then your token. Example: apikey 1234$abcdef

Body

application/octet-stream · file

The body is of type file.

Response

Ok

id
integer
required

Binary ID

status
integer
required

Status code:
0 - pending
1 - compiled
2 - compilation failed (errors available)
3 - compilation failed (errors not available)
4 - resulting binary exceeded the limit
5 - unsupported source language

api_type
string
required

Wasm API type

unref_since
string

Not used since (UTC)

checksum
string

MD5 hash of the binary