v1

latestOpenAPI 3.0.02026-07-241010520.6 KB
Projects

Create Project Asset

Create a project asset by uploading an image or document.


A project can have a number of associated images or documents such as a picture of a meter, a roof, or other supporting material. An associated file can be a pdf, jpg, jpeg, png, gif, or webp file. Any other file formats will be rejected. The maximum size of an individual file is 15 MB. You may upload up to 100 assets per project. New assets will overwrite old assets with the same filename.

post/tenants/{tenant_id}/projects/{project_id}/assets

Path parameters

tenant_idstring uuid required

The ID of the tenant that owns the project.

project_idstring uuid required

The ID of the project to upload an asset to.

Headers

Content-Dispositionstring required

Describes the uploaded content, including the filename of the asset. Must follow format: 'attachment; filename="<file_name>.<file_extension>"'

Response

Project Asset successfully uploaded

Example response

{
  "project_asset": {
    "filename": "meter_image.jpg",
    "temporary_access_url": "http://some-host.com/some-path/file2.png"
  }
}