# Create module Create a new module in the module registry Endpoint: POST /iacm/api/modules Version: 1.0 Security: x-api-key ## Header parameters: - `Harness-Account` (string, required) account that owns the module Example: "k8" ## Request fields (application/json): - `description` (string) description of the module Example: "At est debitis." - `git_tag_style` (string) Git Tag Style Example: "Maiores cupiditate nesciunt natus aut." - `name` (string, required) module name Example: "pik" - `onboarding_pipeline` (string) Onboarding Pipeline Example: "Voluptates minus itaque eum." - `onboarding_pipeline_org` (string) Onboarding Pipeline Org Example: "Voluptatem molestias consequatur tempora sapiente." - `onboarding_pipeline_project` (string) Onboarding Pipeline Project Example: "Sapiente excepturi." - `org` (string) org that owns the module Example: "s" - `project` (string) project that owns the module Example: "n2" - `repository` (string) Repository is the name of the repository to use. Example: "Atque veniam ea id." - `repository_branch` (string) Repository Branch in which the code should be accessed. Example: "main" - `repository_commit` (string) Repository Commit/Tag in which the code should be accessed. Example: "abc10ed" - `repository_connector` (string) Repository Connector is the reference to the connector to use for this code. Example: "Omnis explicabo id dolores suscipit." - `repository_path` (string) Repository Path is the path in which the infra code resides. - `system` (string, required) system name Example: "w" - `tags` (string) tags defining the module Example: "Doloribus tempora nemo inventore consequatur porro." ## Response 200 fields (application/json): - `account` (string, required) account that owns the module Example: "j1" - `created` (integer, required) Created is the unix timestamp at which the resource was originally created in milliseconds. Example: 3103795814133049000 - `description` (string) description of the module Example: "Sunt molestiae eius et dolore nobis et." - `id` (string, required) module id Example: "aaaaaaaa-bbbb-cccc-eeee-ffffffffffff" - `name` (string, required) module name Example: "9" - `repository` (string) Repository is the name of the repository to use. Example: "Eum maxime qui harum voluptates eius." - `repository_branch` (string) Repository Branch in which the code should be accessed. Example: "main" - `repository_commit` (string) Repository Commit/Tag in which the code should be accessed. Example: "abc10ed" - `repository_connector` (string) Repository Connector is the reference to the connector to use for this code. Example: "Quibusdam consectetur nihil asperiores saepe non dolorem." - `repository_path` (string) Repository Path is the path in which the infra code resides. - `system` (string, required) system name Example: "5un" - `tags` (string) tags defining the module Example: "Eos illum distinctio nisi beatae corrupti rerum." - `updated` (integer, required) Modified is the unix timestamp at which the resource was last modified in milliseconds. Example: 6769066721659050000 ## Response 400 fields (application/vnd.goa.error): - `fault` (boolean, required) Is the error a server-side fault? - `id` (string, required) ID is a unique identifier for this particular occurrence of the problem. Example: "123abc" - `message` (string, required) Message is a human-readable explanation specific to this occurrence of the problem. Example: "parameter 'p' must be an integer" - `name` (string, required) Name is the name of this class of errors. Example: "bad_request" - `temporary` (boolean, required) Is the error temporary? - `timeout` (boolean, required) Is the error a timeout? Example: true ## Response 401 fields (application/vnd.goa.error): - `fault` (boolean, required) Is the error a server-side fault? - `id` (string, required) ID is a unique identifier for this particular occurrence of the problem. Example: "123abc" - `message` (string, required) Message is a human-readable explanation specific to this occurrence of the problem. Example: "parameter 'p' must be an integer" - `name` (string, required) Name is the name of this class of errors. Example: "bad_request" - `temporary` (boolean, required) Is the error temporary? - `timeout` (boolean, required) Is the error a timeout? Example: true ## Response 403 fields (application/vnd.goa.error): - `fault` (boolean, required) Is the error a server-side fault? - `id` (string, required) ID is a unique identifier for this particular occurrence of the problem. Example: "123abc" - `message` (string, required) Message is a human-readable explanation specific to this occurrence of the problem. Example: "parameter 'p' must be an integer" - `name` (string, required) Name is the name of this class of errors. Example: "bad_request" - `temporary` (boolean, required) Is the error temporary? - `timeout` (boolean, required) Is the error a timeout? Example: true ## Response 404 fields (application/vnd.goa.error): - `fault` (boolean, required) Is the error a server-side fault? - `id` (string, required) ID is a unique identifier for this particular occurrence of the problem. Example: "123abc" - `message` (string, required) Message is a human-readable explanation specific to this occurrence of the problem. Example: "parameter 'p' must be an integer" - `name` (string, required) Name is the name of this class of errors. Example: "bad_request" - `temporary` (boolean, required) Is the error temporary? - `timeout` (boolean, required) Is the error a timeout? Example: true ## Response 408 fields (application/vnd.goa.error): - `fault` (boolean, required) Is the error a server-side fault? - `id` (string, required) ID is a unique identifier for this particular occurrence of the problem. Example: "123abc" - `message` (string, required) Message is a human-readable explanation specific to this occurrence of the problem. Example: "parameter 'p' must be an integer" - `name` (string, required) Name is the name of this class of errors. Example: "bad_request" - `temporary` (boolean, required) Is the error temporary? - `timeout` (boolean, required) Is the error a timeout? Example: true ## Response 409 fields (application/vnd.goa.error): - `fault` (boolean, required) Is the error a server-side fault? - `id` (string, required) ID is a unique identifier for this particular occurrence of the problem. Example: "123abc" - `message` (string, required) Message is a human-readable explanation specific to this occurrence of the problem. Example: "parameter 'p' must be an integer" - `name` (string, required) Name is the name of this class of errors. Example: "bad_request" - `temporary` (boolean, required) Is the error temporary? - `timeout` (boolean, required) Is the error a timeout? Example: true ## Response 423 fields (application/vnd.goa.error): - `fault` (boolean, required) Is the error a server-side fault? - `id` (string, required) ID is a unique identifier for this particular occurrence of the problem. Example: "123abc" - `message` (string, required) Message is a human-readable explanation specific to this occurrence of the problem. Example: "parameter 'p' must be an integer" - `name` (string, required) Name is the name of this class of errors. Example: "bad_request" - `temporary` (boolean, required) Is the error temporary? - `timeout` (boolean, required) Is the error a timeout? Example: true ## Response 499 fields (application/vnd.goa.error): - `fault` (boolean, required) Is the error a server-side fault? - `id` (string, required) ID is a unique identifier for this particular occurrence of the problem. Example: "123abc" - `message` (string, required) Message is a human-readable explanation specific to this occurrence of the problem. Example: "parameter 'p' must be an integer" - `name` (string, required) Name is the name of this class of errors. Example: "bad_request" - `temporary` (boolean, required) Is the error temporary? - `timeout` (boolean, required) Is the error a timeout? Example: true ## Response 500 fields (application/vnd.goa.error): - `fault` (boolean, required) Is the error a server-side fault? - `id` (string, required) ID is a unique identifier for this particular occurrence of the problem. Example: "123abc" - `message` (string, required) Message is a human-readable explanation specific to this occurrence of the problem. Example: "parameter 'p' must be an integer" - `name` (string, required) Name is the name of this class of errors. Example: "bad_request" - `temporary` (boolean, required) Is the error temporary? - `timeout` (boolean, required) Is the error a timeout? Example: true ## Response 502 fields (application/vnd.goa.error): - `fault` (boolean, required) Is the error a server-side fault? - `id` (string, required) ID is a unique identifier for this particular occurrence of the problem. Example: "123abc" - `message` (string, required) Message is a human-readable explanation specific to this occurrence of the problem. Example: "parameter 'p' must be an integer" - `name` (string, required) Name is the name of this class of errors. Example: "bad_request" - `temporary` (boolean, required) Is the error temporary? - `timeout` (boolean, required) Is the error a timeout? Example: true