Enspace
  1. Fields
Enspace
  • Introduction
  • Authentication
  • Concepts
  • First Steps
  • Workspaces
    • Types
      • Fields
        • List Fields
          GET
        • Create Field
          POST
        • Get Field
          GET
        • Field Updated
          PUT
        • Delete Field
          DELETE
      • Items
        • List Items
        • Create Item
        • Count Items
        • Get Item
        • Update Item
        • Delete item
      • 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. Fields

Field Updated

Em desenvolvimento
Develop Env
https://api-develop.enspace.io
Develop Env
https://api-develop.enspace.io
PUT
https://api-develop.enspace.io
/ws/types/{slug}/fields/{fieldId}
Responsável:Julio Cordeiro

Update Field#

Updates the settings of an existing field.

Parameters#

slug (path) - Unique slug of the Type
fieldId (path) - ID of the Field

Request Body#

Only the fields sent will be updated. It is not necessary to send all fields.

Important Notes#

⚠️ Be careful when updating fields in use:
Changing a field type may cause data loss
Making a field required may invalidate existing items
Deactivating a field does not delete data, it only hides the field

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 Bodyapplication/json

Examples

Respostas

🟢200OK
application/json
Field updated.
Body

🟠400Invalid request
🟠401Unauthorized
🟠404Record not found
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT 'https://api-develop.enspace.io/ws/types//fields/' \
--header 'x-api-key: <api-key>' \
--header 'en-workspace: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "name": "string",
    "slug": "string",
    "type": "text",
    "required": false,
    "config": {},
    "order": 0
}'
Response Response Example
200 - Exemplo 1
Página anterior
Get Field
Próxima página
Delete Field
Built with