C / DocuSign REST API / Delete a notary jurisdiction a specified user.
        
        Back to Collection Items
        #include <C_CkHttp.h>
#include <C_CkJsonObject.h>
#include <C_CkStringBuilder.h>
#include <C_CkHttpResponse.h>
void ChilkatSample(void)
    {
    HCkHttp http;
    BOOL success;
    HCkJsonObject json;
    HCkStringBuilder sbRequestBody;
    HCkHttpResponse resp;
    // This example assumes the Chilkat API to have been previously unlocked.
    // See Global Unlock Sample for sample code.
    http = CkHttp_Create();
    // Use this online tool to generate code from sample JSON: Generate Code to Create JSON
    // The following JSON is sent in the request body.
    // {}
    json = CkJsonObject_Create();
    // Adds the "Authorization: Bearer {{accessToken}}" header.
    CkHttp_putAuthToken(http,"{{accessToken}}");
    CkHttp_SetRequestHeader(http,"Accept","application/json");
    sbRequestBody = CkStringBuilder_Create();
    CkJsonObject_EmitSb(json,sbRequestBody);
    resp = CkHttpResponse_Create();
    success = CkHttp_HttpSb(http,"DELETE","https://domain.com/v2.1/current_user/notary/jurisdictions/{{jurisdictionId}}",sbRequestBody,"utf-8","application/json",resp);
    if (success == FALSE) {
        printf("%s\n",CkHttp_lastErrorText(http));
        CkHttp_Dispose(http);
        CkJsonObject_Dispose(json);
        CkStringBuilder_Dispose(sbRequestBody);
        CkHttpResponse_Dispose(resp);
        return;
    }
    printf("%d\n",CkHttpResponse_getStatusCode(resp));
    printf("%s\n",CkHttpResponse_bodyStr(resp));
    CkHttp_Dispose(http);
    CkJsonObject_Dispose(json);
    CkStringBuilder_Dispose(sbRequestBody);
    CkHttpResponse_Dispose(resp);
    }
        Curl Command
        curl -X DELETE
	-H "Accept: application/json"
	-H "Authorization: Bearer {{accessToken}}"
	-d '{}'
https://domain.com/v2.1/current_user/notary/jurisdictions/{{jurisdictionId}}
        Postman Collection Item JSON
        {
  "name": "Delete a notary jurisdiction a specified user.",
  "request": {
    "method": "DELETE",
    "header": [
      {
        "key": "Accept",
        "value": "application/json"
      },
      {
        "key": "Authorization",
        "value": "Bearer {{accessToken}}"
      }
    ],
    "body": {
      "mode": "raw",
      "raw": "{}"
    },
    "url": {
      "raw": "{{baseUrl}}/v2.1/current_user/notary/jurisdictions/{{jurisdictionId}}",
      "host": [
        "{{baseUrl}}"
      ],
      "path": [
        "v2.1",
        "current_user",
        "notary",
        "jurisdictions",
        "{{jurisdictionId}}"
      ],
      "variable": [
        {
          "key": "jurisdictionId",
          "value": "{{jurisdictionId}}"
        }
      ]
    }
  },
  "response": [
  ]
}