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": []
}

Author: Debajit

I am a Dynamics CRM Most Valuable Professional (MVP) with 12 years of experience in Microsoft .NET Technologies and 9 years of dedicated experience in Microsoft Dynamics CRM. I have worked with companies like Microsoft, SanDisk, PwC, TMF Group and have extensive experience of implementing complex CRM solutions from both offshore and client side. Currently the face of XrmForYou.com with significant experience in delivering corporate training on Dynamics CRM and have already delivered multiple projects to client through XrmForYou.com Author of multiple tools on codeplex including the 'Role Based Views' and 'CRM-Sharepoint Metadata manager & Attachment Extractor' which are available for commercial use under XrmForYou.com For consulting/ training, drop me a note at info@xrmforyou.com or visit our website www.xrmforyou.com

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