Skip to content
Navigation

Create a manual table row

Adds one row to one of your active manual (custom) analytical tables. cells maps declared column keys to values: number (finite number), checkbox (boolean), date (YYYY-MM-DD), text, single_select or url (string up to 4000 bytes), multi_select (up to 50 strings of 200 bytes), json (up to 4000 bytes), or null. Undeclared keys are refused. At most 200 rows per table. Values are declared by a person (provenance.kind manual), never computed clinical facts. Use updateAnalyticalTableCell to change a row later. Returns the stored row (kind row, parentId = the table). Idempotency: the same requestKey with the same body returns the stored result; a different body with that key fails with IDEMPOTENCY_CONFLICT. After COMMIT_UNCERTAIN, retry with the same key. Failures: NOT_FOUND when the table does not exist, is not yours, is inactive or is a query table; CONFLICT when the row id already exists; RESOURCE_LIMIT_EXCEEDED at 200 rows or for a row larger than about 8 KiB; INVALID_INPUT when a value does not fit its column; ACCESS_DENIED when the table changed meanwhile (read it again), the token lacks ambar:patients:read or ambar:patients:write, or you lack clinical write access or an analytics authoring grant.

POST
https://api-ambar.getarbol.com/v1/analytical-tables/row-create

Authorization

  • bearer_auth
    HTTP Bearer (JWT)
    required
    Authorization: Bearer <token>

Request body JSON required

  • cells
    map of
    unknown
    required

    Values by declared column key (at most 40). Missing columns read as null; each value must fit its column type or be null.

  • id
    string
    required

    New row identifier chosen by the caller: anl_ followed by 32 lowercase hex characters.

  • requestKey
    string
    required

    Idempotency key: 32 lowercase hex characters. Reuse it only to retry this exact request.

  • tableId
    string
    required

    The manual table (anl_ + 32 lowercase hex); it must be yours and active.

Returns

200

JSON
  • data
    object
    required

    Result of reading or writing one analytics workspace item.

    • item
      required

      One of the following:

      • WorkspaceView
        • createdAt
          string
          required

          Creation time of the item (RFC 3339, UTC).

        • definition
          unknown
          required

          Decrypted definition; its shape depends on kind (see the save operation of each kind).

        • id
          string
          required

          Item identifier: anl_ followed by 32 lowercase hex characters.

        • kind
          string
          required

          board, indicator_publication, indicator_baseline, table or row.

        • ownerActorId
          string
          required

          Your actor identifier; items are private to their owner.

        • provenance
          required

          One of the following:

          • ManualProvenance
          • null
        • retentionUntil
          string
          required

          Time after which this version is deleted (RFC 3339, UTC).

        • rowGeneration
          string
          required

          For tables, a counter raised by every row write (decimal string); 0 otherwise.

        • scopeId
          string
          required

          patient for care_registry; the contract identifier for care_contract.

        • scopeKind
          string
          required

          care_registry (the patient registry) or care_contract (one contract).

        • status
          string
          required

          active, or inactive once deactivated or deleted.

        • updatedAt
          string
          required

          Last change time of the item (RFC 3339, UTC).

        • version
          string
          required

          Version of this definition (decimal string, starting at 1).

        • linkedId
          optional
          string | null

          Publication the baseline points to, for indicator_baseline; null otherwise.

        • parentId
          optional
          string | null

          Table the item belongs to, for row items; null otherwise.

        • tableMode
          optional
          string | null

          For table: custom (rows entered by hand) or query (rows computed by saved SQL); null for other kinds.

      • null
  • metadata
    object
    required

    Request metadata, including the request identifier.

    • requestId
      string
      required

      Server-assigned request identifier (opaque). Quote it when reporting a problem.

  • success
    true
    required

    Always true in a success envelope.

400

Failure. The error.code is one of:

  • INVALID_INPUT: Do not retry unchanged. Fix the request against the operation's schema.
  • USER_PAYMENT_REFUSED: Check the collection basis and caps in details.paymentProblem before recording the payment.
  • INVALID_INVENTORY: Do not retry unchanged. Fix the request against the operation's schema.
  • ANALYTICS_QUERY_REJECTED: Rewrite the query as one read-only statement over the published catalog.
  • MINOR_UNIT_SCALE_MISMATCH: Write each component's money in the minor units of its currency (minorUnitScale 2 for COP, PEN, MXN and BRL; 0 for CLP) and propose again.
JSON
  • error
    object
    required

    The stable failure code, its message and optional details.

    • code
      UNAUTHORIZED
      or
      AUTHENTICATION_UNAVAILABLE
      or
      ACCESS_DENIED
      or
      MODULE_DISABLED
      or
      INVALID_INPUT
      or
      USER_PAYMENT_REFUSED
      +33 more
      required

      Stable failure code. Branch on this value, never on message.

      • UNAUTHORIZED (HTTP 401): A valid access token is required. Obtain a fresh access token and repeat the request.
      • AUTHENTICATION_UNAVAILABLE (HTTP 503): Identity verification is temporarily unavailable. Retry later with backoff; for a write, reuse the same requestKey.
      • ACCESS_DENIED (HTTP 403): Access denied. Do not retry. The signed-in actor lacks this purpose or grant; ask an administrator.
      • MODULE_DISABLED (HTTP 403): This operation belongs to a module the organization does not use. Do not retry. The organization does not use the module in details.module (getSession lists the ones it uses); an administrator turns it on with setOrganizationModules.
      • INVALID_INPUT (HTTP 400): The request does not match the documented contract. Do not retry unchanged. Fix the request against the operation's schema.
      • USER_PAYMENT_REFUSED (HTTP 400): The collection exceeds the applicable payment rules. Check the collection basis and caps in details.paymentProblem before recording the payment.
      • INVALID_INVENTORY (HTTP 400): The content does not match the selected inventory contract. Do not retry unchanged. Fix the request against the operation's schema.
      • ANALYTICS_QUERY_REJECTED (HTTP 400): Use one read-only query over the admitted catalog and its supported functions. Rewrite the query as one read-only statement over the published catalog.
      • BODY_TOO_LARGE (HTTP 413): The request body exceeds the supported limit. Send a smaller body, or split the content into several requests.
      • NOT_FOUND (HTTP 404): The resource does not exist. Check the identifier. The record may not exist or may not be visible to this actor.
      • METHOD_NOT_ALLOWED (HTTP 405): The method is not supported for this resource. Use the HTTP method documented for this path.
      • CONFLICT (HTTP 409): The resource conflicts with its current state. Read the current state with the matching get operation, then decide again.
      • IDEMPOTENCY_CONFLICT (HTTP 409): The command key already identifies a different request. The requestKey was already used for a different request. Use a new key for a new action.
      • TRANSACTION_ABORTED (HTTP 409): The transaction rolled back without committing changes. Nothing was written. Retry the same request.
      • INVENTORY_INTEGRITY_CONFLICT (HTTP 409): The current build failed integrity verification. Do not retry. Report the integrity failure to an operator.
      • TEAM_PRIOR_UNRESOLVED (HTTP 409): Reconcile the existing team command before preparing another change. Reconcile the earlier team command (see details.commandId) before a new change.
      • COHORT_ACTIVE_REQUIRED (HTTP 409): Only an active cohort can create a new candidate snapshot. Read the current state with the matching get operation, then decide again.
      • COHORT_CUT_CHANGED (HTTP 409): The current cohort cut changed. Restart this read from the first page. Restart the paginated read from the first page.
      • COHORT_READ_REQUIRES_ACTIVE (HTTP 409): Only an active cohort has a current care-facts view. Read the current state with the matching get operation, then decide again.
      • COHORT_CUT_NEEDS_RECONCILIATION (HTTP 409): The cohort cut needs reconciliation before its care facts can be read. Read the current state with the matching get operation, then decide again.
      • PROGRAM_NEW_ASSESSMENT_REQUIRED (HTTP 409): Select a new eligible assessment recorded after the last participation change. Read the current state with the matching get operation, then decide again.
      • CONTRACT_CLOSED_WINDOW_CHANGE_UNSUPPORTED (HTTP 409): The proposed terms change component identities already fixed by an accepted close. Read the current state with the matching get operation, then decide again.
      • MINOR_UNIT_SCALE_MISMATCH (HTTP 400): A component's money is not in the minor units of its currency (ISO 4217). Write each component's money in the minor units of its currency (minorUnitScale 2 for COP, PEN, MXN and BRL; 0 for CLP) and propose again.
      • INVOICE_COMPONENT_AMBIGUOUS (HTTP 409): Invoice lines have no unique fee-for-service component. Route the lines in details.lineIds to their paying component, then request the proposal again. At most 100 identifiers are returned.
      • SITE_SUBSTITUTION_REFUSED (HTTP 409): The contract does not let this site serve for the contracted site as booked. Book at the contracted site, or at a site its contract lets serve for it on the appointment's day (listContractSites), recording what details.reason says is missing: the patient's acceptance or the payer's authorization.
      • RESOURCE_LIMIT_EXCEEDED (HTTP 422): This resource has reached its supported capacity. Do not retry. Reduce the request or archive records first.
      • MODULE_NOT_CONTRACTED (HTTP 422): The organization did not contract this module. Leave the module in details.module off: the organization did not contract it. Árbol adds it to the contract when the organization buys it.
      • MODULE_REQUIREMENT_MISSING (HTTP 422): This module needs one of the modules it requires to be on. Turn on, in the same request, one of the modules the module in details.module requires (getOrganizationModules lists them).
      • CAPABILITY_NOT_CONFIGURED (HTTP 422): This operation requires its governed native implementation before it can be activated. Do not retry. The capability is not enabled for this organization.
      • INSTALLATION_NOT_READY (HTTP 422): The installation cannot be activated: its app version is not certified or a credential its app declares is missing. Do not retry unchanged. Wait for a certified app version, record examples that cover every operation and change of a custom-http installation, or add the missing credentials to the deployment, then activate again.
      • EVIDENCE_NOT_READABLE (HTTP 422): Accepting evidence requires readable content and independent reporter provenance. Leave it pending until its source is readable. Leave the evidence pending until its source content is readable.
      • ANALYTICS_QUERY_LIMIT (HTTP 422): The query exceeded its bounded work, memory or output budget. Narrow the query. Narrow the query (filters, columns or range) and retry.
      • COMMIT_UNCERTAIN (HTTP 503): The commit outcome is unknown. Reconcile before retrying. The write may have happened. Repeat it with the same requestKey or read the record first.
      • DATABASE_UNAVAILABLE (HTTP 503): The database is unavailable. Retry later with backoff; for a write, reuse the same requestKey.
      • PIPELINE_UNAVAILABLE (HTTP 503): The pipeline is unavailable. Reconcile using the same request key. The write may have happened. Repeat it with the same requestKey or read the record first.
      • ASSISTANT_UNAVAILABLE (HTTP 503): The assistant is not available for this workspace. Do not retry. The capability is not enabled for this organization.
      • SERVICE_BUSY (HTTP 503): The service is handling its current request limit. Retry later with backoff; for a write, reuse the same requestKey.
      • INVALID_CONFIGURATION (HTTP 500): The request could not be completed. Retry once later; if it persists, report the requestId to support.
      • INTERNAL (HTTP 500): The request could not be completed. Retry once later; if it persists, report the requestId to support.
    • message
      string
      required

      Fixed English explanation for people; it may change without notice.

    • details
      optional
      object

      Extra data for the codes that need it; absent for every other code.

      • commandId
        optional
        string

        Identifier (tcm_ prefix) of the earlier team command to reconcile before retrying.

      • lineIds
        optional
        array of
        string

        Unassigned invoice lines that prevent a unique component proposal; at most 100.

      • module
        optional
        pgp
        or
        capitation
        or
        fee_for_service
        or
        results_payment
        or
        service_record
        or
        cac
        +11 more

        The module the failure is about, for example agenda.

      • paymentProblem
        optional
        rules_unavailable
        or
        not_collectable
        or
        not_for_this_person
        or
        basis_incomplete
        or
        moderator_fee_value
        or
        service_value_unavailable
        +3 more

        Why the collection was refused.

      • reason
        optional
        not_contracted
        or
        not_a_substitute
        or
        patient_acceptance_missing
        or
        payer_authorization_missing

        Why the booking's site was refused: not_contracted (the contracted site is not one of the contract that day), not_a_substitute (no substitution in force that day lets the site serve for it), patient_acceptance_missing or payer_authorization_missing (the substitution asks for them).

  • metadata
    object
    required

    Request metadata, including the request identifier.

    • requestId
      string
      required

      Server-assigned request identifier (opaque). Quote it when reporting a problem.

  • success
    false
    required

    Always false in a failure envelope.

