Skip to the page

Search the titles, headings and text of every guide and API reference page.

    Chapters

    Offices

    Update a practice group

    PATCH/api/v1/practice_groups/{id}

    Renames the group or changes its client_reference (null clears it); send at least one. Needs practice groups enabled for the organization: otherwise 403 FEATURE_NOT_ENABLED. Needs an Idempotency-Key header and a key with the submit permission.

    Needs a key with submit permission.

    Request

    Headers

    Headers
    NameTypeRequiredDescription
    Idempotency-KeystringrequiredMakes the request safe to repeat: a request with the same key and body returns the first answer (the reply has an idempotent-replayed header), and the same key with a different request is refused. 1 to 255 printable characters; a UUID is a good choice.At least 1 character.At most 255 characters.Matches `^[\x21-\x7e]{1,255}$`.

    Path parameters

    Path parameters
    NameTypeRequiredDescription
    idstringrequiredA practice group ID (pgr_...).

    Body

    Body
    NameTypeRequiredDescription
    namestringoptionalThe group's name: up to 120 characters.At least 1 character.At most 120 characters.
    client_referencestring or nulloptionalYour own ID for it (from your practice management system, say): up to 120 characters. Blank or null clears it.At most 120 characters.

    Response

    The practice group as it is now. Status 200.

    Response fields
    NameTypeDescription
    idstringAn ID that starts with pgr_.
    objectstringAlways `practice_group`.
    namestring
    client_referencevalueYour own ID for the group; null when none was given.
    office_countintegerHow many offices are in the group.At least -9007199254740991.
    modestringOne of: `test`, `live`.
    created_atstring (date-time)
    updated_atstring (date-time)

    Errors

    Errors
    HTTP statusCodeWhat it means
    401UNAUTHORIZEDA valid API key is required. Send it as "Authorization: Bearer <key>".
    403PERMISSION_DENIEDThis API key is not allowed to do that.
    403FEATURE_NOT_ENABLEDPractice groups are not enabled for this organization. Ask Claim House to turn them on.
    404NOT_FOUNDNot found.
    422INVALID_REQUESTThe request is not valid.
    400IDEMPOTENCY_KEY_REQUIREDThis request needs an Idempotency-Key header: a value you make up (a UUID is good), new for each new request.
    400IDEMPOTENCY_KEY_INVALIDThe Idempotency-Key header must be 1 to 255 printable characters.
    422IDEMPOTENCY_KEY_REUSEDThat Idempotency-Key was already used with a different request.
    409IDEMPOTENCY_KEY_IN_USEA request with that Idempotency-Key is still running. Send it again with the same key after Retry-After seconds.
    429TOO_MANY_REQUESTSToo many requests of this kind lately. Wait, then try again.
    413PAYLOAD_TOO_LARGEThe request body is larger than 1 MB.
    504TIMEOUTThe request took too long. Send it again with the same Idempotency-Key and body after Retry-After seconds: a 409 means it is still finishing (wait and send again), and any other answer is final. If this 504 comes back, find what the request made by listing with ?idempotency_key=<the key>.
    500INTERNALSomething went wrong on our side. Quote the request ID if you contact us.

    Example

    Example request

    Shell
    curl -X PATCH "https://app.myclaimhouse.com/api/v1/practice_groups/pgr_01JM000000E008000000000090" \
      -H "Authorization: Bearer $CLAIMHOUSE_KEY" \
      -H "Idempotency-Key: $(uuidgen)" \
      -H "Content-Type: application/json" \
      -d '{
      "name": "Example Northeast Region"
    }'

    Example response: 200

    JSON
    {
      "id": "pgr_01JM000000E008000000000090",
      "object": "practice_group",
      "name": "Example Northeast Region",
      "client_reference": "REGION-N",
      "office_count": 1,
      "mode": "test",
      "created_at": "2026-01-20T10:00:00+00:00",
      "updated_at": "2026-02-01T09:30:00+00:00"
    }