Create Party
Use the following details to add a Party using the REST interface:
HTTP Method
POST
Endpoint URL
See the REST Service Endpoint topic for more details.
Resource
/restapi/v1/party
Request Parameters
Provide values for the following parameters:
Parameter Name | Data Type | Mandatory |
---|---|---|
createdBy | string | No |
createdOn | dateTime | No |
deleted | boolean | No |
id | string | No |
lastUpdatedBy | string | No |
locked | boolean | No |
name | string | No |
ownedBy | string | No |
parentPartyId | string | No |
ref | string | No |
sid | No | |
status | string | Yes |
subType | string | No |
type | string | Yes |
updatedOn | dateTime | No |
version | No | |
batch | string | No |
Request Model
Media Type: application/json
{ "version": 0, "type": "string", "id": "string", "status": "string", "subType": "string", "tenantId": "string", "batch": { "id": "string", "sid": 0 }, "updatedOn": "2022-08-03T17:33:14.776Z", "ref": "string", "sid": 0, "createdBy": "string", "locked": true, "createdOn": "2022-08-03T17:33:14.776Z", "ownedBy": "string", "lastUpdatedBy": "string", "deleted": true, "parentPartyId": "string", "name": "string" }
Response Model
Correct response model: { "result": { "code": { "severity": "Success", "message": "Success.", "code": "0000" }, "params": [], "message": "Success." }, "data": { "version": 1, "type": "string", "id": "string", "status": "string", "subType": string, "tenantId": "string", "batch": string, "updatedOn": "2022-07-255T04:58:44.226+0000", "ref": string, "createdBy": "string", "locked": false, "createdOn": "2022-07-25T04:58:44.226+0000", "ownedBy": "string", "lastUpdatedBy": "string", "deleted": false, "parentPartyId": string, "name": "string" }, "startTimestampMS": 1658725124201, "duration": 102 }