401

Failure. The error.code is one of:

  • UNAUTHORIZED: Obtain a fresh access token and repeat the request.
JSON
  • error
    object
    required

    The stable failure code, its message and optional details.

    • code
      UNAUTHORIZED
      or
      AUTHENTICATION_UNAVAILABLE
      or
      ACCESS_DENIED
      or
      MODULE_DISABLED
      or
      INVALID_INPUT
      or
      USER_PAYMENT_REFUSED
      +33 more
      required

      Stable failure code. Branch on this value, never on message.

      • UNAUTHORIZED (HTTP 401): A valid access token is required. Obtain a fresh access token and repeat the request.
      • AUTHENTICATION_UNAVAILABLE (HTTP 503): Identity verification is temporarily unavailable. Retry later with backoff; for a write, reuse the same requestKey.
      • ACCESS_DENIED (HTTP 403): Access denied. Do not retry. The signed-in actor lacks this purpose or grant; ask an administrator.
      • MODULE_DISABLED (HTTP 403): This operation belongs to a module the organization does not use. Do not retry. The organization does not use the module in details.module (getSession lists the ones it uses); an administrator turns it on with setOrganizationModules.
      • INVALID_INPUT (HTTP 400): The request does not match the documented contract. Do not retry unchanged. Fix the request against the operation's schema.
      • USER_PAYMENT_REFUSED (HTTP 400): The collection exceeds the applicable payment rules. Check the collection basis and caps in details.paymentProblem before recording the payment.
      • INVALID_INVENTORY (HTTP 400): The content does not match the selected inventory contract. Do not retry unchanged. Fix the request against the operation's schema.
      • ANALYTICS_QUERY_REJECTED (HTTP 400): Use one read-only query over the admitted catalog and its supported functions. Rewrite the query as one read-only statement over the published catalog.
      • BODY_TOO_LARGE (HTTP 413): The request body exceeds the supported limit. Send a smaller body, or split the content into several requests.
      • NOT_FOUND (HTTP 404): The resource does not exist. Check the identifier. The record may not exist or may not be visible to this actor.
      • METHOD_NOT_ALLOWED (HTTP 405): The method is not supported for this resource. Use the HTTP method documented for this path.
      • CONFLICT (HTTP 409): The resource conflicts with its current state. Read the current state with the matching get operation, then decide again.
      • IDEMPOTENCY_CONFLICT (HTTP 409): The command key already identifies a different request. The requestKey was already used for a different request. Use a new key for a new action.
      • TRANSACTION_ABORTED (HTTP 409): The transaction rolled back without committing changes. Nothing was written. Retry the same request.
      • INVENTORY_INTEGRITY_CONFLICT (HTTP 409): The current build failed integrity verification. Do not retry. Report the integrity failure to an operator.
      • TEAM_PRIOR_UNRESOLVED (HTTP 409): Reconcile the existing team command before preparing another change. Reconcile the earlier team command (see details.commandId) before a new change.
      • COHORT_ACTIVE_REQUIRED (HTTP 409): Only an active cohort can create a new candidate snapshot. Read the current state with the matching get operation, then decide again.
      • COHORT_CUT_CHANGED (HTTP 409): The current cohort cut changed. Restart this read from the first page. Restart the paginated read from the first page.
      • COHORT_READ_REQUIRES_ACTIVE (HTTP 409): Only an active cohort has a current care-facts view. Read the current state with the matching get operation, then decide again.
      • COHORT_CUT_NEEDS_RECONCILIATION (HTTP 409): The cohort cut needs reconciliation before its care facts can be read. Read the current state with the matching get operation, then decide again.
      • PROGRAM_NEW_ASSESSMENT_REQUIRED (HTTP 409): Select a new eligible assessment recorded after the last participation change. Read the current state with the matching get operation, then decide again.
      • CONTRACT_CLOSED_WINDOW_CHANGE_UNSUPPORTED (HTTP 409): The proposed terms change component identities already fixed by an accepted close. Read the current state with the matching get operation, then decide again.
      • MINOR_UNIT_SCALE_MISMATCH (HTTP 400): A component's money is not in the minor units of its currency (ISO 4217). Write each component's money in the minor units of its currency (minorUnitScale 2 for COP, PEN, MXN and BRL; 0 for CLP) and propose again.
      • INVOICE_COMPONENT_AMBIGUOUS (HTTP 409): Invoice lines have no unique fee-for-service component. Route the lines in details.lineIds to their paying component, then request the proposal again. At most 100 identifiers are returned.
      • SITE_SUBSTITUTION_REFUSED (HTTP 409): The contract does not let this site serve for the contracted site as booked. Book at the contracted site, or at a site its contract lets serve for it on the appointment's day (listContractSites), recording what details.reason says is missing: the patient's acceptance or the payer's authorization.
      • RESOURCE_LIMIT_EXCEEDED (HTTP 422): This resource has reached its supported capacity. Do not retry. Reduce the request or archive records first.
      • MODULE_NOT_CONTRACTED (HTTP 422): The organization did not contract this module. Leave the module in details.module off: the organization did not contract it. Árbol adds it to the contract when the organization buys it.
      • MODULE_REQUIREMENT_MISSING (HTTP 422): This module needs one of the modules it requires to be on. Turn on, in the same request, one of the modules the module in details.module requires (getOrganizationModules lists them).
      • CAPABILITY_NOT_CONFIGURED (HTTP 422): This operation requires its governed native implementation before it can be activated. Do not retry. The capability is not enabled for this organization.
      • INSTALLATION_NOT_READY (HTTP 422): The installation cannot be activated: its app version is not certified or a credential its app declares is missing. Do not retry unchanged. Wait for a certified app version, record examples that cover every operation and change of a custom-http installation, or add the missing credentials to the deployment, then activate again.
      • EVIDENCE_NOT_READABLE (HTTP 422): Accepting evidence requires readable content and independent reporter provenance. Leave it pending until its source is readable. Leave the evidence pending until its source content is readable.
      • ANALYTICS_QUERY_LIMIT (HTTP 422): The query exceeded its bounded work, memory or output budget. Narrow the query. Narrow the query (filters, columns or range) and retry.
      • COMMIT_UNCERTAIN (HTTP 503): The commit outcome is unknown. Reconcile before retrying. The write may have happened. Repeat it with the same requestKey or read the record first.
      • DATABASE_UNAVAILABLE (HTTP 503): The database is unavailable. Retry later with backoff; for a write, reuse the same requestKey.
      • PIPELINE_UNAVAILABLE (HTTP 503): The pipeline is unavailable. Reconcile using the same request key. The write may have happened. Repeat it with the same requestKey or read the record first.
      • ASSISTANT_UNAVAILABLE (HTTP 503): The assistant is not available for this workspace. Do not retry. The capability is not enabled for this organization.
      • SERVICE_BUSY (HTTP 503): The service is handling its current request limit. Retry later with backoff; for a write, reuse the same requestKey.
      • INVALID_CONFIGURATION (HTTP 500): The request could not be completed. Retry once later; if it persists, report the requestId to support.
      • INTERNAL (HTTP 500): The request could not be completed. Retry once later; if it persists, report the requestId to support.
    • message
      string
      required

      Fixed English explanation for people; it may change without notice.

    • details
      optional
      object

      Extra data for the codes that need it; absent for every other code.

      • commandId
        optional
        string

        Identifier (tcm_ prefix) of the earlier team command to reconcile before retrying.

      • lineIds
        optional
        array of
        string

        Unassigned invoice lines that prevent a unique component proposal; at most 100.

      • module
        optional
        pgp
        or
        capitation
        or
        fee_for_service
        or
        results_payment
        or
        service_record
        or
        cac
        +11 more

        The module the failure is about, for example agenda.

      • paymentProblem
        optional
        rules_unavailable
        or
        not_collectable
        or
        not_for_this_person
        or
        basis_incomplete
        or
        moderator_fee_value
        or
        service_value_unavailable
        +3 more

        Why the collection was refused.

      • reason
        optional
        not_contracted
        or
        not_a_substitute
        or
        patient_acceptance_missing
        or
        payer_authorization_missing

        Why the booking's site was refused: not_contracted (the contracted site is not one of the contract that day), not_a_substitute (no substitution in force that day lets the site serve for it), patient_acceptance_missing or payer_authorization_missing (the substitution asks for them).

  • metadata
    object
    required

    Request metadata, including the request identifier.

    • requestId
      string
      required

      Server-assigned request identifier (opaque). Quote it when reporting a problem.

  • success
    false
    required

    Always false in a failure envelope.

403

Failure. The error.code is one of:

  • ACCESS_DENIED: Do not retry. The signed-in actor lacks this purpose or grant; ask an administrator.
  • MODULE_DISABLED: Do not retry. The organization does not use the module in details.module (getSession lists the ones it uses); an administrator turns it on with setOrganizationModules.
