Update an existing entity.
cURL
curl --request PUT \ --url https://public.api.serval.com/v2/entities/{id} \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "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 entity.
The new name for the entity.
The field values to set. Only provided fields are updated; omitted fields are untouched.
Show child attributes
Success
The updated entity.
Was this page helpful?