OPEN API sample JSON

This post is being referred from: https://debajmecrm.com/2019/03/16/solved-save-customer-signature-from-a-canvas-app-in-dynamics-365-multiline-text-field/

The explanation of the highlighted parts of is explained in the parent link.

{
    "swagger": "2.0",
    "info": {
        "description": "API to save signature as base64",
        "version": "1.0.0",
        "title": "UpdateSignaturetoAccount",
        "termsOfService": "https://<your domain for http trigger>.westus.logic.azure.com/terms-of-service",
        "contact": {
            "name": "Debajit Dutta",
            "url": "http://www.xrmforyou.com",
            "email": "debajit.dutta@xrmforyou.com"
        }
    },
    "host": "<your domain for http trigger>.westus.logic.azure.com:443",
    "basePath": "/workflows",
    "schemes": [
        "https"
    ],
    "consumes": [],
    "produces": [],
    "paths": {
        "/06781ec9396c44b0810abf56c7511c73/triggers/manual/paths/invoke": {
            "post": {
                "summary": "Save signature to Dynamics 365",
                "operationId": "SignatureToFlow",
                "produces": [
                    "application/json"
                ],
                "responses": {
                    "202": {
                        "description": "Accepted"
                    }
                },
                "parameters": [
                    {
                        "name": "content-type",
                        "in": "header",
                        "description": "",
                        "type": "string",
                        "required": true
                    },
                    {
                        "name": "api-version",
                        "in": "query",
                        "type": "string",
                        "default": "2016-06-01",
                        "description": "",
                        "required": true,
                        "x-ms-visibility": "internal"
                    },
                    {
                        "name": "sp",
                        "in": "query",
                        "type": "string",
                        "default": "/triggers/manual/run",
                        "description": "",
                        "required": true,
                        "x-ms-visibility": "internal"
                    },
                    {
                        "name": "sv",
                        "in": "query",
                        "type": "string",
                        "default": "1.0",
                        "description": "",
                        "required": true,
                        "x-ms-visibility": "internal"
                    },
                    {
                        "name": "sig",
                        "in": "query",
                        "type": "string",
                        "default": "jmdbo2bnxDHQtc7AfPESsEBWA_QXBD_Cm4_-qK6zg_U",
                        "description": "",
                        "required": true,
                        "x-ms-visibility": "internal"
                    },
                    {
                        "name": "recordid",
                        "in": "query",
                        "type": "string",
                        "description": "",
                        "required": true
                    },
                    {
                        "name": "content",
                        "in": "body",
                        "schema": {
                            "type": "string",
                            "format":  "byte"
                        },
                        "description": "Signature to upload.",
                        "required": true
                    }
                ]
            }
        }
    },
    "definitions": {},
    "parameters": {},
    "responses": {},
    "securityDefinitions": {},
    "security": [],
    "tags": []
}
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s