Skip to main content
POST
/
v1
/
objects
/
{id}
/
complete
JavaScript
import Runloop from '@runloop/api-client';

const client = new Runloop({
  bearerToken: 'My Bearer Token',
});

const objectView = await client.objects.complete('id');

console.log(objectView.id);
{
  "id": "<string>",
  "name": "<string>",
  "state": "<string>",
  "size_bytes": 123,
  "content_type": "unspecified",
  "upload_url": "<string>"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string
required

The unique identifier of the Object to complete.

Body

application/json · object

Response

Object upload completed successfully. Returns the Object with updated state.

An Object represents a stored data entity with metadata.

id
string
required

The unique identifier of the Object.

name
string
required

The name of the Object.

state
string
required

The current state of the Object.

content_type
enum<string>
required

The content type of the Object.

Available options:
unspecified,
text,
binary,
gzip,
tar,
tgz
size_bytes
integer | null

The size of the Object content in bytes (null until uploaded).

upload_url
string | null

Presigned URL for uploading content to S3 (only present on create).

I