Skip to content

Create mold

POST
/forge/molds
curl --request POST \
--url https://shoehorn.example.com/api/v1/forge/molds \
--header 'Content-Type: application/json' \
--data '{ "name": "example", "slug": "example", "description": "example", "category": "example", "icon": "example", "parameters": [ { "name": "example", "type": "string", "label": "example", "description": "example", "required": false, "default": "example", "options": [ "example" ] } ], "actions": [ { "name": "example", "type": "github-action", "config": {} } ], "requires_approval": false }'
Media type application/json
object
name
required
string
slug
required
string
description
string
category
string
icon
string
parameters
Array<object>
object
name
required
string
type
required
string
Allowed values: string number boolean select multi-select
label
string
description
string
required
boolean
default
options

Options for select/multi-select types

Array<string>
actions
Array<object>
object
name
required
string
type
required
string
Allowed values: github-action api-call script approval
config
object
requires_approval
boolean

Mold created