contents
contents

Upload Global File

Upload a file to the global content library (not associated with any company). Returns information about the uploaded file including the storage uuid.

post/api/contents/upload

Request

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

Query parameters

bucket_namestring

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

released_atstring date-time nullable

Release date of the content

infostring nullable

Additional metadata for the content (JSON string)

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)

embedboolean nullable

If true, launches ECS task for embedding

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.