JSON
  • error
    object
    required

    The stable failure code, its message and optional details.

    • code
      UNAUTHORIZED
      or
      AUTHENTICATION_UNAVAILABLE
      or
      ACCESS_DENIED
      or
      MODULE_DISABLED
      or
      INVALID_INPUT
      or
      USER_PAYMENT_REFUSED
      +33 more
      required

      Stable failure code. Branch on this value, never on message.

      • UNAUTHORIZED (HTTP 401): A valid access token is required. Obtain a fresh access token and repeat the request.
      • AUTHENTICATION_UNAVAILABLE (HTTP 503): Identity verification is temporarily unavailable. Retry later with backoff; for a write, reuse the same requestKey.
      • ACCESS_DENIED (HTTP 403): Access denied. Do not retry. The signed-in actor lacks this purpose or grant; ask an administrator.
      • MODULE_DISABLED (HTTP 403): This operation belongs to a module the organization does not use. Do not retry. The organization does not use the module in details.module (getSession lists the ones it uses); an administrator turns it on with setOrganizationModules.
      • INVALID_INPUT (HTTP 400): The request does not match the documented contract. Do not retry unchanged. Fix the request against the operation's schema.
      • USER_PAYMENT_REFUSED (HTTP 400): The collection exceeds the applicable payment rules. Check the collection basis and caps in details.paymentProblem before recording the payment.
      • INVALID_INVENTORY (HTTP 400): The content does not match the selected inventory contract. Do not retry unchanged. Fix the request against the operation's schema.
      • ANALYTICS_QUERY_REJECTED (HTTP 400): Use one read-only query over the admitted catalog and its supported functions. Rewrite the query as one read-only statement over the published catalog.
      • BODY_TOO_LARGE (HTTP 413): The request body exceeds the supported limit. Send a smaller body, or split the content into several requests.
      • NOT_FOUND (HTTP 404): The resource does not exist. Check the identifier. The record may not exist or may not be visible to this actor.
      • METHOD_NOT_ALLOWED (HTTP 405): The method is not supported for this resource. Use the HTTP method documented for this path.
      • CONFLICT (HTTP 409): The resource conflicts with its current state. Read the current state with the matching get operation, then decide again.
      • IDEMPOTENCY_CONFLICT (HTTP 409): The command key already identifies a different request. The requestKey was already used for a different request. Use a new key for a new action.
      • TRANSACTION_ABORTED (HTTP 409): The transaction rolled back without committing changes. Nothing was written. Retry the same request.
      • INVENTORY_INTEGRITY_CONFLICT (HTTP 409): The current build failed integrity verification. Do not retry. Report the integrity failure to an operator.
      • TEAM_PRIOR_UNRESOLVED (HTTP 409): Reconcile the existing team command before preparing another change. Reconcile the earlier team command (see details.commandId) before a new change.
      • COHORT_ACTIVE_REQUIRED (HTTP 409): Only an active cohort can create a new candidate snapshot. Read the current state with the matching get operation, then decide again.
      • COHORT_CUT_CHANGED (HTTP 409): The current cohort cut changed. Restart this read from the first page. Restart the paginated read from the first page.
      • COHORT_READ_REQUIRES_ACTIVE (HTTP 409): Only an active cohort has a current care-facts view. Read the current state with the matching get operation, then decide again.
      • COHORT_CUT_NEEDS_RECONCILIATION (HTTP 409): The cohort cut needs reconciliation before its care facts can be read. Read the current state with the matching get operation, then decide again.
      • PROGRAM_NEW_ASSESSMENT_REQUIRED (HTTP 409): Select a new eligible assessment recorded after the last participation change. Read the current state with the matching get operation, then decide again.
      • CONTRACT_CLOSED_WINDOW_CHANGE_UNSUPPORTED (HTTP 409): The proposed terms change component identities already fixed by an accepted close. Read the current state with the matching get operation, then decide again.
      • MINOR_UNIT_SCALE_MISMATCH (HTTP 400): A component's money is not in the minor units of its currency (ISO 4217). Write each component's money in the minor units of its currency (minorUnitScale 2 for COP, PEN, MXN and BRL; 0 for CLP) and propose again.
      • INVOICE_COMPONENT_AMBIGUOUS (HTTP 409): Invoice lines have no unique fee-for-service component. Route the lines in details.lineIds to their paying component, then request the proposal again. At most 100 identifiers are returned.
      • SITE_SUBSTITUTION_REFUSED (HTTP 409): The contract does not let this site serve for the contracted site as booked. Book at the contracted site, or at a site its contract lets serve for it on the appointment's day (listContractSites), recording what details.reason says is missing: the patient's acceptance or the payer's authorization.
      • RESOURCE_LIMIT_EXCEEDED (HTTP 422): This resource has reached its supported capacity. Do not retry. Reduce the request or archive records first.
      • MODULE_NOT_CONTRACTED (HTTP 422): The organization did not contract this module. Leave the module in details.module off: the organization did not contract it. Árbol adds it to the contract when the organization buys it.
      • MODULE_REQUIREMENT_MISSING (HTTP 422): This module needs one of the modules it requires to be on. Turn on, in the same request, one of the modules the module in details.module requires (getOrganizationModules lists them).
      • CAPABILITY_NOT_CONFIGURED (HTTP 422): This operation requires its governed native implementation before it can be activated. Do not retry. The capability is not enabled for this organization.
      • INSTALLATION_NOT_READY (HTTP 422): The installation cannot be activated: its app version is not certified or a credential its app declares is missing. Do not retry unchanged. Wait for a certified app version, record examples that cover every operation and change of a custom-http installation, or add the missing credentials to the deployment, then activate again.
      • EVIDENCE_NOT_READABLE (HTTP 422): Accepting evidence requires readable content and independent reporter provenance. Leave it pending until its source is readable. Leave the evidence pending until its source content is readable.
      • ANALYTICS_QUERY_LIMIT (HTTP 422): The query exceeded its bounded work, memory or output budget. Narrow the query. Narrow the query (filters, columns or range) and retry.
      • COMMIT_UNCERTAIN (HTTP 503): The commit outcome is unknown. Reconcile before retrying. The write may have happened. Repeat it with the same requestKey or read the record first.
      • DATABASE_UNAVAILABLE (HTTP 503): The database is unavailable. Retry later with backoff; for a write, reuse the same requestKey.
      • PIPELINE_UNAVAILABLE (HTTP 503): The pipeline is unavailable. Reconcile using the same request key. The write may have happened. Repeat it with the same requestKey or read the record first.
      • ASSISTANT_UNAVAILABLE (HTTP 503): The assistant is not available for this workspace. Do not retry. The capability is not enabled for this organization.
      • SERVICE_BUSY (HTTP 503): The service is handling its current request limit. Retry later with backoff; for a write, reuse the same requestKey.
      • INVALID_CONFIGURATION (HTTP 500): The request could not be completed. Retry once later; if it persists, report the requestId to support.
      • INTERNAL (HTTP 500): The request could not be completed. Retry once later; if it persists, report the requestId to support.
    • message
      string
      required

      Fixed English explanation for people; it may change without notice.

    • details
      optional
      object

      Extra data for the codes that need it; absent for every other code.

      • commandId
        optional
        string

        Identifier (tcm_ prefix) of the earlier team command to reconcile before retrying.

      • lineIds
        optional
        array of
        string

        Unassigned invoice lines that prevent a unique component proposal; at most 100.

      • module
        optional
        pgp
        or
        capitation
        or
        fee_for_service
        or
        results_payment
        or
        service_record
        or
        cac
        +11 more

        The module the failure is about, for example agenda.

      • paymentProblem
        optional
        rules_unavailable
        or
        not_collectable
        or
        not_for_this_person
        or
        basis_incomplete
        or
        moderator_fee_value
        or
        service_value_unavailable
        +3 more

        Why the collection was refused.

      • reason
        optional
        not_contracted
        or
        not_a_substitute
        or
        patient_acceptance_missing
        or
        payer_authorization_missing

        Why the booking's site was refused: not_contracted (the contracted site is not one of the contract that day), not_a_substitute (no substitution in force that day lets the site serve for it), patient_acceptance_missing or payer_authorization_missing (the substitution asks for them).

  • metadata
    object
    required

    Request metadata, including the request identifier.

    • requestId
      string
      required

      Server-assigned request identifier (opaque). Quote it when reporting a problem.

  • success
    false
    required

    Always false in a failure envelope.

404

Failure. The error.code is one of:

  • NOT_FOUND: Check the identifier. The record may not exist or may not be visible to this actor.
JSON
  • error
    object
    required

    The stable failure code, its message and optional details.

    • code
      UNAUTHORIZED
      or
      AUTHENTICATION_UNAVAILABLE
      or
      ACCESS_DENIED
      or
      MODULE_DISABLED
      or
      INVALID_INPUT
      or
      USER_PAYMENT_REFUSED
      +33 more
      required

      Stable failure code. Branch on this value, never on message.

      • UNAUTHORIZED (HTTP 401): A valid access token is required. Obtain a fresh access token and repeat the request.
      • AUTHENTICATION_UNAVAILABLE (HTTP 503): Identity verification is temporarily unavailable. Retry later with backoff; for a write, reuse the same requestKey.
      • ACCESS_DENIED (HTTP 403): Access denied. Do not retry. The signed-in actor lacks this purpose or grant; ask an administrator.
      • MODULE_DISABLED (HTTP 403): This operation belongs to a module the organization does not use. Do not retry. The organization does not use the module in details.module (getSession lists the ones it uses); an administrator turns it on with setOrganizationModules.
      • INVALID_INPUT (HTTP 400): The request does not match the documented contract. Do not retry unchanged. Fix the request against the operation's schema.
      • USER_PAYMENT_REFUSED (HTTP 400): The collection exceeds the applicable payment rules. Check the collection basis and caps in details.paymentProblem before recording the payment.
      • INVALID_INVENTORY (HTTP 400): The content does not match the selected inventory contract. Do not retry unchanged. Fix the request against the operation's schema.
      • ANALYTICS_QUERY_REJECTED (HTTP 400): Use one read-only query over the admitted catalog and its supported functions. Rewrite the query as one read-only statement over the published catalog.
      • BODY_TOO_LARGE (HTTP 413): The request body exceeds the supported limit. Send a smaller body, or split the content into several requests.
      • NOT_FOUND (HTTP 404): The resource does not exist. Check the identifier. The record may not exist or may not be visible to this actor.
      • METHOD_NOT_ALLOWED (HTTP 405): The method is not supported for this resource. Use the HTTP method documented for this path.
      • CONFLICT (HTTP 409): The resource conflicts with its current state. Read the current state with the matching get operation, then decide again.
      • IDEMPOTENCY_CONFLICT (HTTP 409): The command key already identifies a different request. The requestKey was already used for a different request. Use a new key for a new action.
      • TRANSACTION_ABORTED (HTTP 409): The transaction rolled back without committing changes. Nothing was written. Retry the same request.
      • INVENTORY_INTEGRITY_CONFLICT (HTTP 409): The current build failed integrity verification. Do not retry. Report the integrity failure to an operator.
      • TEAM_PRIOR_UNRESOLVED (HTTP 409): Reconcile the existing team command before preparing another change. Reconcile the earlier team command (see details.commandId) before a new change.
      • COHORT_ACTIVE_REQUIRED (HTTP 409): Only an active cohort can create a new candidate snapshot. Read the current state with the matching get operation, then decide again.
      • COHORT_CUT_CHANGED (HTTP 409): The current cohort cut changed. Restart this read from the first page. Restart the paginated read from the first page.
      • COHORT_READ_REQUIRES_ACTIVE (HTTP 409): Only an active cohort has a current care-facts view. Read the current state with the matching get operation, then decide again.
      • COHORT_CUT_NEEDS_RECONCILIATION (HTTP 409): The cohort cut needs reconciliation before its care facts can be read. Read the current state with the matching get operation, then decide again.
      • PROGRAM_NEW_ASSESSMENT_REQUIRED (HTTP 409): Select a new eligible assessment recorded after the last participation change. Read the current state with the matching get operation, then decide again.
      • CONTRACT_CLOSED_WINDOW_CHANGE_UNSUPPORTED (HTTP 409): The proposed terms change component identities already fixed by an accepted close. Read the current state with the matching get operation, then decide again.
      • MINOR_UNIT_SCALE_MISMATCH (HTTP 400): A component's money is not in the minor units of its currency (ISO 4217). Write each component's money in the minor units of its currency (minorUnitScale 2 for COP, PEN, MXN and BRL; 0 for CLP) and propose again.
      • INVOICE_COMPONENT_AMBIGUOUS (HTTP 409): Invoice lines have no unique fee-for-service component. Route the lines in details.lineIds to their paying component, then request the proposal again. At most 100 identifiers are returned.
      • SITE_SUBSTITUTION_REFUSED (HTTP 409): The contract does not let this site serve for the contracted site as booked. Book at the contracted site, or at a site its contract lets serve for it on the appointment's day (listContractSites), recording what details.reason says is missing: the patient's acceptance or the payer's authorization.
      • RESOURCE_LIMIT_EXCEEDED (HTTP 422): This resource has reached its supported capacity. Do not retry. Reduce the request or archive records first.
      • MODULE_NOT_CONTRACTED (HTTP 422): The organization did not contract this module. Leave the module in details.module off: the organization did not contract it. Árbol adds it to the contract when the organization buys it.
      • MODULE_REQUIREMENT_MISSING (HTTP 422): This module needs one of the modules it requires to be on. Turn on, in the same request, one of the modules the module in details.module requires (getOrganizationModules lists them).
      • CAPABILITY_NOT_CONFIGURED (HTTP 422): This operation requires its governed native implementation before it can be activated. Do not retry. The capability is not enabled for this organization.
      • INSTALLATION_NOT_READY (HTTP 422): The installation cannot be activated: its app version is not certified or a credential its app declares is missing. Do not retry unchanged. Wait for a certified app version, record examples that cover every operation and change of a custom-http installation, or add the missing credentials to the deployment, then activate again.
      • EVIDENCE_NOT_READABLE (HTTP 422): Accepting evidence requires readable content and independent reporter provenance. Leave it pending until its source is readable. Leave the evidence pending until its source content is readable.
      • ANALYTICS_QUERY_LIMIT (HTTP 422): The query exceeded its bounded work, memory or output budget. Narrow the query. Narrow the query (filters, columns or range) and retry.
      • COMMIT_UNCERTAIN (HTTP 503): The commit outcome is unknown. Reconcile before retrying. The write may have happened. Repeat it with the same requestKey or read the record first.
      • DATABASE_UNAVAILABLE (HTTP 503): The database is unavailable. Retry later with backoff; for a write, reuse the same requestKey.
      • PIPELINE_UNAVAILABLE (HTTP 503): The pipeline is unavailable. Reconcile using the same request key. The write may have happened. Repeat it with the same requestKey or read the record first.
      • ASSISTANT_UNAVAILABLE (HTTP 503): The assistant is not available for this workspace. Do not retry. The capability is not enabled for this organization.
      • SERVICE_BUSY (HTTP 503): The service is handling its current request limit. Retry later with backoff; for a write, reuse the same requestKey.
      • INVALID_CONFIGURATION (HTTP 500): The request could not be completed. Retry once later; if it persists, report the requestId to support.
      • INTERNAL (HTTP 500): The request could not be completed. Retry once later; if it persists, report the requestId to support.
    • message
      string
      required

      Fixed English explanation for people; it may change without notice.

    • details
      optional
      object

      Extra data for the codes that need it; absent for every other code.

      • commandId
        optional
        string

        Identifier (tcm_ prefix) of the earlier team command to reconcile before retrying.

      • lineIds
        optional
        array of
        string

        Unassigned invoice lines that prevent a unique component proposal; at most 100.

      • module
        optional
        pgp
        or
        capitation
        or
        fee_for_service
        or
        results_payment
        or
        service_record
        or
        cac
        +11 more

        The module the failure is about, for example agenda.

      • paymentProblem
        optional
        rules_unavailable
        or
        not_collectable
        or
        not_for_this_person
        or
        basis_incomplete
        or
        moderator_fee_value
        or
        service_value_unavailable
        +3 more

        Why the collection was refused.

      • reason
        optional
        not_contracted
        or
        not_a_substitute
        or
        patient_acceptance_missing
        or
        payer_authorization_missing

        Why the booking's site was refused: not_contracted (the contracted site is not one of the contract that day), not_a_substitute (no substitution in force that day lets the site serve for it), patient_acceptance_missing or payer_authorization_missing (the substitution asks for them).

  • metadata
    object
    required

    Request metadata, including the request identifier.

    • requestId
      string
      required

      Server-assigned request identifier (opaque). Quote it when reporting a problem.

  • success
    false
    required

    Always false in a failure envelope.

