|
| 1 | +{ |
| 2 | + "operations": { |
| 3 | + "AddSection": { |
| 4 | + "summary": "Add a section to a given site page", |
| 5 | + "uri": "/sites/{siteRef}/pages/{pageRef}/sections", |
| 6 | + "httpMethod": "POST", |
| 7 | + "parameters": { |
| 8 | + "siteRef": { |
| 9 | + "description": "Site reference to retrieve site.", |
| 10 | + "location": "uri", |
| 11 | + "required": true, |
| 12 | + "type": "integer" |
| 13 | + }, |
| 14 | + "pageRef": { |
| 15 | + "description": "Page reference for adding a new section.", |
| 16 | + "location": "uri", |
| 17 | + "required": true, |
| 18 | + "type": "integer" |
| 19 | + }, |
| 20 | + "template": { |
| 21 | + "description": "ID of the row template to use eg image_text_2a", |
| 22 | + "location": "json", |
| 23 | + "required": true, |
| 24 | + "type": "string" |
| 25 | + }, |
| 26 | + "siblingRef": { |
| 27 | + "description": "The sectionRef of the section that the new section is to be positioned relative to. If blank the new section will be added to the end of the main content.", |
| 28 | + "location": "json", |
| 29 | + "required": false, |
| 30 | + "type": "string" |
| 31 | + }, |
| 32 | + "position": { |
| 33 | + "description": "Relative position to the sibling section, above or below.", |
| 34 | + "location": "json", |
| 35 | + "required": false, |
| 36 | + "type": "string" |
| 37 | + } |
| 38 | + } |
| 39 | + }, |
| 40 | + "GetSections": { |
| 41 | + "summary": "Retrieve a list of sections on a given page", |
| 42 | + "uri": "/sites/{siteRef}/pages/{pageRef}/sections", |
| 43 | + "httpMethod": "GET", |
| 44 | + "parameters": { |
| 45 | + "siteRef": { |
| 46 | + "description": "Site reference to retrieve site.", |
| 47 | + "location": "uri", |
| 48 | + "required": true, |
| 49 | + "type": "integer" |
| 50 | + }, |
| 51 | + "pageRef": { |
| 52 | + "description": "Page reference for getting all sections.", |
| 53 | + "location": "uri", |
| 54 | + "required": true, |
| 55 | + "type": "integer" |
| 56 | + } |
| 57 | + } |
| 58 | + }, |
| 59 | + "DeleteSection": { |
| 60 | + "summary": "Delete a section, and its child widgets, by the section's sectionRef", |
| 61 | + "uri": "/sites/{siteRef}/pages/{pageRef}/sections/{sectionRef}", |
| 62 | + "httpMethod": "DELETE", |
| 63 | + "parameters": { |
| 64 | + "siteRef": { |
| 65 | + "description": "Site reference to retrieve site.", |
| 66 | + "location": "uri", |
| 67 | + "required": true, |
| 68 | + "type": "integer" |
| 69 | + }, |
| 70 | + "pageRef": { |
| 71 | + "description": "Page containing the section to be deleted.", |
| 72 | + "location": "uri", |
| 73 | + "required": true, |
| 74 | + "type": "integer" |
| 75 | + }, |
| 76 | + "sectionRef": { |
| 77 | + "description": "Section reference returned from the AddSection or GetSections calls.", |
| 78 | + "location": "uri", |
| 79 | + "required": true, |
| 80 | + "type": "string" |
| 81 | + } |
| 82 | + } |
| 83 | + }, |
| 84 | + "UpdateSectionWidget": { |
| 85 | + "summary": "Update the data in a widget contained within a section", |
| 86 | + "uri": "/sites/{siteRef}/pages/{pageRef}/sections/{sectionRef}/widgets/{widgetRef}", |
| 87 | + "httpMethod": "PUT", |
| 88 | + "parameters": { |
| 89 | + "siteRef": { |
| 90 | + "description": "Site reference to retrieve site.", |
| 91 | + "location": "uri", |
| 92 | + "required": true, |
| 93 | + "type": "integer" |
| 94 | + }, |
| 95 | + "pageRef": { |
| 96 | + "description": "Page containing the section widget to be updated.", |
| 97 | + "location": "uri", |
| 98 | + "required": true, |
| 99 | + "type": "integer" |
| 100 | + }, |
| 101 | + "sectionRef": { |
| 102 | + "description": "Section reference returned from the AddSection or GetSections calls containing the widget to update.", |
| 103 | + "location": "uri", |
| 104 | + "required": true, |
| 105 | + "type": "string" |
| 106 | + }, |
| 107 | + "widgetRef": { |
| 108 | + "description": "Widget ref to update, returned from the AddSection call.", |
| 109 | + "location": "uri", |
| 110 | + "required": true, |
| 111 | + "type": "integer" |
| 112 | + } |
| 113 | + }, |
| 114 | + "additionalParameters": { |
| 115 | + "location": "json" |
| 116 | + } |
| 117 | + } |
| 118 | + } |
| 119 | +} |
0 commit comments