{
  "opencollection": "1.0.0",
  "info": {
    "name": "Docupilot accounts APIs ai content_blocks API",
    "version": "1.0"
  },
  "items": [
    {
      "info": {
        "name": "content_blocks",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get list of content blocks",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{{baseUrl}}/dashboard/api/v2/content_blocks/",
            "headers": [
              {
                "name": "X-Workspace",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "ordering",
                "value": "",
                "type": "query",
                "description": "Which field to use when ordering the results."
              },
              {
                "name": "page",
                "value": "",
                "type": "query",
                "description": "A page number within the paginated result set."
              },
              {
                "name": "search",
                "value": "",
                "type": "query",
                "description": "A search term."
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Get list of content blocks"
        },
        {
          "info": {
            "name": "Create content_block",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "{{baseUrl}}/dashboard/api/v2/content_blocks/",
            "headers": [
              {
                "name": "X-Workspace",
                "value": ""
              }
            ],
            "body": {
              "type": "multipart-form",
              "data": []
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Create content_block"
        },
        {
          "info": {
            "name": "Get all shared permissions for specific content block",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{{baseUrl}}/dashboard/api/v2/content_blocks/:content_block_id/permissions/",
            "headers": [
              {
                "name": "X-Workspace",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "content_block_id",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "sessionid",
              "value": "{{sessionid}}",
              "placement": "query"
            }
          },
          "docs": "Get all shared permissions for specific content block"
        },
        {
          "info": {
            "name": "Create content block sharing permission",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "{{baseUrl}}/dashboard/api/v2/content_blocks/:content_block_id/permissions/",
            "headers": [
              {
                "name": "X-Workspace",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "content_block_id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "apikey",
              "key": "sessionid",
              "value": "{{sessionid}}",
              "placement": "query"
            }
          },
          "docs": "Create content block sharing permission"
        },
        {
          "info": {
            "name": "Get specific permission details for given content block",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{{baseUrl}}/dashboard/api/v2/content_blocks/:content_block_id/permissions/:id/",
            "headers": [
              {
                "name": "X-Workspace",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "content_block_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "A unique integer value identifying this content block sharing setting."
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "sessionid",
              "value": "{{sessionid}}",
              "placement": "query"
            }
          },
          "docs": "Get specific permission details for given content block"
        },
        {
          "info": {
            "name": "Update content block content partially",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "{{baseUrl}}/dashboard/api/v2/content_blocks/:content_block_id/permissions/:id/",
            "headers": [
              {
                "name": "X-Workspace",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "content_block_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "A unique integer value identifying this content block sharing setting."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "apikey",
              "key": "sessionid",
              "value": "{{sessionid}}",
              "placement": "query"
            }
          },
          "docs": "Update content block content partially"
        },
        {
          "info": {
            "name": "Revoke content block sharing permission",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "{{baseUrl}}/dashboard/api/v2/content_blocks/:content_block_id/permissions/:id/",
            "headers": [
              {
                "name": "X-Workspace",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "content_block_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "A unique integer value identifying this content block sharing setting."
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "sessionid",
              "value": "{{sessionid}}",
              "placement": "query"
            }
          },
          "docs": "Revoke content block sharing permission"
        },
        {
          "info": {
            "name": "Get one content_block",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{{baseUrl}}/dashboard/api/v2/content_blocks/:id/",
            "headers": [
              {
                "name": "X-Workspace",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "A unique integer value identifying this content block."
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Get one content_block"
        },
        {
          "info": {
            "name": "Update content_block",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "{{baseUrl}}/dashboard/api/v2/content_blocks/:id/",
            "headers": [
              {
                "name": "X-Workspace",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "A unique integer value identifying this content block."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Update content_block"
        },
        {
          "info": {
            "name": "Update content block data",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "{{baseUrl}}/dashboard/api/v2/content_blocks/:id/",
            "headers": [
              {
                "name": "X-Workspace",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "A unique integer value identifying this content block."
              }
            ],
            "body": {
              "type": "multipart-form",
              "data": []
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Update content block data"
        },
        {
          "info": {
            "name": "Delete a content block",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "{{baseUrl}}/dashboard/api/v2/content_blocks/:id/",
            "headers": [
              {
                "name": "X-Workspace",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "A unique integer value identifying this content block."
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Delete a content block"
        },
        {
          "info": {
            "name": "Copy content block",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "{{baseUrl}}/dashboard/api/v2/content_blocks/:id/copy/",
            "headers": [
              {
                "name": "X-Workspace",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "A unique integer value identifying this content block."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Copy content block"
        },
        {
          "info": {
            "name": "Download content block file",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{{baseUrl}}/dashboard/api/v2/content_blocks/:id/download/",
            "headers": [
              {
                "name": "X-Workspace",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "A unique integer value identifying this content block."
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Download content block file"
        },
        {
          "info": {
            "name": "Update the content block editor version between v1 and v2",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "{{baseUrl}}/dashboard/api/v2/content_blocks/:id/editor_version/",
            "headers": [
              {
                "name": "X-Workspace",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "A unique integer value identifying this content block."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Update the content block editor version between v1 and v2"
        },
        {
          "info": {
            "name": "Upload inline image of content block",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "{{baseUrl}}/dashboard/api/v2/content_blocks/:id/inline_image/",
            "headers": [
              {
                "name": "X-Workspace",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "A unique integer value identifying this content block."
              }
            ],
            "body": {
              "type": "multipart-form",
              "data": []
            },
            "auth": {
              "type": "apikey",
              "key": "sessionid",
              "value": "{{sessionid}}",
              "placement": "query"
            }
          },
          "docs": "Upload inline image of content block"
        },
        {
          "info": {
            "name": "Preview content block file",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{{baseUrl}}/dashboard/api/v2/content_blocks/:id/preview/",
            "headers": [
              {
                "name": "X-Workspace",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "format",
                "value": "",
                "type": "query"
              },
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "A unique integer value identifying this content block."
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "sessionid",
              "value": "{{sessionid}}",
              "placement": "query"
            }
          },
          "docs": "Preview content block file"
        },
        {
          "info": {
            "name": "Get content block schema",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{{baseUrl}}/dashboard/api/v2/content_blocks/:id/schema/",
            "headers": [
              {
                "name": "X-Workspace",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "A unique integer value identifying this content block."
              },
              {
                "name": "ordering",
                "value": "",
                "type": "query",
                "description": "Which field to use when ordering the results."
              },
              {
                "name": "search",
                "value": "",
                "type": "query",
                "description": "A search term."
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Get content block schema"
        },
        {
          "info": {
            "name": "List content block templates",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{{baseUrl}}/dashboard/api/v2/content_blocks/:id/templates/",
            "headers": [
              {
                "name": "X-Workspace",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "A unique integer value identifying this content block."
              },
              {
                "name": "ordering",
                "value": "",
                "type": "query",
                "description": "Which field to use when ordering the results."
              },
              {
                "name": "page",
                "value": "",
                "type": "query",
                "description": "A page number within the paginated result set."
              },
              {
                "name": "search",
                "value": "",
                "type": "query",
                "description": "A search term."
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "List content block templates"
        },
        {
          "info": {
            "name": "Test a content block",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "{{baseUrl}}/dashboard/api/v2/content_blocks/:id/test/",
            "headers": [
              {
                "name": "X-Workspace",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "A unique integer value identifying this content block."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Test a content block"
        },
        {
          "info": {
            "name": "Get test data used for testing content block",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{{baseUrl}}/dashboard/api/v2/content_blocks/:id/test_data/",
            "headers": [
              {
                "name": "X-Workspace",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "A unique integer value identifying this content block."
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Get test data used for testing content block"
        },
        {
          "info": {
            "name": "Get content block detail by API name (key)",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{{baseUrl}}/dashboard/api/v2/content_blocks/detail/by-key/",
            "headers": [
              {
                "name": "X-Workspace",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "key",
                "value": "",
                "type": "query",
                "description": "API name (key) of the content block"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Get content block detail by API name (key)"
        }
      ]
    }
  ],
  "bundled": true
}