> ## Documentation Index
> Fetch the complete documentation index at: https://docs.floral.so/llms.txt
> Use this file to discover all available pages before exploring further.

# Gendan en virksomhed

> Gendan en arkiveret virksomhed med dens stabile id.



## OpenAPI

````yaml /openapi/public-v1-da.json post /api/v1/workspaces/{workspaceSlug}/companies/{id}/restore
openapi: 3.1.0
info:
  description: Stabilt eksternt API til relationsopslag og mødeviden.
  title: Florals offentlige API
  version: 1.0.0
servers:
  - description: Produktion
    url: https://app.floral.so
security: []
tags:
  - description: Søg på tværs af aktive virksomheder og personer.
    name: Søgning
  - description: Opret, hent, gennemgå, opdatér, arkivér og gendan virksomheder.
    name: Virksomheder
  - description: Opret, hent, gennemgå, opdatér, arkivér og gendan personer.
    name: Personer
  - description: Læs aktive offentlige definitioner af brugerdefinerede felter.
    name: Brugerdefinerede felter
  - description: Søg i normaliserede fakta fra det danske virksomhedsregister.
    name: Virksomhedsregister
  - description: Opret, hent og gennemgå mødebriefings.
    name: Briefings
  - description: Hent, gennemgå, kommentér og godkend mødereferater.
    name: Referater
