Skip to main content
PATCH
/
api
/
v1
/
documents
/
{id}
/
fields
/
{fieldId}
Update a document field
curl --request PATCH \
  --url https://app.sajn.se/api/v1/documents/{id}/fields/{fieldId} \
  --header 'Content-Type: application/json' \
  --header 'authorization: <authorization>' \
  --data '{
  "type": "TEXT",
  "position": 123,
  "key": "<string>",
  "fieldMeta": {
    "type": "TEXT",
    "content": "<string>"
  }
}'
{
  "message": "<string>"
}

Headers

authorization
string
required

Bearer token for API authentication

Path Parameters

id
string
required
fieldId
string
required

Body

application/json

Body

type
enum<string>
Available options:
TEXT,
FORM,
PDF,
PRODUCT_TABLE,
TABLE
position
number
key
string
fieldMeta
object
  • Option 1
  • Option 2
  • Option 3
  • Option 4
  • Option 5

Response

Error response

message
string
required

Error message describing what went wrong

I