prospects
Update prospect field values
Sets or updates the value of one or more fields on a prospect profile. To update a single field, provide <code>fieldId</code> and <code>attributeValue</code>. To update multiple fields in one request, provide an <code>attributes</code> array where each item contains a <code>fieldId</code> and the new value. Use the field IDs returned by the GET /fields endpoint.
post/v1/prospects/{prospectId}/attribute
Request
- Base URLhttps://developer.saleshandy.com (the document declares no server; this is the origin it was published from)
- AuthAPI key in header x-api-key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
prospectIdstring required
Public prospect ID returned by prospect read/list APIs.
Request body
Example request
{
"fieldId": "1qPB1GBBwD",
"attributeValue": "Smith",
"attributes": [
{
"fieldId": "BVaD1mKgzo",
"attributeValue": "John"
},
{
"fieldId": "1qPB1GBBwD",
"attributeValue": "Smith"
}
]
}Response
Prospect attribute updated successfully
unknown required
Example response
{
"message": "Prospect attribute updated successfully",
"payload": {
"results": [
{
"fieldId": "Vj9kLp2Q",
"success": true
},
{
"fieldId": "r8PqN2xA",
"success": true
},
{
"fieldId": "INVALIDxx",
"success": false
}
]
}
}Changes
No recorded changes to this operation across all 4 revisions of this API.