{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/guidecx/json-schema/guidecx-create-project-request-schema.json",
  "title": "CreateProjectRequest",
  "x-generated": "2026-12-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/guidecx-openapi-v2.json#/components/schemas/CreateProjectRequest",
  "properties": {
    "cashValue": {
      "type": "number",
      "format": "double",
      "description": "The Cash Value of a project"
    },
    "customerUsers": {
      "items": {
        "$ref": "#/$defs/CustomerUserInput"
      },
      "type": "array",
      "description": "Array with a list of Customer Users (Existing and New)"
    },
    "customer": {
      "properties": {
        "domain": {
          "type": "string",
          "description": "Domain of the customer organization. Omit \"www.\""
        },
        "name": {
          "type": "string",
          "description": "Name of the customer organization"
        }
      },
      "required": [
        "domain",
        "name"
      ],
      "type": "object",
      "description": "The Customer of your project"
    },
    "customFields": {
      "items": {
        "$ref": "#/$defs/CustomFieldInput"
      },
      "type": "array",
      "description": "Array of Custom Fields on the project"
    },
    "startOn": {
      "type": "string",
      "format": "date-time",
      "description": "The currently defined “Start Date” of the project (a PM/Admin can change this in GUIDEcx via Edit Project)"
    },
    "endOn": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "The project Planned End Date"
    },
    "externalId": {
      "type": [
        "string",
        "null"
      ],
      "description": "A reference ID to associate a GUIDEcx project to an external project.\nThis ID is displayed in the project details in the GUIDEcx app and is editable by project managers and admins.\nFor an API-only reference ID, refer to the optional `referringObjectId` field"
    },
    "name": {
      "type": "string",
      "description": "Name of the Project"
    },
    "projectManagerEmail": {
      "type": "string",
      "description": "The email address of the Project Manager"
    },
    "templateSkus": {
      "$ref": "#/$defs/TemplateSkus"
    },
    "referringObjectId": {
      "type": [
        "string",
        "null"
      ],
      "description": "Reference to an external system, provided in the request to POST /projects.\nThis field is helpful when building custom integrations with GUIDEcx.\nFor GUIDEcx-managed integrations, refer to integrationReferenceId."
    },
    "billRate": {
      "anyOf": [
        {
          "$ref": "#/$defs/FixedFeeBillType"
        },
        {
          "$ref": "#/$defs/FixedRateBillType"
        },
        {
          "$ref": "#/$defs/VariableRateBillType"
        }
      ],
      "nullable": true,
      "description": "This field is deprecated and will be removed in a future version.\n\nIf you enable implementation profitability calculations, GUIDEcx will estimate the project profitability\nby subtracting internal cost to run the project from the project revenue. This feature requires all internal\nusers to have a fully loaded cost inputted in the company details page.\n\nNote: Time tracking must be enabled for your organization."
    },
    "billingProfile": {
      "properties": {
        "secondaryDollars": {
          "type": "number",
          "format": "double",
          "description": "The amount for the project allotted hours (for a Fixed Fee Secondary Projects Only)"
        },
        "allottedHours": {
          "type": "number",
          "format": "double",
          "description": "The amount of allotted hours"
        },
        "dollars": {
          "type": "number",
          "format": "double",
          "description": "The amount for the project (for a Fixed Fee Projects Only)"
        },
        "name": {
          "type": "string",
          "description": "Name of the Billing Profile"
        }
      },
      "required": [
        "name"
      ],
      "type": "object",
      "description": "If you provide us with the name of a preexisting billing profile from your organization,\nwe'll automatically set up all necessary billing settings to the project your creating.\nYou can also override `allottedHours`, as well as `dollars` and `secondaryDollars`\n(flat fee amounts, if different than the default amount set in your billing profile)\nfor fixed fee projects to better customize the settings per project.\n\nNote: time tracking must be enabled for your organization, and you must have created at least one billing profile."
    },
    "requireTimeEntry": {
      "type": "boolean",
      "description": "Note: Time tracking must be enabled for your organization, for this parameter to take effect. We do not throw an error if you provide a value for `requireTimeEntry` and your organization does not have time tracking enabled. Please contact your GUIDEcx representative for more details about time tracking."
    }
  },
  "required": [
    "name",
    "projectManagerEmail"
  ],
  "type": "object",
  "additionalProperties": false,
  "$defs": {
    "CustomFieldInput": {
      "properties": {
        "customFieldId": {
          "type": "string",
          "description": "The id of the custom field"
        },
        "value": {
          "type": "string",
          "description": "The desired value for the custom field"
        }
      },
      "required": [
        "customFieldId",
        "value"
      ],
      "type": "object",
      "additionalProperties": false
    },
    "CustomerUserInput": {
      "properties": {
        "firstName": {
          "type": "string",
          "description": "The first name of the Customer User"
        },
        "lastName": {
          "type": "string",
          "description": "The last name of the Customer User"
        },
        "email": {
          "type": "string",
          "description": "The email address of the Customer User"
        }
      },
      "required": [
        "email"
      ],
      "type": "object",
      "additionalProperties": false
    },
    "FixedFee": {
      "type": "string",
      "enum": [
        "fixed_fee"
      ],
      "nullable": false,
      "description": "These types are only here for documentation purposes as the actual implementation\nof this controller is in the api.core service"
    },
    "FixedFeeBillType": {
      "description": "You charge a fixed fee regardless of the number of hours you spend.\n\ntype: `fixed_fee`",
      "properties": {
        "type": {
          "$ref": "#/$defs/FixedFee"
        },
        "amount": {
          "type": "number",
          "format": "double"
        },
        "hours": {
          "type": "number",
          "format": "double"
        }
      },
      "required": [
        "type",
        "amount"
      ],
      "type": "object",
      "additionalProperties": false
    },
    "FixedRate": {
      "type": "string",
      "enum": [
        "fixed_rate"
      ],
      "nullable": false
    },
    "FixedRateBillType": {
      "description": "You charge regularly during the project based on the number of hours\nyou spend. This option requires a time category\n\ntype: `fixed_rate`",
      "properties": {
        "type": {
          "$ref": "#/$defs/FixedRate"
        },
        "timeCategoryId": {
          "type": "string",
          "description": "Organization time category to use for this project hourly rate"
        }
      },
      "required": [
        "type",
        "timeCategoryId"
      ],
      "type": "object",
      "additionalProperties": false
    },
    "TemplateSkus": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "description": "SKUs of the templates to be used in the project.\nMaximum number of templateSkus allowed is 5, though this may change at any time"
    },
    "VariableRate": {
      "type": "string",
      "enum": [
        "variable_rate"
      ],
      "nullable": false
    },
    "VariableRateBillType": {
      "description": "You charge regularly during the project based on category rates\ndefined on your project tasks. You must turn categories on in the\nTime Tracking Settings.\n\ntype: `variable_rate`",
      "properties": {
        "type": {
          "$ref": "#/$defs/VariableRate"
        }
      },
      "required": [
        "type"
      ],
      "type": "object",
      "additionalProperties": false
    }
  }
}