Enspace
  1. Items
Enspace
  • Introduction
  • Authentication
  • Concepts
  • First Steps
  • Workspaces
    • Types
      • Fields
        • List Fields
        • Create Field
        • Get Field
        • Field Updated
        • Delete Field
      • Items
        • List Items
          GET
        • Create Item
          POST
        • Count Items
          GET
        • Get Item
          GET
        • Update Item
          PUT
        • Delete item
          DELETE
      • List Types
        GET
      • Count Types
        GET
      • Get specific Type
        GET
      • Create Type
        POST
      • Update Type
        PUT
      • Delete Type
        DELETE
    • Members
      • List Members
      • Count Members
      • Get Member
      • New Member
      • Update Member
      • Remove Member
    • Roles
      • List roles
      • Create role
      • Get specific job title
      • Count positions
      • Update job title
      • Delete role
      • List Role Permissions
      • Add Permission to Role
      • Remove Role Permission
    • Member Groups
      • List groups
      • New group
      • Get group
      • Update group
      • Delete group
      • Add Users
      • Remove Users
    • List Workspaces
      GET
    • Workspace Context
      GET
    • New Workspace
      POST
    • Leave the workspace
      POST
    • Workspace Statistics
      GET
    • Workspace Deletion Preview
      GET
    • Delete Workspace
      DELETE
  • User
    • Audit Logs
    • List API Keys
  1. Items

Delete item

Develop Env
https://api-develop.enspace.io
Develop Env
https://api-develop.enspace.io
DELETE
https://api-develop.enspace.io
/ws/types/{slug}/items/{reference}
Responsável:Julio Cordeiro

Delete Item#

Permanently removes an item from the system.

Parameters#

slug (path) - Unique slug of the Type
reference (path) - Unique reference of the Item

Response#

Returns the removed item object.

Important Notes#

⚠️ WARNING: This action is irreversible!
The item will be permanently deleted
All associated data will be lost
Cannot be recovered after deletion

Recommended Alternatives#

1. Soft Delete (Recommended)#

Instead of deleting, mark as inactive:

2. Archiving#

Security Checks#

Delete permission on the Type
Critical action confirmation
Automatic audit logging

Impacts#

Relationships with other items may be affected
References in workflows will be broken
Activity history will be kept for audit purposes

Requisição

Authorization
API Key
Adicionar parâmetro em header
x-api-key
Exemplo:
x-api-key: ********************
API Key
Adicionar parâmetro em header
en-workspace
Exemplo:
en-workspace: ********************
or
Parâmetros de Caminho

Parâmetros Header

Respostas

🟢200OK
application/json
Item removed.
Body

Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request DELETE 'https://api-develop.enspace.io/ws/types//items/' \
--header 'x-api-key: <api-key>' \
--header 'en-workspace: <api-key>'
Response Response Example
{
    "id": 0,
    "reference": "string",
    "status": "string",
    "created_at": "2019-08-24T14:15:22Z",
    "updated_at": "2019-08-24T14:15:22Z",
    "type": {
        "id": 0,
        "name": "string",
        "slug": "string",
        "description": "string",
        "created_at": "2019-08-24T14:15:22Z",
        "updated_at": "2019-08-24T14:15:22Z",
        "fields_count": 0,
        "items_count": 0,
        "config": {}
    },
    "data": {}
}
Página anterior
Update Item
Próxima página
List Types
Built with