{
  "opencollection": "1.0.0",
  "info": {
    "name": "AI Service Actions Vendor API",
    "version": "1.0.0"
  },
  "items": [
    {
      "info": {
        "name": "Vendor",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Create a vendor",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "{{baseUrl}}/vendors",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create a vendor. You will receive an email confirmation once it is approved by Keboola.\n"
        },
        {
          "info": {
            "name": "Update a vendor",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "{{baseUrl}}/vendors/:vendor",
            "params": [
              {
                "name": "vendor",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Update vendor details."
        },
        {
          "info": {
            "name": "List users",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{{baseUrl}}/vendors/:vendor/users",
            "params": [
              {
                "name": "vendor",
                "value": "",
                "type": "path"
              },
              {
                "name": "service",
                "value": "",
                "type": "query",
                "description": "List service accounts instead of regular users"
              },
              {
                "name": "offset",
                "value": "",
                "type": "query"
              },
              {
                "name": "limit",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "Lists all regular users or service accounts of the vendor."
        },
        {
          "info": {
            "name": "Request to join a vendor",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "{{baseUrl}}/vendors/:vendor/users",
            "params": [
              {
                "name": "vendor",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Request to join a vendor. You will receive an email confirmation once it is approved.\n"
        },
        {
          "info": {
            "name": "Accept request to join",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "{{baseUrl}}/vendors/:vendor/users/:username",
            "params": [
              {
                "name": "vendor",
                "value": "",
                "type": "path"
              },
              {
                "name": "username",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Accept a user's request to join the vendor."
        },
        {
          "info": {
            "name": "Remove user / delete service account",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "{{baseUrl}}/vendors/:vendor/users/:username",
            "params": [
              {
                "name": "vendor",
                "value": "",
                "type": "path"
              },
              {
                "name": "username",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Remove another user or yourself from the vendor; service accounts will be deleted instead.\n"
        },
        {
          "info": {
            "name": "Invite user to a vendor",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "{{baseUrl}}/vendors/:vendor/invitations/:email",
            "params": [
              {
                "name": "vendor",
                "value": "",
                "type": "path"
              },
              {
                "name": "email",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Sends an email with a link to accept the invitation."
        },
        {
          "info": {
            "name": "Accept invitation to a vendor",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{{baseUrl}}/vendors/:vendor/invitations/:email/:code",
            "params": [
              {
                "name": "vendor",
                "value": "",
                "type": "path"
              },
              {
                "name": "email",
                "value": "",
                "type": "path"
              },
              {
                "name": "code",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Confirmation link from the invitation email; returns an HTML page."
        },
        {
          "info": {
            "name": "Create service account",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "{{baseUrl}}/vendors/:vendor/credentials",
            "params": [
              {
                "name": "vendor",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Generates a service account which can be used e.g. for continuous integration and returns its username and password.\n"
        },
        {
          "info": {
            "name": "List join requests",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{{baseUrl}}/vendors/:vendor/user-requests",
            "params": [
              {
                "name": "vendor",
                "value": "",
                "type": "path"
              },
              {
                "name": "offset",
                "value": "",
                "type": "query"
              },
              {
                "name": "limit",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "Lists requests to join the vendor."
        }
      ]
    }
  ],
  "bundled": true
}