Account

Edit a saved config profile

Renames and/or re-configures a saved profile. At least one of name or config must be supplied (an empty patch is rejected). The 404 collapses 'wrong owner' and 'not found' by design — disclosing which would let a caller probe the id space across tenants. Session-cookie auth (NOT Bearer); cross-tenant isolation via the consumer_update_own_profiles RLS policy AND an explicit .eq('consumer_id', $1). Naturally idempotent (re-applying the same patch yields the same row); no Idempotency-Key header on this session-cookie surface.

patch/api/v1/account/profiles/{id}

Request

  • Base URL: https://www.apier.no
  • URL: https://www.apier.no/api/v1/account/profiles/{id}
  • Auth: API key in cookie sb-access-token

Request body

namestring

New name. Case-insensitively unique per consumer.

Response

Profile updated.

successtrue required

Example response

{
  "_meta": {
    "rulebook_version": "v1.0.0",
    "source": "apier.no",
    "data_source": "Brønnøysund Enhetsregisteret + Apier Universal Rulebook",
    "schema_version": "1.0.0",
    "legal_basis": "NLOD — public registry reuse",
    "response_timestamp": "2026-04-24T12:00:00.000Z",
    "response_hash": "sha256:0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef",
    "source_snapshot_id": "brreg-2026-04-24T02:00:00.000Z",
    "cost_nok": 0.5,
    "wallet_remaining_nok": 9.5,
    "spend_cap_remaining_nok": 12.5
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.