Create a new machine definition.
Note: No instances of a machine definition can be created until you create a machine definition version for it.
Body
Request to create a machine definition.
- 
    
  An identifier for the machine definition. Must be unique within your organization. Minimum length is 1. Format should match the following pattern:^[a-zA-Z0-9_-]{1,128}$.
- 
    
  Name of an index on machines Format of each should match the following pattern: ^[a-zA-Z0-9_-]{1,128}$.
        POST
    /machines
  
  curl \
 -X POST https://api.statebacked.dev/machines \
 -H "Authorization: Bearer $ACCESS_TOKEN" \
 -H "Content-Type: application/json" \
 -d '{"slug":"my-machine","indexes":["string"]}'
        Request example
  
  {
  "slug": "my-machine",
  "indexes": [
    "string"
  ]
}
        Request examples
  
  {
  "slug": "my-machine",
  "indexes": [
    "string"
  ]
}
        Response examples (403)
  
  {
  "error": "string",
  "code": "missing-scope"
}
        Response examples (403)
  
  {
  "error": "string",
  "code": "missing-scope"
}
        Response examples (400)
  
  {
  "error": "string",
  "code": "specify-org",
  "parameter": "string"
}
        Response examples (400)
  
  {
  "error": "string",
  "code": "specify-org",
  "parameter": "string"
}