GET /company/{uid}/positions

Récupère la liste de tous les postes (positions) d'une entreprise.

Informations retournées:

  • Liste des postes avec utilisateur, type et droits
  • Inclut les postes actifs et inactifs

Utilisation:

  • Administration des accès utilisateurs
  • Gestion des droits et permissions

Path parameters

  • uid string Required

    Identifiant unique de l'entreprise

Responses

  • 200 application/json

    Liste des postes de l'entreprise

    Hide response attribute Show response attribute object
    • positions array[object]
      Hide positions attributes Show positions attributes object
      • _id string

        Unique identifier for the position

      • company string

        ID of the company

      • user string

        ID of the user

      • userEmail string(email)

        Email of the user

      • first_name string

        First name

      • last_name string

        Last name

      • avatar string

        URL to avatar

      • state string

        State of the position

        Values are active or inactive.

      • type string

        Type of the position

      • rights array[object]

        List of rights

        Hide rights attributes Show rights attributes object
        • checked boolean

          Whether the right is checked

        • group string

          Group of the right

        • name string

          Name of the right

      • teams array[object]

        List of teams

        Hide teams attributes Show teams attributes object
        • team string

          ID of the team

        • rightType string

          Type of rights

        • default boolean

          Whether this is the default team

      • entry_date string(date-time)

        Date of entry

      • release_date string(date-time)

        Date of release

      • createdAt string(date-time)

        Date when position was created

      • updatedAt string(date-time)

        Date when position was last updated

  • 403

    Non autorisé - Droits insuffisants pour accéder aux postes

  • 404

    Entreprise non trouvée

GET /company/{uid}/positions
curl \
 --request GET 'https://wuro.pro/api/v3.2/company/{uid}/positions' \
 --header "X-APP-ID: $API_KEY" \
 --header "X-APP-SECRET: $API_KEY"
Response examples (200)
{
  "positions": [
    {
      "_id": "string",
      "company": "string",
      "user": "string",
      "userEmail": "hello@example.com",
      "first_name": "string",
      "last_name": "string",
      "avatar": "string",
      "state": "active",
      "type": "string",
      "rights": [
        {
          "checked": true,
          "group": "string",
          "name": "string"
        }
      ],
      "teams": [
        {
          "team": "string",
          "rightType": "string",
          "default": true
        }
      ],
      "entry_date": "2025-05-04T09:42:00Z",
      "release_date": "2025-05-04T09:42:00Z",
      "createdAt": "2025-05-04T09:42:00Z",
      "updatedAt": "2025-05-04T09:42:00Z"
    }
  ]
}