Pages
Create page
Creates a new page in request<br>Required scopes: <b>write_requests</b>
post/partner_api/v1/pages
Request
- Base URLhttps://api.contentsnare.com
- Auth
- OAuth 2Authorization code: /oauth/authorizationToken URL: /oauth/token scopes: write_requests
- or HTTP bearer
Request body
Example request
{
"name": "Page 1",
"request_id": "req_1k7zv4aUlpN8PB",
"source_template_id": "rtp_Nx5ELrl9S0glZ1",
"source_template_name": "Page Template 1"
}Response
successful
Example response
{
"approved_fields_count": 1,
"done_fields_count": 1,
"fields_count": 2,
"id": "pag_jAxqEgBi4prM6g",
"instruction_text": "<h5>Page instruction</h5>",
"is_approved": true,
"name": "Page 1",
"reference_id": "rpag_jAxqEgBi4prM6g",
"sections": [
{
"fields": [
{
"additional_fields": [
{
"id": "afd_LWdqOpnaT56vo0",
"text": "Option1"
}
],
"answers": [
{
"attachment": {
"byte_size": 74226,
"filename": "doc1.jpeg",
"signed_id": "eyJfcmFpbHMiOnsibWVzc2FnZSI6...",
"url": "https://example.com/documents/doc1.jpeg"
},
"id": "ans_RQ1zp49c7Xz4km",
"field_id": "fld_1lqbwY6TaMPmAo",
"link": "https://...",
"rejection_comment": "rejection reason",
"row": [
{
"field_column_id": "fcl_G60KqQ61ubvAnP",
"text": "table cell text"
}
],
"sorting_position": 3,
"status": "todo",
"text": [
"answer text"
]
}
],
"field_columns": [
{
"id": "fcl_G60KqQ61ubvAnP",
"name": "Column 1",
"required": true
}
],
"field_configuration": {
"id": "afd_LWdqOpnaT56vo0",
"settings": {
"some_setting1": "val1",
"some_setting2": {
"nested_setting1": "val2"
}
}
},
"id": "fld_1lqbwY6TaMPmAo",
"images": [
{
"byte_size": 74226,
"filename": "doc1.jpeg",
"image": {
"height": 183,
"url": "https://example.com/documents/doc1.jpeg",
"width": 275
},
"signed_id": "eyJfcmFpbHMiOnsibWVzc2FnZSI6...",
"thumbnail": {
"height": 64,
"url": "https://example.com/documents/thumbnails/doc1.jpeg",
"width": 92
},
"url": "https://example.com/documents/doc1.jpeg"
}
],
"instruction_text": "<h5>Field instruction</h5>",
"min_answer_count": 1,
"max_answer_count": 5,
"name": "Text Field 1",
"placeholder": "Placeholder text",
"rejection_message": {
"text": "rejection reason"
},
"repeater_enabled": true,
"sorting_position": 5,
"status": "redo",
"reference_id": "rfld_1lqbwY6TaMPmAo",
"sub_type": "text",
"type": "Fields::Text",
"values": [
"Example completed field answer"
],
"values_flat": "Example completed field answer",
"values_structured": [
{
"value": "Example completed field answer"
}
]
}
],
"id": "sec_YlVGMK1svdga0D",
"instruction_text": "<h5>Section instruction</h5>",
"name": "Section 1",
"show_instruction": true,
"sorting_position": 1,
"reference_id": "rsec_YlVGMK1svdga0D"
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.