Get an Access Token
curl -X POST "https://api.aspose.cloud/connect/token" \
-d "grant_type=client_credentials&client_id=MyClientId&client_secret=MyClientSecret" \
-H "Content-Type: application/x-www-form-urlencoded"
Hide the Shape
curl -X PUT "https://api.aspose.cloud/v3.0/slides/MyPresentation.pptx/slides/1/shapes/4?subShape=2&folder=MyFolder" \
-H "authorization: Bearer MyAccessToken" \
-H "Content-Type: application/json" \
-d @ShapeProperties.json
ShapeProperties.json content:
Response Example
{
"type": "Shape",
"text": "",
"paragraphs": {
"href": "https://api.aspose.cloud/v3.0/slides/MyPresentation.pptx/slides/1/shapes/4/shapes/2/paragraphs?folder=MyFolder",
"relation": "self",
"slideIndex": 1,
"shapeIndex": 2
},
"textFrameFormat": {
"threeDFormat": {
"contourWidth": 0.0,
"depth": 0.0,
"extrusionHeight": 0.0
},
"transform": "NotDefined"
},
"shapeType": "Rectangle",
"name": "Rectangle 2",
"width": 72.0,
"height": 72.0,
"alternativeText": "",
"hidden": true,
"x": 276.2474,
"y": 205.36087,
"zOrderPosition": 1,
"fillFormat": {
"type": "Solid",
"color": "#FF4472C4"
},
"threeDFormat": {
"contourWidth": 0.0,
"depth": 0.0,
"extrusionHeight": 0.0
},
"lineFormat": {
"alignment": "Center",
"capStyle": "Flat",
"dashStyle": "Solid",
"joinStyle": "Miter",
"style": "Single",
"beginArrowHead": {
"length": "Medium",
"style": "None",
"width": "Medium"
},
"endArrowHead": {
"length": "Medium",
"style": "None",
"width": "Medium"
},
"fillFormat": {
"type": "Solid",
"color": "#FF2F528F"
},
"miterLimit": 8.0,
"width": 1.0
},
"selfUri": {
"href": "https://api.aspose.cloud/v3.0/slides/MyPresentation.pptx/slides/1/shapes/3/shapes/2?folder=MyFolder",
"relation": "self",
"slideIndex": 1
}
}