Python
from playbookNetworkClient import PlaybookClient
def setup(self):
self.playbookClient = PlaybookClient()
self.playbookClient.set_api_key({your api key})
def upload_image(self, image: Union[str, bytes]):
result = self.playbookClient.upload_image_to_playbook(image)RunWorkflowProperties data =
new()
{
id = {workflow_id},
origin = "2",
inputs = new { },
};{
"message": "Image Uploaded succesfully"
}{
"detail": [
"<unknown>"
]
}Upload Assets
Upload Image
Uploads image to playbook server
POST
/
upload-image
Python
from playbookNetworkClient import PlaybookClient
def setup(self):
self.playbookClient = PlaybookClient()
self.playbookClient.set_api_key({your api key})
def upload_image(self, image: Union[str, bytes]):
result = self.playbookClient.upload_image_to_playbook(image)RunWorkflowProperties data =
new()
{
id = {workflow_id},
origin = "2",
inputs = new { },
};{
"message": "Image Uploaded succesfully"
}{
"detail": [
"<unknown>"
]
}Headers
Your API key. This is required by most endpoints to access our API programatically. You can view your x-api-key using the 'Profile' tab on the website.
Response
Successful Response