paths:
  /api/v1/workspaces/{workspaceSlug}/companies/{id}/restore:
    post:
      tags:
        - Virksomheder
      summary: Gendan en virksomhed
      description: Gendan en arkiveret virksomhed med dens stabile id.
      operationId: restoreCompanyV1
      parameters:
        - description: Slug for det arbejdsområde, adgangsoplysningen er bundet til.
          example: acme-nordic
          in: path
          name: workspaceSlug
          required: true
          schema:
            maxLength: 100
            minLength: 1
            pattern: ^[a-z0-9]+(?:-[a-z0-9]+)*$
            type: string
        - description: Stabilt numerisk ressource-id.
          example: 42
          in: path
          name: id
          required: true
          schema:
            minimum: 1
            type: integer
        - description: >-
            Valgfrit korrelations-id fra kalderen. Floral returnerer den
            anvendte værdi i X-Request-ID.
          example: 550e8400-e29b-41d4-a716-446655440000
          in: header
          name: X-Request-ID
          required: false
          schema:
            maxLength: 128
            minLength: 1
            type: string
        - description: >-
            Påkrævet idempotensnøgle. Identiske nye forsøg på samme kanoniske
            kald gentager oprindelig status, body, ETag, Location og request-id
            i 24 timer.
          example: restoreCompanyV1-20260816-001
          in: header
          name: Idempotency-Key
          required: true
          schema:
            type: string
            minLength: 1
            maxLength: 255
        - description: >-
            Stærk ETag fra seneste detalje- eller ændringssvar. En forældet
            værdi giver 412 VERSION_CONFLICT.
          example: '"v1.Y29tcGFueS00Mi00"'
          in: header
          name: If-Match
          required: true
          schema:
            pattern: ^"(?:[^"\\]|\\.)*"$
            type: string
      responses:
        '200':
          content:
            application/json:
              example:
                company:
                  annualRevenueOere: 12500000
                  archivedAt: null
                  customFields:
                    account_tier: growth
                  description: Nordisk leverandør af arbejdspladsdesign og møbler.
                  email: hello@acme-nordic.example
                  employeeCount: 48
                  id: 42
                  industry: Design
                  lastActivityAt: '2026-08-15T09:30:00.000Z'
                  lifecycleStage: PROSPECT
                  linkedinUrl: https://www.linkedin.com/company/acme-nordic
                  metadata:
                    source: partner-directory
                  name: Acme Nordic
                  organizationNumber: '12345678'
                  ownerUserIds:
                    - user_01J5N9CF9QY8T4M2A7W3R6K1P0
                  people:
                    - email: ada@acme-nordic.example
                      id: 84
                      name: Ada Jensen
                      title: Driftsdirektør
                  phone: +45 33 12 34 56
                  updatedAt: '2026-08-15T09:30:00.000Z'
                  version: v1.Y29tcGFueS00Mi00
                  website: https://acme-nordic.example
              schema:
                $ref: '#/components/schemas/CompanyDetailResponse'
          description: Virksomhed gendannet
          headers:
            X-Content-Type-Options:
              description: Angiver altid nosniff ved JSON API-svar.
              schema:
                const: nosniff
                type: string
            X-RateLimit-Limit:
              description: Højeste antal kald i det aktuelle tidsvindue.
              schema:
                minimum: 1
                type: integer
            X-RateLimit-Remaining:
              description: Resterende kald i det aktuelle tidsvindue.
              schema:
                minimum: 0
                type: integer
            X-Request-ID:
              description: >-
                Stabilt korrelations-id for kaldet eller en idempotent
                gentagelse.
              schema:
                minLength: 1
                type: string
            ETag:
              description: Uigennemsigtig version til en efterfølgende If-Match.
              example: '"v1.Y29tcGFueS00Mi00"'
              schema:
                pattern: ^"(?:[^"\\]|\\.)*"$
                type: string
        '400':
          content:
            application/json:
              example:
                error:
                  code: INVALID_INPUT
                  message: Kaldet indeholder ugyldige værdier.
                  requestId: 550e8400-e29b-41d4-a716-446655440000
              schema:
                allOf:
                  - $ref: '#/components/schemas/ApiErrorResponse'
                properties:
                  error:
                    properties:
                      code:
                        enum:
                          - INVALID_INPUT
                        type: string
                    required:
                      - code
                    type: object
                type: object
          description: 'Stabile fejl: INVALID_INPUT'
          headers:
            X-Content-Type-Options:
              description: Angiver altid nosniff ved JSON API-svar.
              schema:
                const: nosniff
                type: string
            X-RateLimit-Limit:
              description: Højeste antal kald i det aktuelle tidsvindue.
              schema:
                minimum: 1
                type: integer
            X-RateLimit-Remaining:
              description: Resterende kald i det aktuelle tidsvindue.
              schema:
                minimum: 0
                type: integer
            X-Request-ID:
              description: >-
                Stabilt korrelations-id for kaldet eller en idempotent
                gentagelse.
              schema:
                minLength: 1
                type: string
        '401':
          content:
            application/json:
              example:
                error:
                  code: UNAUTHENTICATED
                  message: En gyldig bearer-adgangsoplysning er påkrævet.
                  requestId: 550e8400-e29b-41d4-a716-446655440000
              schema:
                allOf:
                  - $ref: '#/components/schemas/ApiErrorResponse'
                properties:
                  error:
                    properties:
                      code:
                        enum:
                          - UNAUTHENTICATED
                        type: string
                    required:
                      - code
                    type: object
                type: object
          description: 'Stabile fejl: UNAUTHENTICATED'
          headers:
            X-Content-Type-Options:
              description: Angiver altid nosniff ved JSON API-svar.
              schema:
                const: nosniff
                type: string
            X-RateLimit-Limit:
              description: Højeste antal kald i det aktuelle tidsvindue.
              schema:
                minimum: 1
                type: integer
            X-RateLimit-Remaining:
              description: Resterende kald i det aktuelle tidsvindue.
              schema:
                minimum: 0
                type: integer
            X-Request-ID:
              description: >-
                Stabilt korrelations-id for kaldet eller en idempotent
                gentagelse.
              schema:
                minLength: 1
                type: string
            WWW-Authenticate:
              description: Udfordring til bearer-godkendelse.
              example: Bearer realm="floral-api"
              schema:
                type: string
        '403':
          content:
            application/json:
              example:
                error:
                  code: FORBIDDEN
                  message: Adgangsoplysningen giver ikke adgang til denne handling.
                  requestId: 550e8400-e29b-41d4-a716-446655440000
              schema:
                allOf:
                  - $ref: '#/components/schemas/ApiErrorResponse'
                properties:
                  error:
                    properties:
                      code:
                        enum:
                          - FORBIDDEN
                        type: string
                    required:
                      - code
                    type: object
                type: object
          description: 'Stabile fejl: FORBIDDEN'
          headers:
            X-Content-Type-Options:
              description: Angiver altid nosniff ved JSON API-svar.
              schema:
                const: nosniff
                type: string
            X-RateLimit-Limit:
              description: Højeste antal kald i det aktuelle tidsvindue.
              schema:
                minimum: 1
                type: integer
            X-RateLimit-Remaining:
              description: Resterende kald i det aktuelle tidsvindue.
              schema:
                minimum: 0
                type: integer
            X-Request-ID:
              description: >-
                Stabilt korrelations-id for kaldet eller en idempotent
                gentagelse.
              schema:
                minLength: 1
                type: string
        '404':
          content:
            application/json:
              example:
                error:
                  code: NOT_FOUND
                  message: Ressourcen blev ikke fundet.
                  requestId: 550e8400-e29b-41d4-a716-446655440000
              schema:
                allOf:
                  - $ref: '#/components/schemas/ApiErrorResponse'
                properties:
                  error:
                    properties:
                      code:
                        enum:
                          - NOT_FOUND
                          - FEATURE_DISABLED
                        type: string
                    required:
                      - code
                    type: object
                type: object
          description: 'Stabile fejl: NOT_FOUND, FEATURE_DISABLED'
          headers:
            X-Content-Type-Options:
              description: Angiver altid nosniff ved JSON API-svar.
              schema:
                const: nosniff
                type: string
            X-RateLimit-Limit:
              description: Højeste antal kald i det aktuelle tidsvindue.
              schema:
                minimum: 1
                type: integer
            X-RateLimit-Remaining:
              description: Resterende kald i det aktuelle tidsvindue.
              schema:
                minimum: 0
                type: integer
            X-Request-ID:
              description: >-
                Stabilt korrelations-id for kaldet eller en idempotent
                gentagelse.
              schema:
                minLength: 1
                type: string
        '409':
          content:
            application/json:
              example:
                error:
                  code: CONFLICT
                  message: >-
                    Den ønskede ændring er i konflikt med ressourcens aktuelle
                    tilstand.
                  requestId: 550e8400-e29b-41d4-a716-446655440000
              schema:
                allOf:
                  - $ref: '#/components/schemas/ApiErrorResponse'
                properties:
                  error:
                    properties:
                      code:
                        enum:
                          - CONFLICT
                          - INVALID_STATE
                          - IDEMPOTENCY_CONFLICT
                        type: string
                    required:
                      - code
                    type: object
                type: object
          description: 'Stabile fejl: CONFLICT, INVALID_STATE, IDEMPOTENCY_CONFLICT'
          headers:
            X-Content-Type-Options:
              description: Angiver altid nosniff ved JSON API-svar.
              schema:
                const: nosniff
                type: string
            X-RateLimit-Limit:
              description: Højeste antal kald i det aktuelle tidsvindue.
              schema:
                minimum: 1
                type: integer
            X-RateLimit-Remaining:
              description: Resterende kald i det aktuelle tidsvindue.
              schema:
                minimum: 0
                type: integer
            X-Request-ID:
              description: >-
                Stabilt korrelations-id for kaldet eller en idempotent
                gentagelse.
              schema:
                minLength: 1
                type: string
        '412':
          content:
            application/json:
              example:
                error:
                  code: VERSION_CONFLICT
                  message: Ressourcen er ændret, siden den blev læst.
                  requestId: 550e8400-e29b-41d4-a716-446655440000
              schema:
                allOf:
                  - $ref: '#/components/schemas/ApiErrorResponse'
                properties:
                  error:
                    properties:
                      code:
                        enum:
                          - VERSION_CONFLICT
                        type: string
                    required:
                      - code
                    type: object
                type: object
          description: 'Stabile fejl: VERSION_CONFLICT'
          headers:
            X-Content-Type-Options:
              description: Angiver altid nosniff ved JSON API-svar.
              schema:
                const: nosniff
                type: string
            X-RateLimit-Limit:
              description: Højeste antal kald i det aktuelle tidsvindue.
              schema:
                minimum: 1
                type: integer
            X-RateLimit-Remaining:
              description: Resterende kald i det aktuelle tidsvindue.
              schema:
                minimum: 0
                type: integer
            X-Request-ID:
              description: >-
                Stabilt korrelations-id for kaldet eller en idempotent
                gentagelse.
              schema:
                minLength: 1
                type: string
        '428':
          content:
            application/json:
              example:
                error:
                  code: PRECONDITION_REQUIRED
                  message: If-Match er påkrævet til denne handling.
                  requestId: 550e8400-e29b-41d4-a716-446655440000
              schema:
                allOf:
                  - $ref: '#/components/schemas/ApiErrorResponse'
                properties:
                  error:
                    properties:
                      code:
                        enum:
                          - PRECONDITION_REQUIRED
                        type: string
                    required:
                      - code
                    type: object
                type: object
          description: 'Stabile fejl: PRECONDITION_REQUIRED'
          headers:
            X-Content-Type-Options:
              description: Angiver altid nosniff ved JSON API-svar.
              schema:
                const: nosniff
                type: string
            X-RateLimit-Limit:
              description: Højeste antal kald i det aktuelle tidsvindue.
              schema:
                minimum: 1
                type: integer
            X-RateLimit-Remaining:
              description: Resterende kald i det aktuelle tidsvindue.
              schema:
                minimum: 0
                type: integer
            X-Request-ID:
              description: >-
                Stabilt korrelations-id for kaldet eller en idempotent
                gentagelse.
              schema:
                minLength: 1
                type: string
        '429':
          content:
            application/json:
              example:
                error:
                  code: RATE_LIMITED
                  message: For mange kald. Prøv igen om lidt.
                  requestId: 550e8400-e29b-41d4-a716-446655440000
              schema:
                allOf:
                  - $ref: '#/components/schemas/ApiErrorResponse'
                properties:
                  error:
                    properties:
                      code:
                        enum:
                          - RATE_LIMITED
                        type: string
                    required:
                      - code
                    type: object
                type: object
          description: 'Stabile fejl: RATE_LIMITED'
          headers:
            X-Content-Type-Options:
              description: Angiver altid nosniff ved JSON API-svar.
              schema:
                const: nosniff
                type: string
            X-RateLimit-Limit:
              description: Højeste antal kald i det aktuelle tidsvindue.
              schema:
                minimum: 1
                type: integer
            X-RateLimit-Remaining:
              description: Resterende kald i det aktuelle tidsvindue.
              schema:
                minimum: 0
                type: integer
            X-Request-ID:
              description: >-
                Stabilt korrelations-id for kaldet eller en idempotent
                gentagelse.
              schema:
                minLength: 1
                type: string
            Retry-After:
              description: Sekunder til den aktuelle grænse nulstilles.
              schema:
                minimum: 1
                type: integer
        '500':
          content:
            application/json:
              example:
                error:
                  code: INTERNAL_ERROR
                  message: Der opstod en uventet fejl.
                  requestId: 550e8400-e29b-41d4-a716-446655440000
              schema:
                allOf:
                  - $ref: '#/components/schemas/ApiErrorResponse'
                properties:
                  error:
                    properties:
                      code:
                        enum:
                          - INTERNAL_ERROR
                        type: string
                    required:
                      - code
                    type: object
                type: object
          description: 'Stabile fejl: INTERNAL_ERROR'
          headers:
            X-Content-Type-Options:
              description: Angiver altid nosniff ved JSON API-svar.
              schema:
                const: nosniff
                type: string
            X-RateLimit-Limit:
              description: Højeste antal kald i det aktuelle tidsvindue.
              schema:
                minimum: 1
                type: integer
            X-RateLimit-Remaining:
              description: Resterende kald i det aktuelle tidsvindue.
              schema:
                minimum: 0
                type: integer
            X-Request-ID:
              description: >-
                Stabilt korrelations-id for kaldet eller en idempotent
                gentagelse.
              schema:
                minLength: 1
                type: string
      security:
        - bearerAuth: []
      x-codeSamples:
        - label: cURL
          lang: Shell
          source: |-
            curl --request POST \
              --url 'https://app.floral.so/api/v1/workspaces/acme-nordic/companies/42/restore' \
              --header 'Authorization: Bearer $FLORAL_TOKEN' \
              --header 'Idempotency-Key: restoreCompanyV1-20260816-001' \
              --header 'If-Match: "v1.Y29tcGFueS00Mi00"'
