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": [
    {
      "boolValue": true,
      "entityRefValue": "<string>",
      "enumValue": "<string>",
      "numberValue": 123,
      "textValue": "<string>",
      "timestampValue": "2023-11-07T05:31:56Z",
      "userRefValue": "<string>"
    }
  ]
}
'
{
  "data": {
    "id": "<string>",
    "teamId": "<string>",
    "entityTypeId": "<string>",
    "key": "<string>",
    "name": "<string>",
    "number": 123,
    "createdByUserId": "<string>",
    "updatedByUserId": "<string>",
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z",
    "document": "<string>",
    "entityTypeKey": "<string>",
    "entitySchemaKey": "<string>",
    "entitySchemaId": "<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

The name of the entity.

fieldValues
EntityFieldValue · object[]

The field values to update.

Response

Success

data
data · object

The updated entity.