Skip to content

unable to update additional fields programmatically - API #1008

@fmeunierFKY

Description

@fmeunierFKY

Code of Conduct

  • I agree to follow this project's Code of Conduct

Is there an existing issue for this?

  • I have searched the existing issues

GLPI Version

GLPI 10.0.19

Plugin version

1.18.2

Bug description

Hello , i'm enable to update fiels with API

here is the code I use

--- Étape 1 : Mise à jour du champ 76668 (glpi_plugin_fields_environnementfielddropdowns) ---

$body = @{
input = @{
id = 2716
76668 = 1 # PPD
}
} | ConvertTo-Json -Depth 5

Invoke-RestMethod -Method Put -Uri "https://srv/apirest.php/Computer/2716" -Headers $headers -Body $body -ContentType "application/json" | Out-Null

the field value does not update to the value I want and still remain to wht is was before

any help ?

thnak youu

Relevant log output

Page URL

No response

Steps To reproduce

No response

Your GLPI setup information

No response

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions