put
https://{yourinstance}.makaira.io/antonym/
Update antonym by ID
Updates an existing antonym group.
Requires authentication.
Request
PUT /antonym/{id}
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | integer | Yes | The ID of the antonym group to update. |
Headers
| Header | Value |
|---|---|
Authorization | Bearer <token> |
Content-Type | application/json |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
name | string | No | Display name for this antonym group. |
language | string | No | Language code this antonym group applies to (e.g. de, en). |
antonyms | string | No | Comma-separated list of antonym terms. |
Example Request
{
"name": "Updated color antonyms",
"language": "de",
"antonyms": "rot, blau, grün, gelb"
}Response
Returns the updated antonym object.
Example Response
{
"id": 5,
"name": "Updated color antonyms",
"language": "de",
"antonyms": "rot, blau, grün, gelb"
} 200OK

