Skip to main content
PUT
/
v2
/
entities
/
{id}
Update Entity
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>"
    }
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

The ID of the entity.

Body

application/json
name
string | null

The new name for the entity.

fieldValues
EntityFieldValueInput · object[]

The field values to set. Only provided fields are updated; omitted fields are untouched.

Response

Success

data
data · object

The updated entity.