409

Failure. The error.code is one of:

  • CONFLICT: Read the current state with the matching get operation, then decide again.
  • IDEMPOTENCY_CONFLICT: The requestKey was already used for a different request. Use a new key for a new action.
  • TRANSACTION_ABORTED: Nothing was written. Retry the same request.
  • INVENTORY_INTEGRITY_CONFLICT: Do not retry. Report the integrity failure to an operator.
  • TEAM_PRIOR_UNRESOLVED: Reconcile the earlier team command (see details.commandId) before a new change.
  • COHORT_ACTIVE_REQUIRED: Read the current state with the matching get operation, then decide again.
  • COHORT_CUT_CHANGED: Restart the paginated read from the first page.
  • COHORT_READ_REQUIRES_ACTIVE: Read the current state with the matching get operation, then decide again.
  • COHORT_CUT_NEEDS_RECONCILIATION: Read the current state with the matching get operation, then decide again.
  • PROGRAM_NEW_ASSESSMENT_REQUIRED: Read the current state with the matching get operation, then decide again.
  • CONTRACT_CLOSED_WINDOW_CHANGE_UNSUPPORTED: Read the current state with the matching get operation, then decide again.
  • INVOICE_COMPONENT_AMBIGUOUS: Route the lines in details.lineIds to their paying component, then request the proposal again. At most 100 identifiers are returned.
  • SITE_SUBSTITUTION_REFUSED: Book at the contracted site, or at a site its contract lets serve for it on the appointment's day (listContractSites), recording what details.reason says is missing: the patient's acceptance or the payer's authorization.
JSON
  • error
    object
    required

    The stable failure code, its message and optional details.

    • code
      UNAUTHORIZED
      or
      AUTHENTICATION_UNAVAILABLE
      or
      ACCESS_DENIED
      or
      MODULE_DISABLED
      or
      INVALID_INPUT
      or
      USER_PAYMENT_REFUSED
      +33 more
      required

      Stable failure code. Branch on this value, never on message.

      • UNAUTHORIZED (HTTP 401): A valid access token is required. Obtain a fresh access token and repeat the request.
      • AUTHENTICATION_UNAVAILABLE (HTTP 503): Identity verification is temporarily unavailable. Retry later with backoff; for a write, reuse the same requestKey.
      • ACCESS_DENIED (HTTP 403): Access denied. Do not retry. The signed-in actor lacks this purpose or grant; ask an administrator.
      • MODULE_DISABLED (HTTP 403): This operation belongs to a module the organization does not use. Do not retry. The organization does not use the module in details.module (getSession lists the ones it uses); an administrator turns it on with setOrganizationModules.
      • INVALID_INPUT (HTTP 400): The request does not match the documented contract. Do not retry unchanged. Fix the request against the operation's schema.
      • USER_PAYMENT_REFUSED (HTTP 400): The collection exceeds the applicable payment rules. Check the collection basis and caps in details.paymentProblem before recording the payment.
      • INVALID_INVENTORY (HTTP 400): The content does not match the selected inventory contract. Do not retry unchanged. Fix the request against the operation's schema.
      • ANALYTICS_QUERY_REJECTED (HTTP 400): Use one read-only query over the admitted catalog and its supported functions. Rewrite the query as one read-only statement over the published catalog.
      • BODY_TOO_LARGE (HTTP 413): The request body exceeds the supported limit. Send a smaller body, or split the content into several requests.
      • NOT_FOUND (HTTP 404): The resource does not exist. Check the identifier. The record may not exist or may not be visible to this actor.
      • METHOD_NOT_ALLOWED (HTTP 405): The method is not supported for this resource. Use the HTTP method documented for this path.
      • CONFLICT (HTTP 409): The resource conflicts with its current state. Read the current state with the matching get operation, then decide again.
      • IDEMPOTENCY_CONFLICT (HTTP 409): The command key already identifies a different request. The requestKey was already used for a different request. Use a new key for a new action.
      • TRANSACTION_ABORTED (HTTP 409): The transaction rolled back without committing changes. Nothing was written. Retry the same request.
      • INVENTORY_INTEGRITY_CONFLICT (HTTP 409): The current build failed integrity verification. Do not retry. Report the integrity failure to an operator.
      • TEAM_PRIOR_UNRESOLVED (HTTP 409): Reconcile the existing team command before preparing another change. Reconcile the earlier team command (see details.commandId) before a new change.
      • COHORT_ACTIVE_REQUIRED (HTTP 409): Only an active cohort can create a new candidate snapshot. Read the current state with the matching get operation, then decide again.
      • COHORT_CUT_CHANGED (HTTP 409): The current cohort cut changed. Restart this read from the first page. Restart the paginated read from the first page.
      • COHORT_READ_REQUIRES_ACTIVE (HTTP 409): Only an active cohort has a current care-facts view. Read the current state with the matching get operation, then decide again.
      • COHORT_CUT_NEEDS_RECONCILIATION (HTTP 409): The cohort cut needs reconciliation before its care facts can be read. Read the current state with the matching get operation, then decide again.
      • PROGRAM_NEW_ASSESSMENT_REQUIRED (HTTP 409): Select a new eligible assessment recorded after the last participation change. Read the current state with the matching get operation, then decide again.
      • CONTRACT_CLOSED_WINDOW_CHANGE_UNSUPPORTED (HTTP 409): The proposed terms change component identities already fixed by an accepted close. Read the current state with the matching get operation, then decide again.
      • MINOR_UNIT_SCALE_MISMATCH (HTTP 400): A component's money is not in the minor units of its currency (ISO 4217). Write each component's money in the minor units of its currency (minorUnitScale 2 for COP, PEN, MXN and BRL; 0 for CLP) and propose again.
      • INVOICE_COMPONENT_AMBIGUOUS (HTTP 409): Invoice lines have no unique fee-for-service component. Route the lines in details.lineIds to their paying component, then request the proposal again. At most 100 identifiers are returned.
      • SITE_SUBSTITUTION_REFUSED (HTTP 409): The contract does not let this site serve for the contracted site as booked. Book at the contracted site, or at a site its contract lets serve for it on the appointment's day (listContractSites), recording what details.reason says is missing: the patient's acceptance or the payer's authorization.
      • RESOURCE_LIMIT_EXCEEDED (HTTP 422): This resource has reached its supported capacity. Do not retry. Reduce the request or archive records first.
      • MODULE_NOT_CONTRACTED (HTTP 422): The organization did not contract this module. Leave the module in details.module off: the organization did not contract it. Árbol adds it to the contract when the organization buys it.
      • MODULE_REQUIREMENT_MISSING (HTTP 422): This module needs one of the modules it requires to be on. Turn on, in the same request, one of the modules the module in details.module requires (getOrganizationModules lists them).
      • CAPABILITY_NOT_CONFIGURED (HTTP 422): This operation requires its governed native implementation before it can be activated. Do not retry. The capability is not enabled for this organization.
      • INSTALLATION_NOT_READY (HTTP 422): The installation cannot be activated: its app version is not certified or a credential its app declares is missing. Do not retry unchanged. Wait for a certified app version, record examples that cover every operation and change of a custom-http installation, or add the missing credentials to the deployment, then activate again.
      • EVIDENCE_NOT_READABLE (HTTP 422): Accepting evidence requires readable content and independent reporter provenance. Leave it pending until its source is readable. Leave the evidence pending until its source content is readable.
      • ANALYTICS_QUERY_LIMIT (HTTP 422): The query exceeded its bounded work, memory or output budget. Narrow the query. Narrow the query (filters, columns or range) and retry.
      • COMMIT_UNCERTAIN (HTTP 503): The commit outcome is unknown. Reconcile before retrying. The write may have happened. Repeat it with the same requestKey or read the record first.
      • DATABASE_UNAVAILABLE (HTTP 503): The database is unavailable. Retry later with backoff; for a write, reuse the same requestKey.
      • PIPELINE_UNAVAILABLE (HTTP 503): The pipeline is unavailable. Reconcile using the same request key. The write may have happened. Repeat it with the same requestKey or read the record first.
      • ASSISTANT_UNAVAILABLE (HTTP 503): The assistant is not available for this workspace. Do not retry. The capability is not enabled for this organization.
      • SERVICE_BUSY (HTTP 503): The service is handling its current request limit. Retry later with backoff; for a write, reuse the same requestKey.
      • INVALID_CONFIGURATION (HTTP 500): The request could not be completed. Retry once later; if it persists, report the requestId to support.
      • INTERNAL (HTTP 500): The request could not be completed. Retry once later; if it persists, report the requestId to support.
    • message
      string
      required

      Fixed English explanation for people; it may change without notice.

    • details
      optional
      object

      Extra data for the codes that need it; absent for every other code.

      • commandId
        optional
        string

        Identifier (tcm_ prefix) of the earlier team command to reconcile before retrying.

      • lineIds
        optional
        array of
        string

        Unassigned invoice lines that prevent a unique component proposal; at most 100.

      • module
        optional
        pgp
        or
        capitation
        or
        fee_for_service
        or
        results_payment
        or
        service_record
        or
        cac
        +11 more

        The module the failure is about, for example agenda.

      • paymentProblem
        optional
        rules_unavailable
        or
        not_collectable
        or
        not_for_this_person
        or
        basis_incomplete
        or
        moderator_fee_value
        or
        service_value_unavailable
        +3 more

        Why the collection was refused.

      • reason
        optional
        not_contracted
        or
        not_a_substitute
        or
        patient_acceptance_missing
        or
        payer_authorization_missing

        Why the booking's site was refused: not_contracted (the contracted site is not one of the contract that day), not_a_substitute (no substitution in force that day lets the site serve for it), patient_acceptance_missing or payer_authorization_missing (the substitution asks for them).

  • metadata
    object
    required

    Request metadata, including the request identifier.

    • requestId
      string
      required

      Server-assigned request identifier (opaque). Quote it when reporting a problem.

  • success
    false
    required

    Always false in a failure envelope.

