{
  "opencollection": "1.0.0",
  "info": {
    "name": "Onshape REST Account Publication API",
    "version": "1.218.84032-34acba44be17"
  },
  "request": {
    "auth": {
      "type": "basic",
      "username": "{{username}}",
      "password": "{{password}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Publication",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Create a new publication.",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://cad.onshape.com/api/v16/publications",
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "/oauth/authorize",
              "accessTokenUrl": "/oauth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Create a new publication."
        },
        {
          "info": {
            "name": "Update publication's attributes name, description, and notes.",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://cad.onshape.com/api/v16/publications/:pid",
            "params": [
              {
                "name": "pid",
                "value": "",
                "type": "path",
                "description": "Publication ID."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "/oauth/authorize",
              "accessTokenUrl": "/oauth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Update publication's attributes name, description, and notes."
        },
        {
          "info": {
            "name": "Delete a publication.",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://cad.onshape.com/api/v16/publications/:pid",
            "params": [
              {
                "name": "pid",
                "value": "",
                "type": "path",
                "description": "Publication ID."
              },
              {
                "name": "forever",
                "value": "",
                "type": "query",
                "description": "If true, publication is deleted forever."
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "/oauth/authorize",
              "accessTokenUrl": "/oauth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Delete a publication."
        },
        {
          "info": {
            "name": "Add an item in a publication.",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://cad.onshape.com/api/v16/publications/:pid/item",
            "params": [
              {
                "name": "pid",
                "value": "",
                "type": "path",
                "description": "Publication ID."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "/oauth/authorize",
              "accessTokenUrl": "/oauth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Add an item in a publication."
        },
        {
          "info": {
            "name": "Remove an item from a publication.",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://cad.onshape.com/api/v16/publications/:pid/item/:iid",
            "params": [
              {
                "name": "pid",
                "value": "",
                "type": "path",
                "description": "Publication ID."
              },
              {
                "name": "iid",
                "value": "",
                "type": "path",
                "description": "Publication item ID."
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "/oauth/authorize",
              "accessTokenUrl": "/oauth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Remove an item from a publication."
        },
        {
          "info": {
            "name": "Get all items in a publication.",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://cad.onshape.com/api/v16/publications/:pid/items",
            "params": [
              {
                "name": "pid",
                "value": "",
                "type": "path",
                "description": "Publication ID."
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "/oauth/authorize",
              "accessTokenUrl": "/oauth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Get all items in a publication."
        },
        {
          "info": {
            "name": "Add publication items in bulk.",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://cad.onshape.com/api/v16/publications/:pid/items",
            "params": [
              {
                "name": "pid",
                "value": "",
                "type": "path",
                "description": "Publication ID."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "/oauth/authorize",
              "accessTokenUrl": "/oauth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Add publication items in bulk."
        }
      ]
    }
  ],
  "bundled": true
}