Create a contract

POST {{baseUrl}}/api/v1/contracts

This API creates a contract in your helpdesk.

OAuth Scope

  • Desk.settings.CREATE

Attributes

Attribute NameData TypeDescription
associatedSLAId (required)<long>
ID of the SLA associated with the contract
accountId (required)<long>
ID of the account associated with the contract
departmentId (required)<long>
ID of the department to which the contract belongs
productId<long>
ID of the product associated with the contract
contractNumber<string>
max chars : 50
Serial number of the contract
notificationAgentIds<list>
List of agents to be notified
notifyBefore<int>
Number of days before endDate when notifications about contract expiry must be sent to the agents concerned
startDate (required)<date>
Date from which the contract is valid
endDate<date>
Date until which the contract is valid
ownerId (required)<long>
ID of the contract owner
contractName (required)<string>
max chars : 80
Name of the contract
description<string>
max chars : 65535
A short description of the contract
customFields<list>
User-defined fields associated with the contract
cf<list>
User-defined fields associated with the contract
sla<list>
SLA fields associated with the contract
account<list>
Account fields associated with the contract
product<list>
Product fields associated with the contract

HEADERS

KeyDatatypeRequiredDescription
Authorizationstring

RESPONSES

status: OK

{&quot;associatedSLAId&quot;:&quot;10000000062047&quot;,&quot;modifiedTime&quot;:&quot;2018-07-24T07:31:57.075Z&quot;,&quot;product&quot;:{&quot;id&quot;:&quot;500000001290&quot;,&quot;productName&quot;:&quot;Desk&quot;},&quot;cf&quot;:{&quot;cf_mycustomfield1&quot;:&quot;Some Value&quot;},&quot;productId&quot;:null,&quot;endDate&quot;:&quot;2019-07-23&quot;,&quot;departmentId&quot;:&quot;10000000013228&quot;,&quot;notifyBefore&quot;:&quot;3&quot;,&quot;contractNumber&quot;:&quot;9495&quot;,&quot;description&quot;:&quot;My Description&quot;,&quot;sla&quot;:{&quot;name&quot;:&quot;Gold SLAs&quot;,&quot;id&quot;:&quot;5000000007671&quot;},&quot;ownerId&quot;:&quot;10000000012816&quot;,&quot;notificationAgentIds&quot;:[&quot;10000000012816&quot;],&quot;accountId&quot;:&quot;10000000012985&quot;,&quot;createdBy&quot;:&quot;10000000012816&quot;,&quot;notifyOn&quot;:&quot;2019-07-20&quot;,&quot;createdTime&quot;:&quot;2018-07-24T07:31:57.075Z&quot;,&quot;contractName&quot;:&quot;MyContractName&quot;,&quot;modifiedBy&quot;:&quot;10000000012816&quot;,&quot;id&quot;:&quot;10000000082016&quot;,&quot;startDate&quot;:&quot;2018-07-23&quot;,&quot;account&quot;:{&quot;website&quot;:&quot;https://www.zoho.com&quot;,&quot;accountName&quot;:&quot;Zoho&quot;,&quot;id&quot;:&quot;500000008909&quot;}}