Docusign · Capability

DocuSign REST API — TemplateLocks

DocuSign REST API — TemplateLocks. 4 operations. Lead operation: Docusign Gets template lock information.. Self-contained Naftiko capability covering one Docusign business surface.

Run with Naftiko DocusignTemplateLocks

What You Can Do

GET
Lockgettemplatelock — Docusign Gets template lock information.
/v1/v2/accounts/{accountid}/templates/{templateid}/lock
PUT
Lockputtemplatelock — Docusign Updates a template lock.
/v1/v2/accounts/{accountid}/templates/{templateid}/lock
POST
Lockposttemplatelock — Docusign Lock a template.
/v1/v2/accounts/{accountid}/templates/{templateid}/lock
DELETE
Lockdeletetemplatelock — Docusign Deletes a template lock.
/v1/v2/accounts/{accountid}/templates/{templateid}/lock

MCP Tools

docusign-gets-template-lock-information

Docusign Gets template lock information.

read-only idempotent
docusign-updates-template-lock

Docusign Updates a template lock.

idempotent
docusign-lock-template

Docusign Lock a template.

docusign-deletes-template-lock

Docusign Deletes a template lock.

idempotent

Capability Spec

docusign-templatelocks.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: DocuSign REST API — TemplateLocks
  description: 'DocuSign REST API — TemplateLocks. 4 operations. Lead operation: Docusign Gets template lock information..
    Self-contained Naftiko capability covering one Docusign business surface.'
  tags:
  - Docusign
  - TemplateLocks
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    DOCUSIGN_API_KEY: DOCUSIGN_API_KEY
capability:
  consumes:
  - type: http
    namespace: docusign-templatelocks
    baseUri: https://www.docusign.net/restapi
    description: DocuSign REST API — TemplateLocks business capability. Self-contained, no shared references.
    resources:
    - name: v2-accounts-accountId-templates-templateId-lock
      path: /v2/accounts/{accountId}/templates/{templateId}/lock
      operations:
      - name: lockgettemplatelock
        method: GET
        description: Docusign Gets template lock information.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: accountId
          in: path
          type: string
          description: The external account number (int) or account id GUID.
          required: true
        - name: templateId
          in: path
          type: string
          description: The ID of the template being accessed.
          required: true
      - name: lockputtemplatelock
        method: PUT
        description: Docusign Updates a template lock.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: accountId
          in: path
          type: string
          description: The external account number (int) or account id GUID.
          required: true
        - name: templateId
          in: path
          type: string
          description: The ID of the template being accessed.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: lockposttemplatelock
        method: POST
        description: Docusign Lock a template.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: accountId
          in: path
          type: string
          description: The external account number (int) or account id GUID.
          required: true
        - name: templateId
          in: path
          type: string
          description: The ID of the template being accessed.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: lockdeletetemplatelock
        method: DELETE
        description: Docusign Deletes a template lock.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: accountId
          in: path
          type: string
          description: The external account number (int) or account id GUID.
          required: true
        - name: templateId
          in: path
          type: string
          description: The ID of the template being accessed.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
  exposes:
  - type: rest
    namespace: docusign-templatelocks-rest
    port: 8080
    description: REST adapter for DocuSign REST API — TemplateLocks. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/v2/accounts/{accountid}/templates/{templateid}/lock
      name: v2-accounts-accountid-templates-templateid-lock
      description: REST surface for v2-accounts-accountId-templates-templateId-lock.
      operations:
      - method: GET
        name: lockgettemplatelock
        description: Docusign Gets template lock information.
        call: docusign-templatelocks.lockgettemplatelock
        with:
          accountId: rest.accountId
          templateId: rest.templateId
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: lockputtemplatelock
        description: Docusign Updates a template lock.
        call: docusign-templatelocks.lockputtemplatelock
        with:
          accountId: rest.accountId
          templateId: rest.templateId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: lockposttemplatelock
        description: Docusign Lock a template.
        call: docusign-templatelocks.lockposttemplatelock
        with:
          accountId: rest.accountId
          templateId: rest.templateId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: lockdeletetemplatelock
        description: Docusign Deletes a template lock.
        call: docusign-templatelocks.lockdeletetemplatelock
        with:
          accountId: rest.accountId
          templateId: rest.templateId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: docusign-templatelocks-mcp
    port: 9090
    transport: http
    description: MCP adapter for DocuSign REST API — TemplateLocks. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: docusign-gets-template-lock-information
      description: Docusign Gets template lock information.
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: docusign-templatelocks.lockgettemplatelock
      with:
        accountId: tools.accountId
        templateId: tools.templateId
      outputParameters:
      - type: object
        mapping: $.
    - name: docusign-updates-template-lock
      description: Docusign Updates a template lock.
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: docusign-templatelocks.lockputtemplatelock
      with:
        accountId: tools.accountId
        templateId: tools.templateId
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: docusign-lock-template
      description: Docusign Lock a template.
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: docusign-templatelocks.lockposttemplatelock
      with:
        accountId: tools.accountId
        templateId: tools.templateId
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: docusign-deletes-template-lock
      description: Docusign Deletes a template lock.
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: docusign-templatelocks.lockdeletetemplatelock
      with:
        accountId: tools.accountId
        templateId: tools.templateId
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.