Skip to main content
POST
Request a play module upload

Authorizations

Authorization
string
header
required

Bearer token issued by Softmax

Body

application/json

Play module upload metadata.

name
string
required

Registered play module name.

Required string length: 1 - 32
Pattern: ^[a-z][a-z0-9_]{0,31}$
content_hash
string
required

SHA-256 digest of the WebAssembly module.

Pattern: ^[0-9a-f]{64}$
size_bytes
integer
required

Module size in bytes.

Required range: x <= 262144
player_id
string | null

Player associated with this version, if any.

Pattern: ^ply_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
policy_version_id
string<uuid> | null

Policy version whose playbook includes this module, if any.

Response

Successful Response

upload_url
string | null
required

Presigned upload URL, or null when the version already exists.

existing_version
PlayModuleVersionPublic · object | null

Matching immutable version, if one already exists.