contents

Upload Company File

Upload a file to the company content library. Returns information about the uploaded file including the storage uuid.

Args: file: The file to upload type: The type of the content name: The name of the content released_at: The release date of the content info: Additional metadata for the content, must be a valid JSON string

post/api/companies/{company_uuid}/contents

Request

  • Base URL
    https://api.regdoor.com (the document declares no server; this is the origin it was published from)
  • Auth
    HTTP bearer

Path parameters

company_uuidstring uuid required

Query parameters

bucket_namestring

Headers

X-User-Emailstring nullable
X-User-Namestring nullable
X-Teamspace-Uuidstring uuid nullable

Request body multipart/form-data

filestring binary required
typestring nullable

Type of the content

namestring nullable

Name of the content

type_uuidstring uuid nullable

UUID of the main content type from content_types table

subtype_uuidstring uuid nullable

UUID of the content subtype; must have parent_type_uuid == type_uuid

infostring nullable

Additional metadata for the content (JSON string)

released_atstring date-time nullable

Release date of the content

organizations_liststring[] nullable

List of related organization UUIDs

jurisdictions_listinteger[] nullable

List of related jurisdiction IDs

sectors_liststring nullable

List of sector associations as JSON string. Each item should have: sector_uuid (UUID), impact_level (High|Medium|Low), info (optional dict)

collectionsstring[] nullable

List of collection names to assign to this content

embedboolean nullable

If true, launches ECS task for embedding

visibilitystring nullable

'personal' (default, only me) or 'company' (everyone with permission)

Response

Successful Response

uuidstring uuid4 required
namestring required
original_file_namestring required
content_typestring required
typestring nullable required
company_uuidstring uuid4 nullable
user_uuidstring uuid4 nullable
created_atstring date-time required
updated_atstring date-time required
released_atstring date-time nullable required
infoobject nullable
collectionsstring[] nullable
visibilitystring
personal_owner_user_uuidstring uuid4 nullable
relevance'None' | 'Low' | 'Moderate' | 'High' | 'Critical'
relevance_reasonstring nullable
access_deniedboolean
my_access_levelstring nullable

Changes

No recorded changes to this operation across all 1 revision of this API.