Create Process
POST
/v1/ext/procedure/{procedureShortId}/processThis API allow you to create a single process. Examples of a process are models like Lead, Ticket and Fieldvisit
Attribute specific data
Depending on your attribute type you have to pass the value in the specific format in the data field.
Attribute Type | Data Format |
---|---|
External Object | Pass a json object exactly matching the external object schema |
Photo | Pass a photo id generated after uploading a photo via the upload photo API |
Request
should be an object. keys should be attribute short ids. value should denote the update value for the provided attribute
the record for which this process is getting created. For example lead process usually get created for a customer record. So you need to define the record info (usually data) inside the record json
the status of the process - can be one of OPEN, COMPLETED or CANCELLED.
the list of possible states depends on the procedure to which this process belongs
accepts a unix epoch timestamp in milliseconds. This value updates the nextActionAt field of a process
Username or id of the user
{
"data": {
"firstname": "Ted",
"lastname": "Mosby",
"score": 5
},
"record": {
"data": {
"phone_number": "7701214822",
"email": "ted.mosby@yahoo.com"
}
},
"status": "COMPLETED",
"state": "CONVERTED",
"nextActionAt": 1618558867539,
"assignedTo": "john@paisapay.com"
}
Request samples
Responses
{}