Skip to main content
PUT
/
api
/
clients
/
sample_entities
/
{id}
Updates an existing sample entity with the provided information.
curl --request PUT \
  --url https://api.example.com/api/clients/sample_entities/{id} \
  --header 'Content-Type: application/json' \
  --data '{}'
{
  "isSuccess": true,
  "isFailure": false,
  "error": null,
  "value": {
    "id": 42,
    "name": "Example"
  }
}

Path Parameters

id
integer<int64>
required

Identifier of the sample entity to update.

Query Parameters

api-version
string | null

Body

application/json

Payload describing the new entity values.

Describes the payload required to update an existing sample entity.

id
integer<int64>

Identifier of the sample entity to update.

Example:

42

code
string

Updated business code associated with the sample entity.

Example:

"SAMPLE-002"

type
enum<string>

Updated type of the sample entity.

Available options:
FirstType,
SecondType
Example:

"SecondType"

isEnabled
boolean

Indicates whether the sample entity remains enabled after the update.

Example:

false

Response

200 - application/json

Returned when the entity is updated successfully.

Wrapper for API operation results containing success status, error information, and return value.

isSuccess
boolean

True if the operation completed successfully, false otherwise.

Example:

true

isFailure
boolean

True if the operation failed, false otherwise.

Example:

false

error
object

Error information returned when the operation fails.

Example:
{
"code": "ValidationError",
"message": "The request parameters failed validation.",
"info": [
"The Name field is required.",
"The Id field must be greater than 0."
]
}
value
object

The result value returned when the operation is successful.