Skip to main content
POST
/
api
/
placeholder
curl -X POST 'https://api.sendforsign.com/api/placeholder' \
     -H 'X-Sendforsign-Key: YOUR_API_KEY' \
     -H 'Content-Type: application/json' \
     -d '{
    "data": {
        "action": "update",
        "clientKey": "YOUR_CLIENT_KEY",
        "contractKey": "CONTRACT_KEY",
        "placeholders": [
            {
                "placeholderKey": "PLACEHOLDER_KEY",
                "insertion": [
                    {
                        "action": "update",
                        "clientKey": "YOUR_CLIENT_KEY",
                        "id": 0,
                        "pageId": 0,
                        "width": 100,
                        "height": 100,
                        "positionX": 1,
                        "positionY": 1
                    }
                ]
            }
        ]
    }
}'
{
    "code": 201,
    "message": "Placeholder updated"
}
Basic placeholders are text placeholders that can be used to fill in HTML and PDF contracts. Additionally, they can be linked to any recipient afterward. Before placing placeholders in a PDF, you need to create them in advance.

Body parameters

data
object
required

Response

placeholder
string
Placeholder structure.
code
string
The code of the answer.
message
string
The message of the answer.
curl -X POST 'https://api.sendforsign.com/api/placeholder' \
     -H 'X-Sendforsign-Key: YOUR_API_KEY' \
     -H 'Content-Type: application/json' \
     -d '{
    "data": {
        "action": "update",
        "clientKey": "YOUR_CLIENT_KEY",
        "contractKey": "CONTRACT_KEY",
        "placeholders": [
            {
                "placeholderKey": "PLACEHOLDER_KEY",
                "insertion": [
                    {
                        "action": "update",
                        "clientKey": "YOUR_CLIENT_KEY",
                        "id": 0,
                        "pageId": 0,
                        "width": 100,
                        "height": 100,
                        "positionX": 1,
                        "positionY": 1
                    }
                ]
            }
        ]
    }
}'
{
    "code": 201,
    "message": "Placeholder updated"
}