413

Failure. The error.code is one of:

  • BODY_TOO_LARGE: Send a smaller body, or split the content into several requests.
JSON
  • error
    object
    required

    The stable failure code, its message and optional details.

    • code
      UNAUTHORIZED
      or
      AUTHENTICATION_UNAVAILABLE
      or
      ACCESS_DENIED
      or
      MODULE_DISABLED
      or
      INVALID_INPUT
      or
      USER_PAYMENT_REFUSED
      +33 more
      required

      Stable failure code. Branch on this value, never on message.

      • UNAUTHORIZED (HTTP 401): A valid access token is required. Obtain a fresh access token and repeat the request.
      • AUTHENTICATION_UNAVAILABLE (HTTP 503): Identity verification is temporarily unavailable. Retry later with backoff; for a write, reuse the same requestKey.
      • ACCESS_DENIED (HTTP 403): Access denied. Do not retry. The signed-in actor lacks this purpose or grant; ask an administrator.
      • MODULE_DISABLED (HTTP 403): This operation belongs to a module the organization does not use. Do not retry. The organization does not use the module in details.module (getSession lists the ones it uses); an administrator turns it on with setOrganizationModules.
      • INVALID_INPUT (HTTP 400): The request does not match the documented contract. Do not retry unchanged. Fix the request against the operation's schema.
      • USER_PAYMENT_REFUSED (HTTP 400): The collection exceeds the applicable payment rules. Check the collection basis and caps in details.paymentProblem before recording the payment.
      • INVALID_INVENTORY (HTTP 400): The content does not match the selected inventory contract. Do not retry unchanged. Fix the request against the operation's schema.
      • ANALYTICS_QUERY_REJECTED (HTTP 400): Use one read-only query over the admitted catalog and its supported functions. Rewrite the query as one read-only statement over the published catalog.
      • BODY_TOO_LARGE (HTTP 413): The request body exceeds the supported limit. Send a smaller body, or split the content into several requests.
      • NOT_FOUND (HTTP 404): The resource does not exist. Check the identifier. The record may not exist or may not be visible to this actor.
      • METHOD_NOT_ALLOWED (HTTP 405): The method is not supported for this resource. Use the HTTP method documented for this path.
      • CONFLICT (HTTP 409): The resource conflicts with its current state. Read the current state with the matching get operation, then decide again.
      • IDEMPOTENCY_CONFLICT (HTTP 409): The command key already identifies a different request. The requestKey was already used for a different request. Use a new key for a new action.
      • TRANSACTION_ABORTED (HTTP 409): The transaction rolled back without committing changes. Nothing was written. Retry the same request.
      • INVENTORY_INTEGRITY_CONFLICT (HTTP 409): The current build failed integrity verification. Do not retry. Report the integrity failure to an operator.
      • TEAM_PRIOR_UNRESOLVED (HTTP 409): Reconcile the existing team command before preparing another change. Reconcile the earlier team command (see details.commandId) before a new change.
      • COHORT_ACTIVE_REQUIRED (HTTP 409): Only an active cohort can create a new candidate snapshot. Read the current state with the matching get operation, then decide again.
      • COHORT_CUT_CHANGED (HTTP 409): The current cohort cut changed. Restart this read from the first page. Restart the paginated read from the first page.
      • COHORT_READ_REQUIRES_ACTIVE (HTTP 409): Only an active cohort has a current care-facts view. Read the current state with the matching get operation, then decide again.
      • COHORT_CUT_NEEDS_RECONCILIATION (HTTP 409): The cohort cut needs reconciliation before its care facts can be read. Read the current state with the matching get operation, then decide again.
      • PROGRAM_NEW_ASSESSMENT_REQUIRED (HTTP 409): Select a new eligible assessment recorded after the last participation change. Read the current state with the matching get operation, then decide again.
      • CONTRACT_CLOSED_WINDOW_CHANGE_UNSUPPORTED (HTTP 409): The proposed terms change component identities already fixed by an accepted close. Read the current state with the matching get operation, then decide again.
      • MINOR_UNIT_SCALE_MISMATCH (HTTP 400): A component's money is not in the minor units of its currency (ISO 4217). Write each component's money in the minor units of its currency (minorUnitScale 2 for COP, PEN, MXN and BRL; 0 for CLP) and propose again.
      • INVOICE_COMPONENT_AMBIGUOUS (HTTP 409): Invoice lines have no unique fee-for-service component. Route the lines in details.lineIds to their paying component, then request the proposal again. At most 100 identifiers are returned.
      • SITE_SUBSTITUTION_REFUSED (HTTP 409): The contract does not let this site serve for the contracted site as booked. Book at the contracted site, or at a site its contract lets serve for it on the appointment's day (listContractSites), recording what details.reason says is missing: the patient's acceptance or the payer's authorization.
      • RESOURCE_LIMIT_EXCEEDED (HTTP 422): This resource has reached its supported capacity. Do not retry. Reduce the request or archive records first.
      • MODULE_NOT_CONTRACTED (HTTP 422): The organization did not contract this module. Leave the module in details.module off: the organization did not contract it. Árbol adds it to the contract when the organization buys it.
      • MODULE_REQUIREMENT_MISSING (HTTP 422): This module needs one of the modules it requires to be on. Turn on, in the same request, one of the modules the module in details.module requires (getOrganizationModules lists them).
      • CAPABILITY_NOT_CONFIGURED (HTTP 422): This operation requires its governed native implementation before it can be activated. Do not retry. The capability is not enabled for this organization.
      • INSTALLATION_NOT_READY (HTTP 422): The installation cannot be activated: its app version is not certified or a credential its app declares is missing. Do not retry unchanged. Wait for a certified app version, record examples that cover every operation and change of a custom-http installation, or add the missing credentials to the deployment, then activate again.
      • EVIDENCE_NOT_READABLE (HTTP 422): Accepting evidence requires readable content and independent reporter provenance. Leave it pending until its source is readable. Leave the evidence pending until its source content is readable.
      • ANALYTICS_QUERY_LIMIT (HTTP 422): The query exceeded its bounded work, memory or output budget. Narrow the query. Narrow the query (filters, columns or range) and retry.
      • COMMIT_UNCERTAIN (HTTP 503): The commit outcome is unknown. Reconcile before retrying. The write may have happened. Repeat it with the same requestKey or read the record first.
      • DATABASE_UNAVAILABLE (HTTP 503): The database is unavailable. Retry later with backoff; for a write, reuse the same requestKey.
      • PIPELINE_UNAVAILABLE (HTTP 503): The pipeline is unavailable. Reconcile using the same request key. The write may have happened. Repeat it with the same requestKey or read the record first.
      • ASSISTANT_UNAVAILABLE (HTTP 503): The assistant is not available for this workspace. Do not retry. The capability is not enabled for this organization.
      • SERVICE_BUSY (HTTP 503): The service is handling its current request limit. Retry later with backoff; for a write, reuse the same requestKey.
      • INVALID_CONFIGURATION (HTTP 500): The request could not be completed. Retry once later; if it persists, report the requestId to support.
      • INTERNAL (HTTP 500): The request could not be completed. Retry once later; if it persists, report the requestId to support.
    • message
      string
      required

      Fixed English explanation for people; it may change without notice.

    • details
      optional
      object

      Extra data for the codes that need it; absent for every other code.

      • commandId
        optional
        string

        Identifier (tcm_ prefix) of the earlier team command to reconcile before retrying.

      • lineIds
        optional
        array of
        string

        Unassigned invoice lines that prevent a unique component proposal; at most 100.

      • module
        optional
        pgp
        or
        capitation
        or
        fee_for_service
        or
        results_payment
        or
        service_record
        or
        cac
        +11 more

        The module the failure is about, for example agenda.

      • paymentProblem
        optional
        rules_unavailable
        or
        not_collectable
        or
        not_for_this_person
        or
        basis_incomplete
        or
        moderator_fee_value
        or
        service_value_unavailable
        +3 more

        Why the collection was refused.

      • reason
        optional
        not_contracted
        or
        not_a_substitute
        or
        patient_acceptance_missing
        or
        payer_authorization_missing

        Why the booking's site was refused: not_contracted (the contracted site is not one of the contract that day), not_a_substitute (no substitution in force that day lets the site serve for it), patient_acceptance_missing or payer_authorization_missing (the substitution asks for them).

  • metadata
    object
    required

    Request metadata, including the request identifier.

    • requestId
      string
      required

      Server-assigned request identifier (opaque). Quote it when reporting a problem.

  • success
    false
    required

    Always false in a failure envelope.

422

Failure. The error.code is one of:

  • RESOURCE_LIMIT_EXCEEDED: Do not retry. Reduce the request or archive records first.
  • MODULE_NOT_CONTRACTED: Leave the module in details.module off: the organization did not contract it. Árbol adds it to the contract when the organization buys it.
  • MODULE_REQUIREMENT_MISSING: Turn on, in the same request, one of the modules the module in details.module requires (getOrganizationModules lists them).
  • CAPABILITY_NOT_CONFIGURED: Do not retry. The capability is not enabled for this organization.
  • INSTALLATION_NOT_READY: Do not retry unchanged. Wait for a certified app version, record examples that cover every operation and change of a custom-http installation, or add the missing credentials to the deployment, then activate again.
  • EVIDENCE_NOT_READABLE: Leave the evidence pending until its source content is readable.
  • ANALYTICS_QUERY_LIMIT: Narrow the query (filters, columns or range) and retry.
