Rename, retype or describe an entity, or confirm it
const url = 'https://shareout.site/v1/workspaces/example/knowledge/entities/example';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"name":"example","type":"example","description":"example","aliases":["example"],"confirm":true}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://shareout.site/v1/workspaces/example/knowledge/entities/example \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "name": "example", "type": "example", "description": "example", "aliases": [ "example" ], "confirm": true }'Owner/admin. Send any of name, type, description, aliases (replaces the team’s list), or {"confirm": true} alone. A renamed entity keeps its old name as an alias, so files that still use it land on it. The entity becomes the team’s (status: confirmed). Renaming onto a name another entity goes by is a 409 with a merge suggestion.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Workspace ID or slug.
Request Body
Section titled “Request Body”object
Example generated
{ "name": "example", "type": "example", "description": "example", "aliases": [ "example" ], "confirm": true}Responses
Section titled “Responses”Done. id is the entity, connection, fact or rule it touched (on a merge, the one kept).
object
Example generated
{ "ok": true, "id": "example"}Invalid request
object
Human-readable message.
Machine-readable error code.
Correlation id (also the X-Request-Id header). Quote it in support tickets.
Finer cause under code. For UNAUTHORIZED: missing, invalid, revoked or expired.
What to do next, in plain words.
The request field at fault.
Doc page for this error.
Present on 5xx — how to reach a human.
object
Example
{ "success": false, "support": { "how": "POST /v1/support/tickets", "include": [ "request_id" ] }}Access denied
object
Human-readable message.
Machine-readable error code.
Correlation id (also the X-Request-Id header). Quote it in support tickets.
Finer cause under code. For UNAUTHORIZED: missing, invalid, revoked or expired.
What to do next, in plain words.
The request field at fault.
Doc page for this error.
Present on 5xx — how to reach a human.
object
Example
{ "success": false, "support": { "how": "POST /v1/support/tickets", "include": [ "request_id" ] }}Resource not found
object
Human-readable message.
Machine-readable error code.
Correlation id (also the X-Request-Id header). Quote it in support tickets.
Finer cause under code. For UNAUTHORIZED: missing, invalid, revoked or expired.
What to do next, in plain words.
The request field at fault.
Doc page for this error.
Present on 5xx — how to reach a human.
object
Example
{ "success": false, "support": { "how": "POST /v1/support/tickets", "include": [ "request_id" ] }}The name belongs to another entity (CONFLICT, with a merge suggestion)
