Skip to main content
POST
/
api
/
v1
/
documents
/
{id}
/
fields
Create a document field
curl --request POST \
  --url https://app.sajn.se/api/v1/documents/{id}/fields \
  --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

Body

application/json

Body

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

Response

Error response

message
string
required

Error message describing what went wrong

I