JSON
  • error
    object
    required

    The stable failure code, its message and optional details.

    • code
      UNAUTHORIZED
      or
      AUTHENTICATION_UNAVAILABLE
      or
      ACCESS_DENIED
      or
      MODULE_DISABLED
      or
      INVALID_INPUT
      or
      USER_PAYMENT_REFUSED
      +33 more
      required

      Stable failure code. Branch on this value, never on message.

      • UNAUTHORIZED (HTTP 401): A valid access token is required. Obtain a fresh access token and repeat the request.
      • AUTHENTICATION_UNAVAILABLE (HTTP 503): Identity verification is temporarily unavailable. Retry later with backoff; for a write, reuse the same requestKey.
      • ACCESS_DENIED (HTTP 403): Access denied. Do not retry. The signed-in actor lacks this purpose or grant; ask an administrator.
      • MODULE_DISABLED (HTTP 403): This operation belongs to a module the organization does not use. Do not retry. The organization does not use the module in details.module (getSession lists the ones it uses); an administrator turns it on with setOrganizationModules.
      • INVALID_INPUT (HTTP 400): The request does not match the documented contract. Do not retry unchanged. Fix the request against the operation's schema.
      • USER_PAYMENT_REFUSED (HTTP 400): The collection exceeds the applicable payment rules. Check the collection basis and caps in details.paymentProblem before recording the payment.
      • INVALID_INVENTORY (HTTP 400): The content does not match the selected inventory contract. Do not retry unchanged. Fix the request against the operation's schema.
      • ANALYTICS_QUERY_REJECTED (HTTP 400): Use one read-only query over the admitted catalog and its supported functions. Rewrite the query as one read-only statement over the published catalog.
      • BODY_TOO_LARGE (HTTP 413): The request body exceeds the supported limit. Send a smaller body, or split the content into several requests.
      • NOT_FOUND (HTTP 404): The resource does not exist. Check the identifier. The record may not exist or may not be visible to this actor.
      • METHOD_NOT_ALLOWED (HTTP 405): The method is not supported for this resource. Use the HTTP method documented for this path.
      • CONFLICT (HTTP 409): The resource conflicts with its current state. Read the current state with the matching get operation, then decide again.
      • IDEMPOTENCY_CONFLICT (HTTP 409): The command key already identifies a different request. The requestKey was already used for a different request. Use a new key for a new action.
      • TRANSACTION_ABORTED (HTTP 409): The transaction rolled back without committing changes. Nothing was written. Retry the same request.
      • INVENTORY_INTEGRITY_CONFLICT (HTTP 409): The current build failed integrity verification. Do not retry. Report the integrity failure to an operator.
      • TEAM_PRIOR_UNRESOLVED (HTTP 409): Reconcile the existing team command before preparing another change. Reconcile the earlier team command (see details.commandId) before a new change.
      • COHORT_ACTIVE_REQUIRED (HTTP 409): Only an active cohort can create a new candidate snapshot. Read the current state with the matching get operation, then decide again.
      • COHORT_CUT_CHANGED (HTTP 409): The current cohort cut changed. Restart this read from the first page. Restart the paginated read from the first page.
      • COHORT_READ_REQUIRES_ACTIVE (HTTP 409): Only an active cohort has a current care-facts view. Read the current state with the matching get operation, then decide again.
      • COHORT_CUT_NEEDS_RECONCILIATION (HTTP 409): The cohort cut needs reconciliation before its care facts can be read. Read the current state with the matching get operation, then decide again.
      • PROGRAM_NEW_ASSESSMENT_REQUIRED (HTTP 409): Select a new eligible assessment recorded after the last participation change. Read the current state with the matching get operation, then decide again.
      • CONTRACT_CLOSED_WINDOW_CHANGE_UNSUPPORTED (HTTP 409): The proposed terms change component identities already fixed by an accepted close. Read the current state with the matching get operation, then decide again.
      • MINOR_UNIT_SCALE_MISMATCH (HTTP 400): A component's money is not in the minor units of its currency (ISO 4217). Write each component's money in the minor units of its currency (minorUnitScale 2 for COP, PEN, MXN and BRL; 0 for CLP) and propose again.
      • INVOICE_COMPONENT_AMBIGUOUS (HTTP 409): Invoice lines have no unique fee-for-service component. Route the lines in details.lineIds to their paying component, then request the proposal again. At most 100 identifiers are returned.
      • SITE_SUBSTITUTION_REFUSED (HTTP 409): The contract does not let this site serve for the contracted site as booked. Book at the contracted site, or at a site its contract lets serve for it on the appointment's day (listContractSites), recording what details.reason says is missing: the patient's acceptance or the payer's authorization.
      • RESOURCE_LIMIT_EXCEEDED (HTTP 422): This resource has reached its supported capacity. Do not retry. Reduce the request or archive records first.
      • MODULE_NOT_CONTRACTED (HTTP 422): The organization did not contract this module. Leave the module in details.module off: the organization did not contract it. Árbol adds it to the contract when the organization buys it.
      • MODULE_REQUIREMENT_MISSING (HTTP 422): This module needs one of the modules it requires to be on. Turn on, in the same request, one of the modules the module in details.module requires (getOrganizationModules lists them).
      • CAPABILITY_NOT_CONFIGURED (HTTP 422): This operation requires its governed native implementation before it can be activated. Do not retry. The capability is not enabled for this organization.
      • INSTALLATION_NOT_READY (HTTP 422): The installation cannot be activated: its app version is not certified or a credential its app declares is missing. Do not retry unchanged. Wait for a certified app version, record examples that cover every operation and change of a custom-http installation, or add the missing credentials to the deployment, then activate again.
      • EVIDENCE_NOT_READABLE (HTTP 422): Accepting evidence requires readable content and independent reporter provenance. Leave it pending until its source is readable. Leave the evidence pending until its source content is readable.
      • ANALYTICS_QUERY_LIMIT (HTTP 422): The query exceeded its bounded work, memory or output budget. Narrow the query. Narrow the query (filters, columns or range) and retry.
      • COMMIT_UNCERTAIN (HTTP 503): The commit outcome is unknown. Reconcile before retrying. The write may have happened. Repeat it with the same requestKey or read the record first.
      • DATABASE_UNAVAILABLE (HTTP 503): The database is unavailable. Retry later with backoff; for a write, reuse the same requestKey.
      • PIPELINE_UNAVAILABLE (HTTP 503): The pipeline is unavailable. Reconcile using the same request key. The write may have happened. Repeat it with the same requestKey or read the record first.
      • ASSISTANT_UNAVAILABLE (HTTP 503): The assistant is not available for this workspace. Do not retry. The capability is not enabled for this organization.
      • SERVICE_BUSY (HTTP 503): The service is handling its current request limit. Retry later with backoff; for a write, reuse the same requestKey.
      • INVALID_CONFIGURATION (HTTP 500): The request could not be completed. Retry once later; if it persists, report the requestId to support.
      • INTERNAL (HTTP 500): The request could not be completed. Retry once later; if it persists, report the requestId to support.
    • message
      string
      required

      Fixed English explanation for people; it may change without notice.

    • details
      optional
      object

      Extra data for the codes that need it; absent for every other code.

      • commandId
        optional
        string

        Identifier (tcm_ prefix) of the earlier team command to reconcile before retrying.

      • lineIds
        optional
        array of
        string

        Unassigned invoice lines that prevent a unique component proposal; at most 100.

      • module
        optional
        pgp
        or
        capitation
        or
        fee_for_service
        or
        results_payment
        or
        service_record
        or
        cac
        +11 more

        The module the failure is about, for example agenda.

      • paymentProblem
        optional
        rules_unavailable
        or
        not_collectable
        or
        not_for_this_person
        or
        basis_incomplete
        or
        moderator_fee_value
        or
        service_value_unavailable
        +3 more

        Why the collection was refused.

      • reason
        optional
        not_contracted
        or
        not_a_substitute
        or
        patient_acceptance_missing
        or
        payer_authorization_missing

        Why the booking's site was refused: not_contracted (the contracted site is not one of the contract that day), not_a_substitute (no substitution in force that day lets the site serve for it), patient_acceptance_missing or payer_authorization_missing (the substitution asks for them).

  • metadata
    object
    required

    Request metadata, including the request identifier.

    • requestId
      string
      required

      Server-assigned request identifier (opaque). Quote it when reporting a problem.

  • success
    false
    required

    Always false in a failure envelope.

500

Failure. The error.code is one of:

  • INVALID_CONFIGURATION: Retry once later; if it persists, report the requestId to support.
  • INTERNAL: Retry once later; if it persists, report the requestId to support.
