Permanently deletes an additional entity field by its ID.
Reference
POST https://YOUR-NETWORK-DOMAIN/rest-api/additional-entity-fields-configuration/delete.do
Permanently deletes an additional entity field by its ID. If the specified ID is null or does not correspond to an existing field, the operation completes silently with a success response. An action log entry is recorded when a field is actually deleted. This operation cannot be undone. Requires the ADDITIONAL_ENTITIES_FIELDS_CONFIGURATION admin permission.
Form Params
idinteger
Unique numeric identifier of the additional entity field to delete. If null or not found, the operation succeeds silently.
123
Responses
200
JSON with 'success: true' indicating the field was deleted or did not exist
400
Bad request — invalid or missing parameters
401
Authentication error - invalid hash, timestamp, or username
403
Forbidden - user lacks ADDITIONAL_ENTITIES_FIELDS_CONFIGURATION permission
using var client = new HttpClient();
var request = new HttpRequestMessage(new HttpMethod("POST"), "https://YOUR-NETWORK-DOMAIN/rest-api/additional-entity-fields-configuration/delete.do");
request.Headers.Add("X-Api-Key", "YOUR_API_KEY");
request.Content = new FormUrlEncodedContent(new Dictionary<string, string> { ["id"] = "123" });
var response = await client.SendAsync(request);
Console.WriteLine(await response.Content.ReadAsStringAsync());