Update Field By Id
Update Field Information
This endpoint allows you to update the information of a specific field.
Request Body
-
description (string, required): The updated description of the field.
-
name (string, required): The new name of the field.
Example:
{
"description": "Currency Description Updated",
"name": "New Updated Name",
"privacyMode": "public"
}
Response
-
status (string): The status of the response.
-
data (object): An object containing the updated field information.
-
id (string): The ID of the field.
-
name (string): The name of the field.
-
description (string): The description of the field.
-
type (string): The type of the field.
-
isActive (boolean): Indicates if the field is active.
-
privacyMode (string): The privacy mode of the field.
-
createdAt (string): The date and time of creation.
-
updatedAt (string): The date and time of the last update.
Example Response:
{
"status": "",
"data": {
"id": "",
"name": "",
"description": "",
"type": "",
"isActive": true,
"privacyMode": "",
"createdAt": "",
"updatedAt": ""
}
}
Who can update a field
Anyone in your company can update any field in it. The endpoint scopes the write to your company, not to the person who created the field.
Sending the id in the body
You can also send PUT {{url}}/v1/fields with the field id in the request body instead of the path. Both forms run the same handler. Send the id in both places and the path value wins. Send it in neither and the request returns 400.
Errors
- 400 when no field id reaches the endpoint, in either the path or the body.
- 404 when your company has no field with that id.
- 409 when you change name to one that another field in your company already uses.
Request
- Base URL: https://api.speakai.co/v1
- URL: https://api.speakai.co/v1/fields/{id}
- Auth: API key in header x-speakai-key and API key in header x-access-token
Path parameters
Request body
Response
Success
Changes
No recorded changes to this operation across all 2 revisions of this API.