JSON
  • error
    object
    required

    The stable failure code, its message and optional details.

    • code
      UNAUTHORIZED
      or
      AUTHENTICATION_UNAVAILABLE
      or
      ACCESS_DENIED
      or
      MODULE_DISABLED
      or
      INVALID_INPUT
      or
      USER_PAYMENT_REFUSED
      +33 more
      required

      Stable failure code. Branch on this value, never on message.

      • UNAUTHORIZED (HTTP 401): A valid access token is required. Obtain a fresh access token and repeat the request.
      • AUTHENTICATION_UNAVAILABLE (HTTP 503): Identity verification is temporarily unavailable. Retry later with backoff; for a write, reuse the same requestKey.
      • ACCESS_DENIED (HTTP 403): Access denied. Do not retry. The signed-in actor lacks this purpose or grant; ask an administrator.
      • MODULE_DISABLED (HTTP 403): This operation belongs to a module the organization does not use. Do not retry. The organization does not use the module in details.module (getSession lists the ones it uses); an administrator turns it on with setOrganizationModules.
      • INVALID_INPUT (HTTP 400): The request does not match the documented contract. Do not retry unchanged. Fix the request against the operation's schema.
      • USER_PAYMENT_REFUSED (HTTP 400): The collection exceeds the applicable payment rules. Check the collection basis and caps in details.paymentProblem before recording the payment.
      • INVALID_INVENTORY (HTTP 400): The content does not match the selected inventory contract. Do not retry unchanged. Fix the request against the operation's schema.
      • ANALYTICS_QUERY_REJECTED (HTTP 400): Use one read-only query over the admitted catalog and its supported functions. Rewrite the query as one read-only statement over the published catalog.
      • BODY_TOO_LARGE (HTTP 413): The request body exceeds the supported limit. Send a smaller body, or split the content into several requests.
      • NOT_FOUND (HTTP 404): The resource does not exist. Check the identifier. The record may not exist or may not be visible to this actor.
      • METHOD_NOT_ALLOWED (HTTP 405): The method is not supported for this resource. Use the HTTP method documented for this path.
      • CONFLICT (HTTP 409): The resource conflicts with its current state. Read the current state with the matching get operation, then decide again.
      • IDEMPOTENCY_CONFLICT (HTTP 409): The command key already identifies a different request. The requestKey was already used for a different request. Use a new key for a new action.
      • TRANSACTION_ABORTED (HTTP 409): The transaction rolled back without committing changes. Nothing was written. Retry the same request.
      • INVENTORY_INTEGRITY_CONFLICT (HTTP 409): The current build failed integrity verification. Do not retry. Report the integrity failure to an operator.
      • TEAM_PRIOR_UNRESOLVED (HTTP 409): Reconcile the existing team command before preparing another change. Reconcile the earlier team command (see details.commandId) before a new change.
      • COHORT_ACTIVE_REQUIRED (HTTP 409): Only an active cohort can create a new candidate snapshot. Read the current state with the matching get operation, then decide again.
      • COHORT_CUT_CHANGED (HTTP 409): The current cohort cut changed. Restart this read from the first page. Restart the paginated read from the first page.
      • COHORT_READ_REQUIRES_ACTIVE (HTTP 409): Only an active cohort has a current care-facts view. Read the current state with the matching get operation, then decide again.
      • COHORT_CUT_NEEDS_RECONCILIATION (HTTP 409): The cohort cut needs reconciliation before its care facts can be read. Read the current state with the matching get operation, then decide again.
      • PROGRAM_NEW_ASSESSMENT_REQUIRED (HTTP 409): Select a new eligible assessment recorded after the last participation change. Read the current state with the matching get operation, then decide again.
      • CONTRACT_CLOSED_WINDOW_CHANGE_UNSUPPORTED (HTTP 409): The proposed terms change component identities already fixed by an accepted close. Read the current state with the matching get operation, then decide again.
      • MINOR_UNIT_SCALE_MISMATCH (HTTP 400): A component's money is not in the minor units of its currency (ISO 4217). Write each component's money in the minor units of its currency (minorUnitScale 2 for COP, PEN, MXN and BRL; 0 for CLP) and propose again.
      • INVOICE_COMPONENT_AMBIGUOUS (HTTP 409): Invoice lines have no unique fee-for-service component. Route the lines in details.lineIds to their paying component, then request the proposal again. At most 100 identifiers are returned.
      • SITE_SUBSTITUTION_REFUSED (HTTP 409): The contract does not let this site serve for the contracted site as booked. Book at the contracted site, or at a site its contract lets serve for it on the appointment's day (listContractSites), recording what details.reason says is missing: the patient's acceptance or the payer's authorization.
      • RESOURCE_LIMIT_EXCEEDED (HTTP 422): This resource has reached its supported capacity. Do not retry. Reduce the request or archive records first.
      • MODULE_NOT_CONTRACTED (HTTP 422): The organization did not contract this module. Leave the module in details.module off: the organization did not contract it. Árbol adds it to the contract when the organization buys it.
      • MODULE_REQUIREMENT_MISSING (HTTP 422): This module needs one of the modules it requires to be on. Turn on, in the same request, one of the modules the module in details.module requires (getOrganizationModules lists them).
      • CAPABILITY_NOT_CONFIGURED (HTTP 422): This operation requires its governed native implementation before it can be activated. Do not retry. The capability is not enabled for this organization.
      • INSTALLATION_NOT_READY (HTTP 422): The installation cannot be activated: its app version is not certified or a credential its app declares is missing. Do not retry unchanged. Wait for a certified app version, record examples that cover every operation and change of a custom-http installation, or add the missing credentials to the deployment, then activate again.
      • EVIDENCE_NOT_READABLE (HTTP 422): Accepting evidence requires readable content and independent reporter provenance. Leave it pending until its source is readable. Leave the evidence pending until its source content is readable.
      • ANALYTICS_QUERY_LIMIT (HTTP 422): The query exceeded its bounded work, memory or output budget. Narrow the query. Narrow the query (filters, columns or range) and retry.
      • COMMIT_UNCERTAIN (HTTP 503): The commit outcome is unknown. Reconcile before retrying. The write may have happened. Repeat it with the same requestKey or read the record first.
      • DATABASE_UNAVAILABLE (HTTP 503): The database is unavailable. Retry later with backoff; for a write, reuse the same requestKey.
      • PIPELINE_UNAVAILABLE (HTTP 503): The pipeline is unavailable. Reconcile using the same request key. The write may have happened. Repeat it with the same requestKey or read the record first.
      • ASSISTANT_UNAVAILABLE (HTTP 503): The assistant is not available for this workspace. Do not retry. The capability is not enabled for this organization.
      • SERVICE_BUSY (HTTP 503): The service is handling its current request limit. Retry later with backoff; for a write, reuse the same requestKey.
      • INVALID_CONFIGURATION (HTTP 500): The request could not be completed. Retry once later; if it persists, report the requestId to support.
      • INTERNAL (HTTP 500): The request could not be completed. Retry once later; if it persists, report the requestId to support.
    • message
      string
      required

      Fixed English explanation for people; it may change without notice.

    • details
      optional
      object

      Extra data for the codes that need it; absent for every other code.

      • commandId
        optional
        string

        Identifier (tcm_ prefix) of the earlier team command to reconcile before retrying.

      • lineIds
        optional
        array of
        string

        Unassigned invoice lines that prevent a unique component proposal; at most 100.

      • module
        optional
        pgp
        or
        capitation
        or
        fee_for_service
        or
        results_payment
        or
        service_record
        or
        cac
        +11 more

        The module the failure is about, for example agenda.

      • paymentProblem
        optional
        rules_unavailable
        or
        not_collectable
        or
        not_for_this_person
        or
        basis_incomplete
        or
        moderator_fee_value
        or
        service_value_unavailable
        +3 more

        Why the collection was refused.

      • reason
        optional
        not_contracted
        or
        not_a_substitute
        or
        patient_acceptance_missing
        or
        payer_authorization_missing

        Why the booking's site was refused: not_contracted (the contracted site is not one of the contract that day), not_a_substitute (no substitution in force that day lets the site serve for it), patient_acceptance_missing or payer_authorization_missing (the substitution asks for them).

  • metadata
    object
    required

    Request metadata, including the request identifier.

    • requestId
      string
      required

      Server-assigned request identifier (opaque). Quote it when reporting a problem.

  • success
    false
    required

    Always false in a failure envelope.

503

Failure. The error.code is one of:

  • AUTHENTICATION_UNAVAILABLE: Retry later with backoff; for a write, reuse the same requestKey.
  • COMMIT_UNCERTAIN: The write may have happened. Repeat it with the same requestKey or read the record first.
  • DATABASE_UNAVAILABLE: Retry later with backoff; for a write, reuse the same requestKey.
  • PIPELINE_UNAVAILABLE: The write may have happened. Repeat it with the same requestKey or read the record first.
  • ASSISTANT_UNAVAILABLE: Do not retry. The capability is not enabled for this organization.
  • SERVICE_BUSY: Retry later with backoff; for a write, reuse the same requestKey.
JSON
  • error
    object
    required

    The stable failure code, its message and optional details.

    • code
      UNAUTHORIZED
      or
      AUTHENTICATION_UNAVAILABLE
      or
      ACCESS_DENIED
      or
      MODULE_DISABLED
      or
      INVALID_INPUT
      or
      USER_PAYMENT_REFUSED
      +33 more
      required

      Stable failure code. Branch on this value, never on message.

      • UNAUTHORIZED (HTTP 401): A valid access token is required. Obtain a fresh access token and repeat the request.
      • AUTHENTICATION_UNAVAILABLE (HTTP 503): Identity verification is temporarily unavailable. Retry later with backoff; for a write, reuse the same requestKey.
      • ACCESS_DENIED (HTTP 403): Access denied. Do not retry. The signed-in actor lacks this purpose or grant; ask an administrator.
      • MODULE_DISABLED (HTTP 403): This operation belongs to a module the organization does not use. Do not retry. The organization does not use the module in details.module (getSession lists the ones it uses); an administrator turns it on with setOrganizationModules.
      • INVALID_INPUT (HTTP 400): The request does not match the documented contract. Do not retry unchanged. Fix the request against the operation's schema.
      • USER_PAYMENT_REFUSED (HTTP 400): The collection exceeds the applicable payment rules. Check the collection basis and caps in details.paymentProblem before recording the payment.
      • INVALID_INVENTORY (HTTP 400): The content does not match the selected inventory contract. Do not retry unchanged. Fix the request against the operation's schema.
      • ANALYTICS_QUERY_REJECTED (HTTP 400): Use one read-only query over the admitted catalog and its supported functions. Rewrite the query as one read-only statement over the published catalog.
      • BODY_TOO_LARGE (HTTP 413): The request body exceeds the supported limit. Send a smaller body, or split the content into several requests.
      • NOT_FOUND (HTTP 404): The resource does not exist. Check the identifier. The record may not exist or may not be visible to this actor.
      • METHOD_NOT_ALLOWED (HTTP 405): The method is not supported for this resource. Use the HTTP method documented for this path.
      • CONFLICT (HTTP 409): The resource conflicts with its current state. Read the current state with the matching get operation, then decide again.
      • IDEMPOTENCY_CONFLICT (HTTP 409): The command key already identifies a different request. The requestKey was already used for a different request. Use a new key for a new action.
      • TRANSACTION_ABORTED (HTTP 409): The transaction rolled back without committing changes. Nothing was written. Retry the same request.
      • INVENTORY_INTEGRITY_CONFLICT (HTTP 409): The current build failed integrity verification. Do not retry. Report the integrity failure to an operator.
      • TEAM_PRIOR_UNRESOLVED (HTTP 409): Reconcile the existing team command before preparing another change. Reconcile the earlier team command (see details.commandId) before a new change.
      • COHORT_ACTIVE_REQUIRED (HTTP 409): Only an active cohort can create a new candidate snapshot. Read the current state with the matching get operation, then decide again.
      • COHORT_CUT_CHANGED (HTTP 409): The current cohort cut changed. Restart this read from the first page. Restart the paginated read from the first page.
      • COHORT_READ_REQUIRES_ACTIVE (HTTP 409): Only an active cohort has a current care-facts view. Read the current state with the matching get operation, then decide again.
      • COHORT_CUT_NEEDS_RECONCILIATION (HTTP 409): The cohort cut needs reconciliation before its care facts can be read. Read the current state with the matching get operation, then decide again.
      • PROGRAM_NEW_ASSESSMENT_REQUIRED (HTTP 409): Select a new eligible assessment recorded after the last participation change. Read the current state with the matching get operation, then decide again.
      • CONTRACT_CLOSED_WINDOW_CHANGE_UNSUPPORTED (HTTP 409): The proposed terms change component identities already fixed by an accepted close. Read the current state with the matching get operation, then decide again.
      • MINOR_UNIT_SCALE_MISMATCH (HTTP 400): A component's money is not in the minor units of its currency (ISO 4217). Write each component's money in the minor units of its currency (minorUnitScale 2 for COP, PEN, MXN and BRL; 0 for CLP) and propose again.
      • INVOICE_COMPONENT_AMBIGUOUS (HTTP 409): Invoice lines have no unique fee-for-service component. Route the lines in details.lineIds to their paying component, then request the proposal again. At most 100 identifiers are returned.
      • SITE_SUBSTITUTION_REFUSED (HTTP 409): The contract does not let this site serve for the contracted site as booked. Book at the contracted site, or at a site its contract lets serve for it on the appointment's day (listContractSites), recording what details.reason says is missing: the patient's acceptance or the payer's authorization.
      • RESOURCE_LIMIT_EXCEEDED (HTTP 422): This resource has reached its supported capacity. Do not retry. Reduce the request or archive records first.
      • MODULE_NOT_CONTRACTED (HTTP 422): The organization did not contract this module. Leave the module in details.module off: the organization did not contract it. Árbol adds it to the contract when the organization buys it.
      • MODULE_REQUIREMENT_MISSING (HTTP 422): This module needs one of the modules it requires to be on. Turn on, in the same request, one of the modules the module in details.module requires (getOrganizationModules lists them).
      • CAPABILITY_NOT_CONFIGURED (HTTP 422): This operation requires its governed native implementation before it can be activated. Do not retry. The capability is not enabled for this organization.
      • INSTALLATION_NOT_READY (HTTP 422): The installation cannot be activated: its app version is not certified or a credential its app declares is missing. Do not retry unchanged. Wait for a certified app version, record examples that cover every operation and change of a custom-http installation, or add the missing credentials to the deployment, then activate again.
      • EVIDENCE_NOT_READABLE (HTTP 422): Accepting evidence requires readable content and independent reporter provenance. Leave it pending until its source is readable. Leave the evidence pending until its source content is readable.
      • ANALYTICS_QUERY_LIMIT (HTTP 422): The query exceeded its bounded work, memory or output budget. Narrow the query. Narrow the query (filters, columns or range) and retry.
      • COMMIT_UNCERTAIN (HTTP 503): The commit outcome is unknown. Reconcile before retrying. The write may have happened. Repeat it with the same requestKey or read the record first.
      • DATABASE_UNAVAILABLE (HTTP 503): The database is unavailable. Retry later with backoff; for a write, reuse the same requestKey.
      • PIPELINE_UNAVAILABLE (HTTP 503): The pipeline is unavailable. Reconcile using the same request key. The write may have happened. Repeat it with the same requestKey or read the record first.
      • ASSISTANT_UNAVAILABLE (HTTP 503): The assistant is not available for this workspace. Do not retry. The capability is not enabled for this organization.
      • SERVICE_BUSY (HTTP 503): The service is handling its current request limit. Retry later with backoff; for a write, reuse the same requestKey.
      • INVALID_CONFIGURATION (HTTP 500): The request could not be completed. Retry once later; if it persists, report the requestId to support.
      • INTERNAL (HTTP 500): The request could not be completed. Retry once later; if it persists, report the requestId to support.
    • message
      string
      required

      Fixed English explanation for people; it may change without notice.

    • details
      optional
      object

      Extra data for the codes that need it; absent for every other code.

      • commandId
        optional
        string

        Identifier (tcm_ prefix) of the earlier team command to reconcile before retrying.

      • lineIds
        optional
        array of
        string

        Unassigned invoice lines that prevent a unique component proposal; at most 100.

      • module
        optional
        pgp
        or
        capitation
        or
        fee_for_service
        or
        results_payment
        or
        service_record
        or
        cac
        +11 more

        The module the failure is about, for example agenda.

      • paymentProblem
        optional
        rules_unavailable
        or
        not_collectable
        or
        not_for_this_person
        or
        basis_incomplete
        or
        moderator_fee_value
        or
        service_value_unavailable
        +3 more

        Why the collection was refused.

      • reason
        optional
        not_contracted
        or
        not_a_substitute
        or
        patient_acceptance_missing
        or
        payer_authorization_missing

        Why the booking's site was refused: not_contracted (the contracted site is not one of the contract that day), not_a_substitute (no substitution in force that day lets the site serve for it), patient_acceptance_missing or payer_authorization_missing (the substitution asks for them).

  • metadata
    object
    required

    Request metadata, including the request identifier.

    • requestId
      string
      required

      Server-assigned request identifier (opaque). Quote it when reporting a problem.

  • success
    false
    required

    Always false in a failure envelope.

