Skip to content

It is not possible to add values ​​to additional entity fields via API #856

@topcon-roberto-coutinho

Description

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

10.0.16

Plugin version

1.21.15

Bug description

I'm making a post request to create an entity, but only the native fields are defined, the additional fields are blank, to create tickets I do the same and it works perfectly.

Example:

URI: .../apirest.php/Entity

Request Type: POST

{
"input":{
"name": "test",
"testonefield": "test value",
"entities_id": 0,
"level":2
}
}

In this example, the test entity is created, but the testonefield field is blank.

Relevant log output

No response

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

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions