Skip to main content
DELETE
/
applications
/
{applicationId}
/
models
/
{modelId}
/
fields
/
{fieldId}
Remove a field from a model in the Application
curl --request DELETE \
  --url https://local.withsutro.com/applications/{applicationId}/models/{modelId}/fields/{fieldId} \
  --header 'Authorization: Bearer <token>' \
  --header 'x-sutro-api-client: <api-key>'
{
  "id": "<string>",
  "name": "<string>",
  "fields": [
    {
      "id": "<string>",
      "name": "<string>",
      "relationshipOwner": true,
      "min": 123,
      "max": 123,
      "to": "<string>",
      "accessControl": {
        "rules": [
          {
            "access": "allow",
            "criteria": "<string>"
          }
        ],
        "defaultAccess": "allow"
      },
      "computed": "<string>",
      "defaultValue": "<unknown>",
      "enum": [
        "<string>"
      ]
    }
  ],
  "accessControl": {
    "rules": [
      {
        "access": "allow",
        "criteria": "<string>"
      }
    ],
    "defaultAccess": "allow"
  }
}

Authorizations

Authorization
string
header
required

Builder authentication and authorization

x-sutro-api-client
string
header
required

A unique identifier for the API Client making a request

Path Parameters

applicationId
string<uuid>
required
modelId
string<uuid>
required
fieldId
string<uuid>
required

Response

The updated model

id
string
required

The unique identifier for the model, e.g. urn:sutro:model:supportRequest. Must start with "urn:sutro:model:".

name
string
required

The name of the model, e.g. Support Request

Example:

"Support Request"

fields
object[]
required
accessControl
object
required