default

JSON
  • error
    object
    required

    The stable failure code, its message and optional details.

    • code
      UNAUTHORIZED
      or
      AUTHENTICATION_UNAVAILABLE
      or
      ACCESS_DENIED
      or
      MODULE_DISABLED
      or
      INVALID_INPUT
      or
      USER_PAYMENT_REFUSED
      +33 more
      required

      Stable failure code. Branch on this value, never on message.

      • UNAUTHORIZED (HTTP 401): A valid access token is required. Obtain a fresh access token and repeat the request.
      • AUTHENTICATION_UNAVAILABLE (HTTP 503): Identity verification is temporarily unavailable. Retry later with backoff; for a write, reuse the same requestKey.
      • ACCESS_DENIED (HTTP 403): Access denied. Do not retry. The signed-in actor lacks this purpose or grant; ask an administrator.
      • MODULE_DISABLED (HTTP 403): This operation belongs to a module the organization does not use. Do not retry. The organization does not use the module in details.module (getSession lists the ones it uses); an administrator turns it on with setOrganizationModules.
      • INVALID_INPUT (HTTP 400): The request does not match the documented contract. Do not retry unchanged. Fix the request against the operation's schema.
      • USER_PAYMENT_REFUSED (HTTP 400): The collection exceeds the applicable payment rules. Check the collection basis and caps in details.paymentProblem before recording the payment.
      • INVALID_INVENTORY (HTTP 400): The content does not match the selected inventory contract. Do not retry unchanged. Fix the request against the operation's schema.
      • ANALYTICS_QUERY_REJECTED (HTTP 400): Use one read-only query over the admitted catalog and its supported functions. Rewrite the query as one read-only statement over the published catalog.
      • BODY_TOO_LARGE (HTTP 413): The request body exceeds the supported limit. Send a smaller body, or split the content into several requests.
      • NOT_FOUND (HTTP 404): The resource does not exist. Check the identifier. The record may not exist or may not be visible to this actor.
      • METHOD_NOT_ALLOWED (HTTP 405): The method is not supported for this resource. Use the HTTP method documented for this path.
      • CONFLICT (HTTP 409): The resource conflicts with its current state. Read the current state with the matching get operation, then decide again.
      • IDEMPOTENCY_CONFLICT (HTTP 409): The command key already identifies a different request. The requestKey was already used for a different request. Use a new key for a new action.
      • TRANSACTION_ABORTED (HTTP 409): The transaction rolled back without committing changes. Nothing was written. Retry the same request.
      • INVENTORY_INTEGRITY_CONFLICT (HTTP 409): The current build failed integrity verification. Do not retry. Report the integrity failure to an operator.
      • TEAM_PRIOR_UNRESOLVED (HTTP 409): Reconcile the existing team command before preparing another change. Reconcile the earlier team command (see details.commandId) before a new change.
      • COHORT_ACTIVE_REQUIRED (HTTP 409): Only an active cohort can create a new candidate snapshot. Read the current state with the matching get operation, then decide again.
      • COHORT_CUT_CHANGED (HTTP 409): The current cohort cut changed. Restart this read from the first page. Restart the paginated read from the first page.
      • COHORT_READ_REQUIRES_ACTIVE (HTTP 409): Only an active cohort has a current care-facts view. Read the current state with the matching get operation, then decide again.
      • COHORT_CUT_NEEDS_RECONCILIATION (HTTP 409): The cohort cut needs reconciliation before its care facts can be read. Read the current state with the matching get operation, then decide again.
      • PROGRAM_NEW_ASSESSMENT_REQUIRED (HTTP 409): Select a new eligible assessment recorded after the last participation change. Read the current state with the matching get operation, then decide again.
      • CONTRACT_CLOSED_WINDOW_CHANGE_UNSUPPORTED (HTTP 409): The proposed terms change component identities already fixed by an accepted close. Read the current state with the matching get operation, then decide again.
      • MINOR_UNIT_SCALE_MISMATCH (HTTP 400): A component's money is not in the minor units of its currency (ISO 4217). Write each component's money in the minor units of its currency (minorUnitScale 2 for COP, PEN, MXN and BRL; 0 for CLP) and propose again.
      • INVOICE_COMPONENT_AMBIGUOUS (HTTP 409): Invoice lines have no unique fee-for-service component. Route the lines in details.lineIds to their paying component, then request the proposal again. At most 100 identifiers are returned.
      • SITE_SUBSTITUTION_REFUSED (HTTP 409): The contract does not let this site serve for the contracted site as booked. Book at the contracted site, or at a site its contract lets serve for it on the appointment's day (listContractSites), recording what details.reason says is missing: the patient's acceptance or the payer's authorization.
      • RESOURCE_LIMIT_EXCEEDED (HTTP 422): This resource has reached its supported capacity. Do not retry. Reduce the request or archive records first.
      • MODULE_NOT_CONTRACTED (HTTP 422): The organization did not contract this module. Leave the module in details.module off: the organization did not contract it. Árbol adds it to the contract when the organization buys it.
      • MODULE_REQUIREMENT_MISSING (HTTP 422): This module needs one of the modules it requires to be on. Turn on, in the same request, one of the modules the module in details.module requires (getOrganizationModules lists them).
      • CAPABILITY_NOT_CONFIGURED (HTTP 422): This operation requires its governed native implementation before it can be activated. Do not retry. The capability is not enabled for this organization.
      • INSTALLATION_NOT_READY (HTTP 422): The installation cannot be activated: its app version is not certified or a credential its app declares is missing. Do not retry unchanged. Wait for a certified app version, record examples that cover every operation and change of a custom-http installation, or add the missing credentials to the deployment, then activate again.
      • EVIDENCE_NOT_READABLE (HTTP 422): Accepting evidence requires readable content and independent reporter provenance. Leave it pending until its source is readable. Leave the evidence pending until its source content is readable.
      • ANALYTICS_QUERY_LIMIT (HTTP 422): The query exceeded its bounded work, memory or output budget. Narrow the query. Narrow the query (filters, columns or range) and retry.
      • COMMIT_UNCERTAIN (HTTP 503): The commit outcome is unknown. Reconcile before retrying. The write may have happened. Repeat it with the same requestKey or read the record first.
      • DATABASE_UNAVAILABLE (HTTP 503): The database is unavailable. Retry later with backoff; for a write, reuse the same requestKey.
      • PIPELINE_UNAVAILABLE (HTTP 503): The pipeline is unavailable. Reconcile using the same request key. The write may have happened. Repeat it with the same requestKey or read the record first.
      • ASSISTANT_UNAVAILABLE (HTTP 503): The assistant is not available for this workspace. Do not retry. The capability is not enabled for this organization.
      • SERVICE_BUSY (HTTP 503): The service is handling its current request limit. Retry later with backoff; for a write, reuse the same requestKey.
      • INVALID_CONFIGURATION (HTTP 500): The request could not be completed. Retry once later; if it persists, report the requestId to support.
      • INTERNAL (HTTP 500): The request could not be completed. Retry once later; if it persists, report the requestId to support.
    • message
      string
      required

      Fixed English explanation for people; it may change without notice.

    • details
      optional
      object

      Extra data for the codes that need it; absent for every other code.

      • commandId
        optional
        string

        Identifier (tcm_ prefix) of the earlier team command to reconcile before retrying.

      • lineIds
        optional
        array of
        string

        Unassigned invoice lines that prevent a unique component proposal; at most 100.

      • module
        optional
        pgp
        or
        capitation
        or
        fee_for_service
        or
        results_payment
        or
        service_record
        or
        cac
        +11 more

        The module the failure is about, for example agenda.

      • paymentProblem
        optional
        rules_unavailable
        or
        not_collectable
        or
        not_for_this_person
        or
        basis_incomplete
        or
        moderator_fee_value
        or
        service_value_unavailable
        +3 more

        Why the collection was refused.

      • reason
        optional
        not_contracted
        or
        not_a_substitute
        or
        patient_acceptance_missing
        or
        payer_authorization_missing

        Why the booking's site was refused: not_contracted (the contracted site is not one of the contract that day), not_a_substitute (no substitution in force that day lets the site serve for it), patient_acceptance_missing or payer_authorization_missing (the substitution asks for them).

  • metadata
    object
    required

    Request metadata, including the request identifier.

    • requestId
      string
      required

      Server-assigned request identifier (opaque). Quote it when reporting a problem.

  • success
    false
    required

    Always false in a failure envelope.

Escribe para buscar…

↑↓ navegar↵ seleccionarEsc cerrar