Skip to content

no more unable to update fields with APi #1191

@fmeunierFKY

Description

@fmeunierFKY

Hello, I'm not able to update fields from API, in the past I was able to do.

here is my body
$body = '{"input": {"id":15,"comment":"Serveur virtuel applicatif - Test Commentaire API","plugin_fields_socitfielddropdowns_id":"2"}}'

and the post here

Invoke-WebRequest -Uri ("$base_url/Computer") -Body $body -ContentType "application/json" -Headers $headers -Method PUT -UseBasicParsing

but the additionnal ield dos not want to change, for the Comment field it is OK

If a connect with my APU user from the web interface I can change the field.

any idea ?

thanks a lot !

Additional fields
GPL v2+ TECLIB
Moron 1.23.3

GLPI 11.0.5 Copyright (C) 2015-2026 Teclib' and contributors

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions