Create a new entity for a team.
cURL
curl --request POST \ --url https://public.api.serval.com/v2/entities \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "teamId": "<string>", "entityTypeId": "<string>", "key": "<string>", "name": "<string>", "fieldValues": [ { "fieldId": "<string>", "fieldKey": "<string>", "value": 123 } ] } '
{ "data": { "id": "<string>", "key": "<string>", "name": "<string>", "number": 123, "teamId": "<string>", "teamPrefix": "<string>", "entityTypeId": "<string>", "entityTypeKey": "<string>", "createdByUserId": "<string>", "updatedByUserId": "<string>", "createdAt": "2023-11-07T05:31:56Z", "updatedAt": "2023-11-07T05:31:56Z", "deletedAt": "2023-11-07T05:31:56Z", "fieldValues": [ { "fieldId": "<string>", "fieldKey": "<string>", "fieldName": "<string>", "dataType": "DATA_TYPE_UNSPECIFIED", "value": 123, "setByUserId": "<string>", "setByIngestionConfigId": "<string>" } ], "sourceAppInstanceIds": [ "<string>" ], "sharedMetadata": { "sourceTeamId": "<string>", "sourceTeamName": "<string>" } } }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
The ID of the team.
The ID of the entity type.
The unique key for the entity.
The name of the entity.
The field values for the entity.
Show child attributes
Success
The created entity.
Was this page helpful?