{
  "opencollection": "1.0.0",
  "info": {
    "name": "Unlock Locksmith Applications Metadata API",
    "version": "2"
  },
  "items": [
    {
      "info": {
        "name": "Metadata",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "lockMetadata",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://locksmith.unlock-protocol.com/v2/api/metadata/:network/locks/:lockAddress",
            "params": [
              {
                "name": "network",
                "value": "",
                "type": "path",
                "description": "Network id."
              },
              {
                "name": "lockAddress",
                "value": "",
                "type": "path",
                "description": "Lock address."
              }
            ]
          },
          "docs": "Get metadata for lock address."
        },
        {
          "info": {
            "name": "updateLockMetadata",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://locksmith.unlock-protocol.com/v2/api/metadata/:network/locks/:lockAddress",
            "params": [
              {
                "name": "network",
                "value": "",
                "type": "path",
                "description": "Network id."
              },
              {
                "name": "lockAddress",
                "value": "",
                "type": "path",
                "description": "Lock address."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Update or create metadata for lock address."
        },
        {
          "info": {
            "name": "keyMetadata",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://locksmith.unlock-protocol.com/v2/api/metadata/:network/locks/:lockAddress/keys/:keyId",
            "params": [
              {
                "name": "network",
                "value": "",
                "type": "path",
                "description": "Network id."
              },
              {
                "name": "lockAddress",
                "value": "",
                "type": "path",
                "description": "Lock address."
              },
              {
                "name": "keyId",
                "value": "",
                "type": "path",
                "description": "Key Id."
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Get key and user metadata."
        },
        {
          "info": {
            "name": "updateKeyMetadata",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://locksmith.unlock-protocol.com/v2/api/metadata/:network/locks/:lockAddress/keys/:keyId",
            "params": [
              {
                "name": "network",
                "value": "",
                "type": "path",
                "description": "Network id."
              },
              {
                "name": "lockAddress",
                "value": "",
                "type": "path",
                "description": "Lock address."
              },
              {
                "name": "keyId",
                "value": "",
                "type": "path",
                "description": "Key Id."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Update or create metadata for key."
        },
        {
          "info": {
            "name": "getUserMetadata",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://locksmith.unlock-protocol.com/v2/api/metadata/:network/locks/:lockAddress/users/:userAddress",
            "params": [
              {
                "name": "lockAddress",
                "value": "",
                "type": "path",
                "description": "Lock address."
              },
              {
                "name": "userAddress",
                "value": "",
                "type": "path",
                "description": "User address."
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "get user metadata for a lock."
        },
        {
          "info": {
            "name": "updateUserMetadata",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://locksmith.unlock-protocol.com/v2/api/metadata/:network/locks/:lockAddress/users/:userAddress",
            "params": [
              {
                "name": "network",
                "value": "",
                "type": "path",
                "description": "Network id."
              },
              {
                "name": "lockAddress",
                "value": "",
                "type": "path",
                "description": "Lock address."
              },
              {
                "name": "userAddress",
                "value": "",
                "type": "path",
                "description": "User address."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Update or create user metadata for lock."
        },
        {
          "info": {
            "name": "updateUsersMetadata",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://locksmith.unlock-protocol.com/v2/api/metadata/users",
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Update or create user metadata for lock."
        }
      ]
    }
  ],
  "bundled": true
}