Replace a call entry
Completely replaces the writable contents of an existing call record for the company identified by X-Client-Code. This is a full replacement, not a partial update: omitted nullable fields are cleared, and the submitted contracts replace all stored contract relationships. Orion returns 404 Not Found when the specified record does not exist.
The request must include callerName and a valid active callerType. Lookup values and contract call types follow the same resolution and defaulting rules described for creation.
Orion determines the acting user from the configured token identity claims. If none of these claims is present, Orion uses the trimmed userName from the request body to identify the caller in machine-to-machine scenarios.
X-Correlation-Id makes the replacement idempotent for at least 24 hours. A successful replacement or completed identical replay returns 200 OK; replays also include X-Idempotent-Replay: true and do not apply the replacement again. Reusing the ID for different content or while the original request is still running returns 409 Conflict.
This operation does not support PATCH, ETags, If-Match, or optimistic concurrency.
Path Parameters
Headers
Required tenant selector. Trimmed and resolved case-insensitively to a canonical configured tenant before FGA authorization; missing, blank, or unknown values return 400.
Match pattern:^[A-Za-z]{3,4}$
>= 3 characters<= 4 characters
Example:ABCD
Required trimmed, nonblank idempotency key, maximum 100 characters. Scoped by canonical tenant, operation, and resource identity; clients must generate operation-unique values.
Match pattern:^[A-Za-z0-9._:-]+$
>= 1 characters<= 100 characters
Example:call-entry-create-123
Body
Body
Full replacement payload. Omitted nullable fields are cleared; contracts replace the stored collection. Unknown JSON properties remain permissive.
CallEntryWriteRequest
Full-field name-based request shared by POST and PUT. Tenant selection and authorization never use payload userName.
Conditional interim M2M actor. Ignored when a configured token username claim exists; otherwise trimmed, opaque, required, and limited to 255 characters.
Match pattern:^[^\u0000-\u001F\u007F]+$
>= 1 characters<= 254 characters
Optional contracts; missing, null, and empty are equivalent. Contract and call-type order is non-semantic for idempotency.
Show Child Parameters
Required active caller-type name, trimmed and matched case-insensitively to its canonical tenant value.
Match pattern:^[A-Za-z0-9 &'/-]+$
>= 1 characters<= 50 characters
Canonical root call-type name. Required without contracts; otherwise supplies an inheritable default. If absent, every contract must supply at least one call type.
Match pattern:^[A-Za-z0-9 &'/-]+$
>= 1 characters<= 50 characters
Optional active product-type name resolved to its canonical tenant value.
Match pattern:^[A-Za-z0-9 &'/-]+$
>= 1 characters<= 50 characters
>= 0<= 255
Match pattern:^[A-Za-z0-9 &'/-]+$
>= 1 characters<= 7000 characters
Allowed values:Not OfferedTakenNot Taken
Match pattern:^[A-Za-z0-9 &'/-]+$
>= 1 characters<= 10 characters
Required caller identity. Trimmed and limited to 500 characters.
Match pattern:^[A-Za-z ,.'-]+$
>= 1 characters<= 500 characters
Match pattern:^\+?[0-9() .-]+$
>= 1 characters<= 20 characters
Match pattern:^[A-Za-z0-9,-]+$
>= 1 characters<= 200 characters
Optional active transaction-type name resolved to its canonical tenant value.
Match pattern:^[A-Za-z0-9 &'/-]+$
>= 1 characters<= 50 characters
Match pattern:^[A-Za-z0-9._:-]+$
>= 1 characters<= 50 characters
Match pattern:^[A-Za-z0-9 &'/-]+$
>= 1 characters<= 7000 characters
Match pattern:^[A-Za-z0-9,-]+$
>= 1 characters<= 50 characters
Match pattern:^[A-Za-z0-9._:/-]+$
>= 1 characters<= 50 characters
Response
Response
OK. First full replacement or identical completed replay; a replay does not apply the replacement again.
CallEntry
>= 1 characters
>= 1 characters
Show Child Parameters
Authentication
Path Parameters
Headers
Body
Get a call entry
Retrieves one complete CallEntry by its ID. The caller must have read access to the company that owns the record.
Identify the company with X-Client-Code or the backward-compatible clientCode query parameter. At least one is required. If both are supplied with different values, the query parameter takes precedence. Orion returns 404 Not Found when the record does not exist in the selected company.
Query Parameters
Selects one company. Takes precedence over X-Client-Code if both are supplied. If neither is supplied, search includes every company the caller is authorized to read; get-by-ID requires at least one tenant selector.
Example:ABCD
Path Parameters
Headers
Preferred tenant selector for new consumers. Optional only for legacy GET compatibility. If query clientCode is also supplied and conflicts after normalization, the query value wins and the conflict is logged.
Match pattern:^[A-Za-z]{3,4}$
>= 3 characters<= 4 characters
Example:ABCD
Response
Response
OK
CallEntry
>= 1 characters
>= 1 characters
Show Child Parameters
Authentication
Path Parameters
Query Parameters
Headers
CallEntry
object>= 1 characters
>= 1 characters
Show Child Parameters
CallEntryContract
object>= 1 characters