applications

Mettre à jour une application

Ce endpoint permet de mettre à jour une application existante. Vous devez fournir l'identifiant de l'application dans l'URL et les nouvelles données dans le corps de la requête. Les données de mise à jour doivent correspondre aux champs.

patch/api/v2/applications/{applicationId}

Request

  • The document declares no server URL.
  • Auth: one of:
    • OAuth 2 (authorization code, authorization URL http://localhost:8082/realms/referentiel-applications/protocol/openid-connect/auth, token URL http://localhost:8082/realms/referentiel-applications/protocol/openid-connect/token)
    • API key in header x-refapp-token

Path parameters

applicationIdstring required

Request body

labelstring

Label of the application

shortNamestring

Short name of the application

logostring

Logo URL of the application

descriptionstring

Description of the application

targetPopulationsstring[]

population associated with the application

priorityRestart'R0' | 'R1' | 'R1_STAR' | 'R2' | 'R3'
purposesstring[]

Purposes of the application

type'business' | 'core_service' | 'intranet_citizen' | 'intranet_staff' | 'data_hub'

Type of the application

tagsstring[]
businessDivisionIdsstring[]

Ids des directions de metier de l'application MOA

Example request

{
  "label": "My Application",
  "shortName": "short-app-name",
  "logo": "http://example.com/logo.png",
  "description": "An amazing application",
  "targetPopulations": [
    "population 1",
    "population 2"
  ],
  "purposes": [
    "finance",
    "HR"
  ],
  "tags": [
    "tag1",
    "tag2"
  ]
}

Response

Application mise à jour avec succès

logostring nullable required

URL of the application logo

status'under_construction' | 'to_validate' | 'poc' | 'in_production_mvp' | 'in_production' | 'in_production_decommissioning' | 'decommissioned' | 'deleted'

Nouveau statut de l'application

priorityRestart'R0' | 'R1' | 'R1_STAR' | 'R2' | 'R3'
idstring required
labelstring required
shortNamestring nullable required
descriptionstring required
targetPopulationsstring[] required
purposesstring[] required
qualitynumber nullable required

Example response

{
  "logo": "https://example.com/logo.png",
  "technicalDebtInfo": {
    "technicalMaturity": 3.2,
    "businessMaturity": 4.5,
    "costContainment": 2.75,
    "millesime": 2026,
    "id": "uuid-example",
    "applicationId": "uuid-example"
  },
  "businessDivisions": [
    {
      "label": "farm"
    }
  ]
}

Changes

No operation changes recorded.