{
  "openapi": "3.1.1",
  "info": {
    "title": "CostItemGenerationScriptAdministrationService1",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://{rootHost}/{servicesPrefix}",
      "variables": {
        "rootHost": {
          "default": "swimlane.replicon.com"
        },
        "servicesPrefix": {
          "default": "services"
        }
      }
    }
  ],
  "paths": {
    "/CostItemGenerationScriptAdministrationService1.svc/GetScript": {
      "post": {
        "description": "Get a given script",
        "operationId": "GetScript",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "scriptUri"
                ],
                "properties": {
                  "scriptUri": {
                    "description": "",
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/Uri"
                      }
                    ]
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "d"
                  ],
                  "properties": {
                    "d": {
                      "$ref": "#/components/schemas/ScriptReference1"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/CostItemGenerationScriptAdministrationService1.svc/GetAllScripts": {
      "post": {
        "description": "Retrieve a list of all scripts in the system",
        "operationId": "GetAllScripts",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "d"
                  ],
                  "properties": {
                    "d": {
                      "$ref": "#/components/schemas/ScriptReference1Array"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/CostItemGenerationScriptAdministrationService1.svc/GetActiveScripts": {
      "post": {
        "description": "Retrieve a list of all enabled scripts in the system",
        "operationId": "GetActiveScripts",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "d"
                  ],
                  "properties": {
                    "d": {
                      "$ref": "#/components/schemas/ScriptReference1Array"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/CostItemGenerationScriptAdministrationService1.svc/CreateNewDraft": {
      "post": {
        "description": "Create a draft of a new script.",
        "operationId": "CreateNewDraft",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "d"
                  ],
                  "properties": {
                    "d": {
                      "$ref": "#/components/schemas/Uri"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/CostItemGenerationScriptAdministrationService1.svc/CreateEditDraft": {
      "post": {
        "description": "Create a draft of an existing script.",
        "operationId": "CreateEditDraft",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "scriptUri"
                ],
                "properties": {
                  "scriptUri": {
                    "description": "",
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/Uri"
                      }
                    ]
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "d"
                  ],
                  "properties": {
                    "d": {
                      "$ref": "#/components/schemas/Uri"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/CostItemGenerationScriptAdministrationService1.svc/UpdateName": {
      "post": {
        "description": "Modify the name of a script or draft.",
        "operationId": "UpdateName",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "scriptUri",
                  "name"
                ],
                "properties": {
                  "scriptUri": {
                    "description": "",
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/Uri"
                      }
                    ]
                  },
                  "name": {
                    "description": "",
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/String"
                      }
                    ]
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "d"
                  ],
                  "properties": {
                    "d": {
                      "$ref": "#/components/schemas/Void"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/CostItemGenerationScriptAdministrationService1.svc/UpdateDescription": {
      "post": {
        "description": "Modify the description of a script or draft.",
        "operationId": "UpdateDescription",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "scriptUri"
                ],
                "properties": {
                  "scriptUri": {
                    "description": "",
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/Uri"
                      }
                    ]
                  },
                  "description": {
                    "description": "",
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/String"
                      }
                    ]
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "d"
                  ],
                  "properties": {
                    "d": {
                      "$ref": "#/components/schemas/Void"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/CostItemGenerationScriptAdministrationService1.svc/UpdateDetailedDescription": {
      "post": {
        "description": "Modify the detail description of a script or draft.",
        "operationId": "UpdateDetailedDescription",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "scriptUri"
                ],
                "properties": {
                  "scriptUri": {
                    "description": "",
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/Uri"
                      }
                    ]
                  },
                  "detailedDescription": {
                    "description": "",
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/String"
                      }
                    ]
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "d"
                  ],
                  "properties": {
                    "d": {
                      "$ref": "#/components/schemas/Void"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/CostItemGenerationScriptAdministrationService1.svc/UpdateScriptCode": {
      "post": {
        "description": "Modify the code of an script or draft.",
        "operationId": "UpdateScriptCode",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "scriptUri",
                  "scriptCode",
                  "scriptCodeLanguageUri"
                ],
                "properties": {
                  "scriptUri": {
                    "description": "",
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/Uri"
                      }
                    ]
                  },
                  "scriptCode": {
                    "description": "",
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/String"
                      }
                    ]
                  },
                  "scriptCodeLanguageUri": {
                    "description": "",
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/Uri"
                      }
                    ]
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "d"
                  ],
                  "properties": {
                    "d": {
                      "$ref": "#/components/schemas/Void"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/CostItemGenerationScriptAdministrationService1.svc/PublishDraft": {
      "post": {
        "description": "Publish a script draft, converting it into a script that is returned.",
        "operationId": "PublishDraft",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "draftUri"
                ],
                "properties": {
                  "draftUri": {
                    "description": "",
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/Uri"
                      }
                    ]
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "d"
                  ],
                  "properties": {
                    "d": {
                      "$ref": "#/components/schemas/ScriptReference1"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/CostItemGenerationScriptAdministrationService1.svc/GetUriFromSlug": {
      "post": {
        "description": "Convert a script slug into a URI.",
        "operationId": "GetUriFromSlug",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "scriptSlug"
                ],
                "properties": {
                  "scriptSlug": {
                    "description": "",
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/String"
                      }
                    ]
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "d"
                  ],
                  "properties": {
                    "d": {
                      "$ref": "#/components/schemas/Uri"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/CostItemGenerationScriptAdministrationService1.svc/GetUriFromDraft": {
      "post": {
        "description": "Convert a script draft URI into the backing script URI.",
        "operationId": "GetUriFromDraft",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "draftUri"
                ],
                "properties": {
                  "draftUri": {
                    "description": "",
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/Uri"
                      }
                    ]
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "d"
                  ],
                  "properties": {
                    "d": {
                      "$ref": "#/components/schemas/Uri"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/CostItemGenerationScriptAdministrationService1.svc/GetScriptDetails": {
      "post": {
        "description": "Retrieve script details for a script or script draft.",
        "operationId": "GetScriptDetails",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "scriptUri"
                ],
                "properties": {
                  "scriptUri": {
                    "description": "",
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/Uri"
                      }
                    ]
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "d"
                  ],
                  "properties": {
                    "d": {
                      "$ref": "#/components/schemas/ScriptDetails1"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/CostItemGenerationScriptAdministrationService1.svc/BulkGetScriptDetails": {
      "post": {
        "description": "Retrieve script details for many scripts.  Null elements will be returned for requested scripts that can not be returned",
        "operationId": "BulkGetScriptDetails",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "scriptUris"
                ],
                "properties": {
                  "scriptUris": {
                    "description": "",
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/UriArray"
                      }
                    ]
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "d"
                  ],
                  "properties": {
                    "d": {
                      "$ref": "#/components/schemas/ScriptDetails1Array"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/CostItemGenerationScriptAdministrationService1.svc/GetScriptDetailsIfUpdated": {
      "post": {
        "description": "Retrieve script details for a script or draft if it has been changed since the provided parameter ScriptVersion.",
        "operationId": "GetScriptDetailsIfUpdated",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "scriptUri",
                  "scriptVersionUri"
                ],
                "properties": {
                  "scriptUri": {
                    "description": "",
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/Uri"
                      }
                    ]
                  },
                  "scriptVersionUri": {
                    "description": "",
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/Uri"
                      }
                    ]
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "d"
                  ],
                  "properties": {
                    "d": {
                      "$ref": "#/components/schemas/ScriptConditionalDetails1"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/CostItemGenerationScriptAdministrationService1.svc/PutScript": {
      "post": {
        "description": "Put an entire script object and corresponding properties",
        "operationId": "PutScript",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "script"
                ],
                "properties": {
                  "script": {
                    "description": "",
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/ScriptParameter1"
                      }
                    ]
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "d"
                  ],
                  "properties": {
                    "d": {
                      "$ref": "#/components/schemas/ScriptReference1"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/CostItemGenerationScriptAdministrationService1.svc/CreateFromGlobal": {
      "post": {
        "description": "Copy a script from global script",
        "operationId": "CreateFromGlobal",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "globalScript",
                  "unitOfWorkId"
                ],
                "properties": {
                  "globalScript": {
                    "description": "",
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/GlobalScriptTargetParameter1"
                      }
                    ]
                  },
                  "unitOfWorkId": {
                    "description": "",
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/String"
                      }
                    ]
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "d"
                  ],
                  "properties": {
                    "d": {
                      "$ref": "#/components/schemas/ScriptReference1"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/CostItemGenerationScriptAdministrationService1.svc/Activate": {
      "post": {
        "description": "Activate a script",
        "operationId": "Activate",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "scriptUri"
                ],
                "properties": {
                  "scriptUri": {
                    "description": "",
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/Uri"
                      }
                    ]
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "d"
                  ],
                  "properties": {
                    "d": {
                      "$ref": "#/components/schemas/Void"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/CostItemGenerationScriptAdministrationService1.svc/Deactivate": {
      "post": {
        "description": "Deactivate a script.  Existing bindings will still use the script, but the script will be unavailable for new bindings.",
        "operationId": "Deactivate",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "scriptUri"
                ],
                "properties": {
                  "scriptUri": {
                    "description": "",
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/Uri"
                      }
                    ]
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "d"
                  ],
                  "properties": {
                    "d": {
                      "$ref": "#/components/schemas/Void"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/CostItemGenerationScriptAdministrationService1.svc/Delete": {
      "post": {
        "description": "Delete a script",
        "operationId": "Delete",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "scriptUri"
                ],
                "properties": {
                  "scriptUri": {
                    "description": "",
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/Uri"
                      }
                    ]
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "d"
                  ],
                  "properties": {
                    "d": {
                      "$ref": "#/components/schemas/Void"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/CostItemGenerationScriptAdministrationService1.svc/BulkDelete": {
      "post": {
        "description": "Delete many scripts",
        "operationId": "BulkDelete",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "scriptUris",
                  "scriptBulkDeleteOptionUri"
                ],
                "properties": {
                  "scriptUris": {
                    "description": "",
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/UriArray"
                      }
                    ]
                  },
                  "scriptBulkDeleteOptionUri": {
                    "description": "",
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/Uri"
                      }
                    ]
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "d"
                  ],
                  "properties": {
                    "d": {
                      "$ref": "#/components/schemas/ScriptBulkDeleteResults1"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/CostItemGenerationScriptAdministrationService1.svc/PutSettingValueForScript": {
      "post": {
        "description": "Sets the specified key on the specified script or draft",
        "operationId": "PutSettingValueForScript",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "scriptUri",
                  "keyValue"
                ],
                "properties": {
                  "scriptUri": {
                    "description": "",
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/Uri"
                      }
                    ]
                  },
                  "keyValue": {
                    "description": "",
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/ScriptKeyValue1"
                      }
                    ]
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "d"
                  ],
                  "properties": {
                    "d": {
                      "$ref": "#/components/schemas/Void"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/CostItemGenerationScriptAdministrationService1.svc/GetScriptsWithKeyValues": {
      "post": {
        "description": "Retrieve a list of all scripts which have a specified setting value",
        "operationId": "GetScriptsWithKeyValues",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "keyValues"
                ],
                "properties": {
                  "keyValues": {
                    "description": "",
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/ScriptKeyValue1Array"
                      }
                    ]
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "d"
                  ],
                  "properties": {
                    "d": {
                      "$ref": "#/components/schemas/ScriptReference1Array"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/CostItemGenerationScriptAdministrationService1.svc/GetActiveScriptsWithKeyValues": {
      "post": {
        "description": "Retrieve a list of active scripts which have a specified setting value",
        "operationId": "GetActiveScriptsWithKeyValues",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "keyValues"
                ],
                "properties": {
                  "keyValues": {
                    "description": "",
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/ScriptKeyValue1Array"
                      }
                    ]
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "d"
                  ],
                  "properties": {
                    "d": {
                      "$ref": "#/components/schemas/ScriptReference1Array"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/CostItemGenerationScriptAdministrationService1.svc/BulkGetScriptDescriptionSummary": {
      "post": {
        "description": "Retrieve script description summary for many scripts",
        "operationId": "BulkGetScriptDescriptionSummary",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "scriptUris"
                ],
                "properties": {
                  "scriptUris": {
                    "description": "",
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/UriArray"
                      }
                    ]
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "d"
                  ],
                  "properties": {
                    "d": {
                      "$ref": "#/components/schemas/ScriptDescriptionSummary1Array"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/CostItemGenerationScriptAdministrationService1.svc/GetScriptRevisions": {
      "post": {
        "description": "Retrieve script details with revisions for many scripts.  Null elements will be returned for requested scripts that can not be returned",
        "operationId": "GetScriptRevisions",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "scriptUri"
                ],
                "properties": {
                  "scriptUri": {
                    "description": "",
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/Uri"
                      }
                    ]
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "d"
                  ],
                  "properties": {
                    "d": {
                      "$ref": "#/components/schemas/ScriptRevision1Array"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Uri": {
        "type": "string",
        "format": "uri"
      },
      "ScriptReference1": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "uri": {
            "type": "string",
            "format": "uri",
            "nullable": true
          },
          "displayText": {
            "type": "string",
            "nullable": true
          },
          "slug": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "ScriptReference1Array": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/ScriptReference1"
        }
      },
      "String": {
        "type": "string"
      },
      "Void": {
        "type": "null"
      },
      "ScriptDetails1": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "uri": {
            "type": "string",
            "format": "uri",
            "nullable": true
          },
          "slug": {
            "type": "string",
            "nullable": true
          },
          "versionUri": {
            "type": "string",
            "description": "Opaque identifier that only changes when the script content changes",
            "format": "uri",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "detailedDescription": {
            "type": "string",
            "nullable": true
          },
          "scriptCodeLanguageUri": {
            "type": "string",
            "format": "uri",
            "nullable": true
          },
          "scriptCode": {
            "type": "string",
            "nullable": true
          },
          "isActive": {
            "type": "boolean"
          },
          "keyValues": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/ScriptKeyValue1"
            }
          }
        }
      },
      "ScriptKeyValue1": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "keyUri",
          "value"
        ],
        "properties": {
          "keyUri": {
            "type": "string",
            "format": "uri",
            "nullable": true
          },
          "value": {
            "nullable": true,
            "oneOf": [
              {
                "$ref": "#/components/schemas/SettingsValue2"
              }
            ]
          }
        }
      },
      "SettingsValue2": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "uri": {
            "type": "string",
            "format": "uri",
            "nullable": true
          },
          "slug": {
            "type": "string",
            "nullable": true
          },
          "bool": {
            "type": "boolean",
            "nullable": true
          },
          "date": {
            "nullable": true,
            "oneOf": [
              {
                "$ref": "#/components/schemas/Date1"
              }
            ]
          },
          "number": {
            "type": "number",
            "format": "decimal",
            "nullable": true
          },
          "text": {
            "type": "string",
            "nullable": true
          },
          "time": {
            "nullable": true,
            "oneOf": [
              {
                "$ref": "#/components/schemas/Time1"
              }
            ]
          },
          "calendarDayDurationValue": {
            "nullable": true,
            "oneOf": [
              {
                "$ref": "#/components/schemas/CalendarDayDuration1"
              }
            ]
          },
          "workdayDurationValue": {
            "nullable": true,
            "oneOf": [
              {
                "$ref": "#/components/schemas/WorkdayDurationParameter1"
              }
            ]
          },
          "dateRange": {
            "nullable": true,
            "oneOf": [
              {
                "$ref": "#/components/schemas/DateRangeParameter1"
              }
            ]
          },
          "collection": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/SettingsValue2"
            }
          }
        }
      },
      "Date1": {
        "type": "object",
        "description": "Represents a calendar date without time information.",
        "additionalProperties": false,
        "properties": {
          "year": {
            "type": "integer",
            "description": "The year component of the date.",
            "format": "int32"
          },
          "month": {
            "type": "integer",
            "description": "The month component of the date (1-12).",
            "format": "int32"
          },
          "day": {
            "type": "integer",
            "description": "The day component of the date (1-31).",
            "format": "int32"
          }
        }
      },
      "Time1": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "hour": {
            "type": "integer",
            "format": "int32"
          },
          "minute": {
            "type": "integer",
            "format": "int32"
          },
          "second": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "CalendarDayDuration1": {
        "type": "object",
        "description": "Note that only positive durations are considered valid for this type.",
        "additionalProperties": false,
        "properties": {
          "hours": {
            "type": "integer",
            "format": "int32"
          },
          "minutes": {
            "type": "integer",
            "format": "int32"
          },
          "seconds": {
            "type": "integer",
            "format": "int32"
          },
          "milliseconds": {
            "type": "integer",
            "format": "int32"
          },
          "microseconds": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "WorkdayDurationParameter1": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "workdays": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "hours": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "minutes": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "decimalWorkdays": {
            "type": "number",
            "format": "decimal",
            "nullable": true
          }
        }
      },
      "DateRangeParameter1": {
        "type": "object",
        "description": "Represents a period of time specified by either explicit dates or a predefined relative range.",
        "additionalProperties": false,
        "properties": {
          "startDate": {
            "description": "The start of this date range. If null, represents the earliest possible date.",
            "nullable": true,
            "oneOf": [
              {
                "$ref": "#/components/schemas/Date1"
              }
            ]
          },
          "endDate": {
            "description": "The end of this date range. If null, represents the latest possible date.",
            "nullable": true,
            "oneOf": [
              {
                "$ref": "#/components/schemas/Date1"
              }
            ]
          },
          "relativeDateRangeUri": {
            "type": "string",
            "description": "A predefined date range relative to the current date.",
            "format": "uri",
            "nullable": true
          },
          "relativeDateRangeAsOfDate": {
            "description": "Reference date for calculating the relative date range.",
            "nullable": true,
            "oneOf": [
              {
                "$ref": "#/components/schemas/Date1"
              }
            ]
          }
        }
      },
      "UriArray": {
        "type": "array",
        "items": {
          "type": "string",
          "format": "uri"
        }
      },
      "ScriptDetails1Array": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/ScriptDetails1"
        }
      },
      "ScriptConditionalDetails1": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "versionUri"
        ],
        "properties": {
          "versionUri": {
            "type": "string",
            "description": "Opaque identifier that only changes when the script content changes",
            "format": "uri",
            "nullable": true
          },
          "scriptDetails": {
            "nullable": true,
            "oneOf": [
              {
                "$ref": "#/components/schemas/ScriptDetails1"
              }
            ]
          }
        }
      },
      "ScriptParameter1": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "target",
          "name",
          "scriptCodeLanguageUri",
          "scriptCode",
          "isActive"
        ],
        "properties": {
          "target": {
            "nullable": true,
            "oneOf": [
              {
                "$ref": "#/components/schemas/ScriptTargetParameter1"
              }
            ]
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "detailedDescription": {
            "type": "string",
            "nullable": true
          },
          "scriptCodeLanguageUri": {
            "type": "string",
            "format": "uri",
            "nullable": true
          },
          "scriptCode": {
            "type": "string",
            "nullable": true
          },
          "isActive": {
            "type": "boolean"
          },
          "keyValues": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/ScriptKeyValue1"
            }
          }
        }
      },
      "ScriptTargetParameter1": {
        "type": "object",
        "description": "Either uri, slug, or name must be provided",
        "additionalProperties": false,
        "properties": {
          "uri": {
            "type": "string",
            "format": "uri",
            "nullable": true
          },
          "slug": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "GlobalScriptTargetParameter1": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "uri": {
            "type": "string",
            "format": "uri",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "version": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "ScriptBulkDeleteResults1": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "deletedUris": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string",
              "format": "uri"
            }
          },
          "deactivatedUris": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string",
              "format": "uri"
            }
          },
          "errors": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/ScriptDeleteError1"
            }
          }
        }
      },
      "ScriptDeleteError1": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "script": {
            "nullable": true,
            "oneOf": [
              {
                "$ref": "#/components/schemas/ScriptReference1"
              }
            ]
          },
          "displayText": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "ScriptKeyValue1Array": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/ScriptKeyValue1"
        }
      },
      "ScriptDescriptionSummary1": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "uri": {
            "type": "string",
            "format": "uri",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "ScriptDescriptionSummary1Array": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/ScriptDescriptionSummary1"
        }
      },
      "ScriptRevision1": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "script": {
            "nullable": true,
            "oneOf": [
              {
                "$ref": "#/components/schemas/ScriptReference1"
              }
            ]
          },
          "uri": {
            "type": "string",
            "format": "uri",
            "nullable": true
          },
          "slug": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "detailedDescription": {
            "type": "string",
            "nullable": true
          },
          "scriptCodeLanguageUri": {
            "type": "string",
            "format": "uri",
            "nullable": true
          },
          "scriptCode": {
            "type": "string",
            "nullable": true
          },
          "isActive": {
            "type": "boolean",
            "nullable": true
          },
          "fromTimeStamp": {
            "nullable": true,
            "oneOf": [
              {
                "$ref": "#/components/schemas/DateTimeDetails1"
              }
            ]
          },
          "toTimeStamp": {
            "nullable": true,
            "oneOf": [
              {
                "$ref": "#/components/schemas/DateTimeDetails1"
              }
            ]
          },
          "keyValues": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/KeyValue1"
            }
          }
        }
      },
      "DateTimeDetails1": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "year": {
            "type": "integer",
            "format": "int32"
          },
          "month": {
            "type": "integer",
            "format": "int32"
          },
          "day": {
            "type": "integer",
            "format": "int32"
          },
          "hour": {
            "type": "integer",
            "format": "int32"
          },
          "minute": {
            "type": "integer",
            "format": "int32"
          },
          "second": {
            "type": "integer",
            "format": "int32"
          },
          "displayText": {
            "type": "string",
            "nullable": true
          },
          "timeZone": {
            "nullable": true,
            "oneOf": [
              {
                "$ref": "#/components/schemas/TimeZoneReference1"
              }
            ]
          },
          "valueInUtc": {
            "nullable": true,
            "oneOf": [
              {
                "$ref": "#/components/schemas/DateTimeUtc1"
              }
            ]
          }
        }
      },
      "TimeZoneReference1": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "uri": {
            "type": "string",
            "format": "uri",
            "nullable": true
          },
          "displayText": {
            "type": "string",
            "nullable": true
          },
          "offsetDisplayText": {
            "type": "string",
            "nullable": true
          },
          "ianaName": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "DateTimeUtc1": {
        "type": "object",
        "description": "Represents a point in time in UTC with millisecond precision.",
        "additionalProperties": false,
        "properties": {
          "year": {
            "type": "integer",
            "description": "The year component of the UTC date and time.",
            "format": "int32"
          },
          "month": {
            "type": "integer",
            "description": "The month component of the UTC date and time (1-12).",
            "format": "int32"
          },
          "day": {
            "type": "integer",
            "description": "The day component of the UTC date and time (1-31).",
            "format": "int32"
          },
          "hour": {
            "type": "integer",
            "description": "The hour component of the UTC date and time (0-23).",
            "format": "int32"
          },
          "minute": {
            "type": "integer",
            "description": "The minute component of the UTC date and time (0-59).",
            "format": "int32"
          },
          "second": {
            "type": "integer",
            "description": "The second component of the UTC date and time (0-59).",
            "format": "int32"
          },
          "millisecond": {
            "type": "integer",
            "description": "The millisecond component of the UTC date and time (0-999).",
            "format": "int32"
          }
        }
      },
      "KeyValue1": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "keyUri": {
            "type": "string",
            "format": "uri",
            "nullable": true
          },
          "value": {
            "nullable": true,
            "oneOf": [
              {
                "$ref": "#/components/schemas/SettingsValue2"
              }
            ]
          }
        }
      },
      "ScriptRevision1Array": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/ScriptRevision1"
        }
      }
    },
    "securitySchemes": {
      "bearer": {
        "type": "http",
        "scheme": "bearer"
      }
    }
  },
  "security": [
    {
      "bearer": []
    }
  ]
}