Skip to content

`POST /api/v1/modules` — upload a module.

POST
/api/v1/modules
curl --request POST \
--url https://example.com/api/v1/modules \
--header 'Content-Type: application/json' \
--data '{ "content": "example", "name": "example" }'
Media type application/json

Request body for POST /api/v1/modules.

object
content
required

Raw YAML content.

string
name
required

Module name (must match the name field in the YAML).

string
Example generated
{
"content": "example",
"name": "example"
}

Module uploaded

Media type application/json

Response body for module endpoints.

object
name
required
string
uploaded_at
required
integer format: int64
uploaded_by
required
string
Example generated
{
"name": "example",
"uploaded_at": 1,
"uploaded_by": "example"
}

Invalid module content