Met à jour un poste (position) existant dans une entreprise.
Modifications possibles:
- Changer le type de poste
- Modifier les droits spécifiques
- Activer/désactiver le poste
États du poste:
active: Poste actif, l'utilisateur a accès à l'entrepriseinactive: Poste désactivé, accès révoqué
Événement déclenché: UPDATE_POSITION
PATCH
/company/{company}/position/{uid}
curl \
--request PATCH 'https://wuro.pro/api/v3.2/company/{company}/position/{uid}' \
--header "X-APP-ID: $API_KEY" \
--header "X-APP-SECRET: $API_KEY" \
--header "Content-Type: application/json" \
--data '{"type":"string","rights":[{"name":"string","group":"string","checked":true}],"state":"active"}'
Request examples
{
"type": "string",
"rights": [
{
"name": "string",
"group": "string",
"checked": true
}
],
"state": "active"
}
Response examples (200)
{
"_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"
}