-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It is not possible to add values to additional entity fields via API #856
Comments
Can you redo a test by adding a new field to the payload corresponding to the ID of the corresponding container Best regards |
Hi @stonebuzz , I didn't quite understand what the c_id property is and how to find it to create the entity |
Hi @stonebuzz Thank you for your attention I tried to create the entity by passing the "c_id" property, but it still didn't work, the entity was created only with the values of the native fields. URL: .../apirest.php/Entity "infraresponsvelemailfield" and "infraresponsvelnomefield" are the additional fields. |
Code of Conduct
Is there an existing issue for this?
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
The text was updated successfully, but these errors were encountered: