POST
/
v1
/
teams
/
{teamId}
/
uploads
/
request
TypeScript client
import { OctosparkClient } from '@octospark/sdk'

const client = new OctosparkClient({
  token: process.env.OCTOSPARK_TOKEN
})

const response = await client.assetsRequestUpload({
  teamId: process.env.OCTOSPARK_TEAM_ID ?? "teamId",
  body: {},
})
{
  "uploadId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "presignedUrl": "<string>",
  "deduplicated": true,
  "existingAssetId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

teamId
string
required

Body

application/json
fileName
string
required

a string at least 1 character(s) long

Minimum string length: 1
fileSize
integer
required

a number greater than or equal to 1

Required range: x >= 1
contentHash
string | null
required
mimeType
string
required

a string at least 1 character(s) long

Minimum string length: 1

Response

Success

uploadId
string<uuid>
required

a Universally Unique Identifier

Pattern: ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
presignedUrl
string
required
deduplicated
boolean
required
existingAssetId
string<uuid> | null
required

a Universally Unique Identifier

Pattern: ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$