Chilkat Online Tools

Unicode C++ / Microsoft Graph / Create connection

Back to Collection Items

void ChilkatSample(void)
    {
    json.UpdateString(L"id",L"sampleConnectionId");    json.UpdateString(L"name",L"Sample connection");    json.UpdateString(L"description",L"Sample connection description");    http.put_AuthToken(L"<access_token>");
    }

Curl Command

curl -X POST
	-H "Authorization: Bearer <access_token>"
	-H "Content-Type: application/json"
	-d '{
    "id": "sampleConnectionId",
    "name": "Sample connection",
    "description": "Sample connection description"
}'
https://graph.microsoft.com/v1.0/external/connections

Postman Collection Item JSON

{
  "name": "Create connection",
  "event": [
    {
      "listen": "test",
      "script": {
        "exec": [
          ""
        ],
        "type": "text/javascript"
      }
    }
  ],
  "request": {
    "method": "POST",
    "header": [
      {
        "key": "Content-Type",
        "name": "Content-Type",
        "type": "text",
        "value": "application/json"
      }
    ],
    "body": {
      "mode": "raw",
      "raw": "{\r\n    \"id\": \"sampleConnectionId\",\r\n    \"name\": \"Sample connection\",\r\n    \"description\": \"Sample connection description\"\r\n}"
    },
    "url": {
      "raw": "https://graph.microsoft.com/v1.0/external/connections",
      "protocol": "https",
      "host": [
        "graph",
        "microsoft",
        "com"
      ],
      "path": [
        "v1.0",
        "external",
        "connections"
      ]
    }
  },
  "response": [
  ]
}