Create new subcontract
POST/api/v2/Contracts/Subcontracts
Create new subcontract
Request
- application/json
Body
required
- BillableFlags
Name stringnullablerequired
Possible values: <= 250 characters
Code stringnullable
Possible values: <= 15 characters
Contract guidrequired
Description stringnullable
Possible values: <= 500 characters
EndDate date-timenullable
Billable
object
nullable
oneOf
string
Possible values: [None
, Billable
, ChangeAllowed
, BillableChangeAllowed
]
Note stringnullable
HoursPlanned int64nullable
CustomFields objectnullable
Example:
{"MyCustomField":"value","MyNestedObject":{"MyNestedProperty":"value"}}
ExternalKey stringnullable
Possible values: <= 100 characters
States string[]nullable
ResponsiblePerson guidnullable
CompletionDate date-timenullable
Responses
- 201
- 400
Successfully Inserted
- application/json
- Schema
- Example (from schema)
Schema
Guid guidnullable
ExternalKey stringnullable
{
"Guid": "string",
"ExternalKey": "string"
}
Error
- application/json
- Schema
- Example (from schema)
Schema
Error
object
required
Code stringnullable
Message stringnullable
{
"Error": {
"Code": "string",
"Message": "string"
}
}
Loading...