components:
  schemas:
    CompanyDetailResponse:
      $schema: https://json-schema.org/draft/2020-12/schema
      type: object
      properties:
        company:
          type: object
          properties:
            id:
              type: integer
              exclusiveMinimum: 0
              maximum: 9007199254740991
            version:
              type: string
              minLength: 1
              maxLength: 512
              pattern: ^v1\.[A-Za-z0-9_-]+$
            name:
              type: string
              minLength: 1
              maxLength: 255
            organizationNumber:
              type: string
              pattern: ^(?:|\d{8})$
            email:
              anyOf:
                - type: string
                  maxLength: 320
                  format: email
                  pattern: >-
                    ^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$
                - type: 'null'
            phone:
              anyOf:
                - type: string
                  maxLength: 32
                - type: 'null'
            website:
              anyOf:
                - type: string
                  maxLength: 255
                  pattern: ^https?:\/\/
                - type: 'null'
            industry:
              anyOf:
                - type: string
                  maxLength: 128
                - type: 'null'
            employeeCount:
              anyOf:
                - type: integer
                  minimum: 0
                  maximum: 10000000
                - type: 'null'
            annualRevenueOere:
              anyOf:
                - type: integer
                  minimum: 0
                  maximum: 9007199254740991
                - type: 'null'
            description:
              anyOf:
                - type: string
                  maxLength: 5000
                - type: 'null'
            linkedinUrl:
              anyOf:
                - type: string
                  maxLength: 255
                  pattern: ^https?:\/\/
                - type: 'null'
            lifecycleStage:
              anyOf:
                - type: string
                  enum:
                    - LEAD
                    - PROSPECT
                    - CUSTOMER
                    - CHURNED
                - type: 'null'
            lastActivityAt:
              anyOf:
                - type: string
                  format: date-time
                  pattern: >-
                    ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
                - type: 'null'
            archivedAt:
              anyOf:
                - type: string
                  format: date-time
                  pattern: >-
                    ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
                - type: 'null'
            updatedAt:
              type: string
              format: date-time
              pattern: >-
                ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
            metadata:
              maxProperties: 50
              type: object
              propertyNames:
                type: string
                minLength: 1
                maxLength: 40
              additionalProperties:
                type: string
                maxLength: 500
            customFields:
              maxProperties: 50
              type: object
              propertyNames:
                type: string
                pattern: ^[a-z][a-z0-9_]{0,62}$
              additionalProperties:
                anyOf:
                  - type: string
                    maxLength: 5000
                  - type: number
                  - type: boolean
                  - maxItems: 50
                    type: array
                    items:
                      type: string
                      maxLength: 1000
            ownerUserIds:
              maxItems: 50
              type: array
              items:
                type: string
                minLength: 1
                maxLength: 255
            people:
              maxItems: 50
              type: array
              items:
                type: object
                properties:
                  id:
                    type: integer
                    exclusiveMinimum: 0
                    maximum: 9007199254740991
                  name:
                    type: string
                  email:
                    type: string
                  title:
                    anyOf:
                      - type: string
                      - type: 'null'
                required:
                  - id
                  - name
                  - email
                  - title
                additionalProperties: false
          required:
            - id
            - version
            - name
            - organizationNumber
            - email
            - phone
            - website
            - industry
            - employeeCount
            - annualRevenueOere
            - description
            - linkedinUrl
            - lifecycleStage
            - lastActivityAt
            - archivedAt
            - updatedAt
            - metadata
            - customFields
            - ownerUserIds
            - people
          additionalProperties: false
      required:
        - company
      additionalProperties: false
    ApiErrorResponse:
      additionalProperties: false
      properties:
        error:
          additionalProperties: false
          properties:
            code:
              enum:
                - CONFLICT
                - FEATURE_DISABLED
                - FORBIDDEN
                - IDEMPOTENCY_CONFLICT
                - INTERNAL_ERROR
                - INVALID_INPUT
                - INVALID_STATE
                - NOT_FOUND
                - PRECONDITION_REQUIRED
                - RATE_LIMITED
                - UNAUTHENTICATED
                - VERSION_CONFLICT
              type: string
            message:
              minLength: 1
              type: string
            requestId:
              maxLength: 128
              minLength: 1
              type: string
          required:
            - code
            - message
            - requestId
          type: object
      required:
        - error
      type: object
  securitySchemes:
    bearerAuth:
      bearerFormat: Floral PAT
      description: >-
        Godkend med en personlig Floral-adgangsnøgle, der er bundet til ét
        arbejdsområde.
      scheme: bearer
      type: http

````