There is an inconsistency between the OpenAPI specification and the actual API response Content-Type for the link records endpoint: https://app.nocodb.com/api/v2/tables/{tableId}/links/{linkFieldId}/records/{recordId}.
The OpenAPI specification clearly defines that 200 OK responses for the GET, POST, and DELETE operations on this path should return Content-Type: application/json. However, the API is currently returning Content-Type: text/html with a plain string body (e.g., “true” for POST/DELETE).
This mismatch causes issues for clients that strictly adhere to the OpenAPI specification for response deserialization. For example, our application, using a Rust OpenAPI client fails to deserialize the text/html response into the expected JSON structure.
Minimal cURL request (needs filled parameters of course):
curl -X POST 'https://app.nocodb.com/api/v2/tables/foo/links/bar/records/1234' -H 'xc-token: my_token' -H 'Content-Type: application/json' --data '{
"Id": 5678
}'