Deal

Create a new deal

POST
http://localhost:3000/api/deals

Body

application/json
selectobject
relationsobject
whereobjectrequired
orderobject
withDeletedboolean
takenumber[0, 100]
skipnumber>= 0

Response

201CreatedDeal

The deal has been successfully created.

Response fields application/json
deletedAtstring<date-time>
Example
2018-11-21T06:20:32.232Z
createdAtstring<date-time>

The creation timestamp of the entity.

Example
2018-11-21T06:20:32.232Z
updatedAtstring<date-time>

The last update timestamp of the entity.

Example
2018-11-21T06:20:32.232Z
idstring
isActivebooleantrue
isArchivedbooleanfalse
archivedAtstring<date-time>
Example
2018-11-21T06:20:32.232Z
tenantIdstring
organizationIdstring
titlestringrequired
probabilitynumberrequired
stageIdstringrequired
clientIdstring
400Bad Request

Invalid request data.

401Unauthorized

Unauthorized

403Forbidden

Forbidden

500Internal Server Error

Internal server error.

Authorization

bearerhttp (bearer) in header

Enter JWT token

Copyright © 2023-Present Ever Co. LTD.Docs by Sourcey