Back to Project Sub Contract

POST Method Details for TimeMaterialBasicContractCreate.

Create Time and Material Basic contract for a specified project

Definition

https://app[x].timelog.com/[account name]/api/v{version}/contract/create-time-material-basic-contract

Parameters

  • contractModel object
    • BudgetExpensesAmount number Gets or sets the budget expenses amount
    • BudgetTravelAmount number Gets or sets the budget travel amount
    • BudgetWorkAmount number Gets or sets the budget work amount
    • BudgetWorkHour number Gets or sets the budget work hour
    • CompletionNotificationPercentage number Gets or sets the completion notification percentage
    • ContractName string Gets or sets the contract name
    • ContractOwnerUserID integer Gets or sets the userID of the contract owner
    • ContractStatus integer Gets or sets the contract status
    • ContractTypeID integer Gets or sets the contract type ID
    • HasBudgetOverrunNotification boolean Gets or sets whether the contract has budget overrun notification
    • HasCompletionNotification boolean Gets or sets whether the contract has completion notification
    • IsDefaultExpenses boolean Gets or sets whether the expenses are default
    • IsMileageBillable boolean Gets or sets whether the mileage is billable
    • ProjectID integer Gets or sets the project ID
    {
      "BudgetExpensesAmount": 0.0,
      "BudgetTravelAmount": 0.0,
      "BudgetWorkAmount": 0.0,
      "BudgetWorkHour": 0.0,
      "CompletionNotificationPercentage": 0.0,
      "ContractName": "",
      "ContractOwnerUserID": 0,
      "ContractStatus": 0,
      "ContractTypeID": 0,
      "HasBudgetOverrunNotification": false,
      "HasCompletionNotification": false,
      "IsDefaultExpenses": false,
      "IsMileageBillable": false,
      "ProjectID": 0
    }
  • version string The requested API version

Returns

  • [200] Contract was created successfully
  • [401] Invalid authentication token
  • [500] Contract could not be created
    • Code integer Gets the code.
    • Details array Gets the details.
    • Message string Gets the message.
    • Parameters string Gets the parameters.
    • Url string Gets the URL.
    {
      "Code": 0,
      "Details": "",
      "Message": "",
      "Parameters": "",
      "Url": ""
    }