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": "SignatureDemo",
    "termsOfService": "
https://prod-82.westus.logic.azure.com/terms-of-service",
    "contact": {
      "name": "Debajit Dutta",
      "url": "
http://www.xrmforyou.com",
      "email": "debajit.dutta@xrmforyou.com"
    }
  },
  "host": "prod-82.westus.logic.azure.com:443",
  "basePath": "/workflows",
  "schemes": [
    "https"
  ],
  "consumes": [],
  "produces": [],
  "paths": {
    "/bff4ca2dbe0049f7bf5474b54710b96b/triggers/manual/paths/invoke": {
      "post": {
        "summary": "Save signature to Dynamics 365",
         "operationId": "SendSignatureToFlow",
        "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": "bVg0NQ9QteaQFQehWqkDmjiz8vQNSZUHMFUwWaEQ2QE",
            "description": "",
            "required": true,
            "x-ms-visibility": "internal"
          },
          {
            "name": "recordid",
            "in": "query",
            "type": "string",
            "description": "",
            "required": true
          },
          {
            "name": "file",
             "in": "formData",

            "type": "file",
             "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