organizations

Créer une nouvelle organisation

Changed on

Ce endpoint permet de créer une organisation complète

Vous devez fournir les informations suivantes :

  • label: Le libellé de l'organisation
  • url: L'url de l'organisation
  • sigle: Le sigle de l'organisation
  • parentId: L'identifiant de l'organisation parente
post/api/v2/organizations

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

Request body

pathstring required

Nom de l'organisation

urlstring

url de l'organisation

siglestring

sigle de l'organisation

parentIdstring

L'identifiant de l'organisation parente

businessDivisionIdstring nullable

L'identifiant de la direction métier associée (null pour détacher)

Example request

{
  "path": "Direction de la transformation numérique",
  "sigle": "dtnum",
  "parentId": "f09ed26a-8415-476a-be3b-ada479291c34",
  "businessDivisionId": "f09ed26a-8415-476a-be3b-ada479291c34"
}

Response

Organisation Créée avec succes

idstring required

L'identifiant de l'organisation

pathstring required

Nom de l'organisation

urlstring nullable required

url de l'organisation

siglestring nullable required

sigle de l'organisation

parentIdstring nullable required

L'identifiant de l'organisation parente

businessDivisionIdstring nullable required

L'identifiant de la direction métier associée

Example response

{
  "id": "f09ed26a-8415-476a-be3b-ada479291c34",
  "path": "Direction de la transformation numérique",
  "sigle": "dtnum",
  "parentId": "f09ed26a-8415-476a-be3b-ada479291c34",
  "businessDivisionId": "f09ed26a-8415-476a-be3b-ada479291c34",
  "businessDivision": {
    "label": "farm"
  },
  "maiaReferences": [
    {
      "id": "f09ed26a-8415-476a-be3b-ada479291c34",
      "maiaRef": "MI/DNUM/SDID",
      "organizationId": "f09ed26a-8415-476a-be3b-ada479291c34"
    }
  ]
}

Changes

    • breaking

      added the pattern \S to the request property

    • info

      added the non-success response with the status

    • info

      added the new optional request property

    • info

      added the optional property to the response with the status