curl --location 'https://marketplacerest.perenso.net/v1/people/bulk' \
--header 'Content-Type: application/json' \
--data-raw '{
"persons": [
{
"id": "REP-204",
"firstName": "Jordan",
"lastName": "Ellis",
"personTypeId": "SALES_REP",
"phone": "0400 555 204",
"email": "jordan.ellis@harbourside.example",
"status": "ACTIVE",
"customFields": {
"TERRITORY": {
"type": "TEXT",
"value": "Inner West"
}
},
"customerAssociation": {
"all": false,
"byRule": {
"selectionIds": [
"NSW-METRO"
]
},
"byId": [
"CUST-1001"
]
},
"productAssociation": {
"all": true
},
"roles": [
"Sales Rep"
]
},
{
"id": "REP-206",
"firstName": "Sam",
"lastName": "Okafor",
"personTypeId": "SALES_REP",
"roles": [
"Area Manager"
]
}
]
}'{
"successful": [
"REP-204"
],
"successfulItems": [],
"failed": [
{
"id": "REP-206",
"message": "Area Manager is not a valid Role"
}
]
}