curl --request POST \
--url https://api-staging.pixwel.com/api/workrequests \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"_id": "507f1f77bcf86cd799439011",
"studio": "507f1f77bcf86cd799439011",
"project": {
"_id": "507f1f77bcf86cd799439011",
"name": "<string>",
"slug": "<string>",
"studio": "507f1f77bcf86cd799439011",
"logo": "507f1f77bcf86cd799439011",
"$links": {
"self": "//example.com/path/to/object"
}
},
"asset": {
"_id": "507f1f77bcf86cd799439011",
"name": "<string>",
"slug": "<string>",
"type": "<string>",
"mediaType": "<string>",
"thumbnail": {
"_id": "507f1f77bcf86cd799439011",
"verified": true,
"embargo": {
"event": true
},
"warnings": "<unknown>",
"mime": "<string>",
"bucket": "<string>",
"tags": "<unknown>",
"chunkSize": 123,
"length": 123,
"md5": "<string>",
"uploadDate": 123,
"$links": {
"self": "//example.com/path/to/object"
}
},
"transcription": {
"_id": "507f1f77bcf86cd799439011",
"graphics": "507f1f77bcf86cd799439011",
"dialogue": "507f1f77bcf86cd799439011",
"script": "507f1f77bcf86cd799439011"
},
"project": "507f1f77bcf86cd799439011",
"studio": "507f1f77bcf86cd799439011",
"creative": true,
"aspectRatio": "<string>",
"usage": {
"broadcast": true,
"online": true,
"dcp": true,
"dcp3d": true,
"film35": true,
"film70": true,
"imax": true,
"imax3d": true,
"atmos2d": true,
"atmos3d": true,
"dolbyVision2d": true,
"dolbyVision3d": true
},
"workflow": {
"id": "507f1f77bcf86cd799439011",
"phase": "<string>",
"definition": {
"phases": {},
"requireGraphicsApproval": true,
"requireOfflineApproval": true
},
"note": "<unknown>"
},
"file": {
"cdslFile": "https://example.com/path/to/object"
},
"cdslFile": "https://example.com/path/to/object"
},
"assetType": "<string>",
"assetCategory": "<string>",
"auto": true,
"autosubs": true,
"dualLanguages": true,
"aspectRatio": "<string>",
"from": {
"_id": "507f1f77bcf86cd799439011",
"name": "<string>",
"emailNormal": "user@example.com",
"groups": [
{
"_id": "507f1f77bcf86cd799439011",
"name": "<string>",
"$links": {
"self": "//example.com/path/to/object"
}
}
]
},
"due": {
"date": 123,
"tz": "<string>"
},
"language": "<string>",
"territory": "<string>",
"dng": {
"dialogue": [
"<string>"
],
"graphics": [
"<string>"
],
"narration": [
"<string>"
]
},
"uses": {
"items": [
"<string>"
],
"details": {}
},
"dcp": {
"items": [
"<string>"
],
"details": {}
},
"instructions": "<string>",
"status": "<string>",
"history": [
{
"date": 123,
"user": {
"_id": "507f1f77bcf86cd799439011",
"emailNormal": "user@example.com",
"name": "<string>",
"groups": [
{
"_id": "507f1f77bcf86cd799439011",
"name": "<string>"
}
]
},
"status": "<string>",
"reason": "<string>"
}
],
"recipients": {},
"shippingAddresses": {},
"estimate": {
"base": {
"graphics": 123,
"narration": 123,
"scripts": 123,
"dubbing": 123,
"subtitling": 123,
"hybrid": 123,
"encoding": 123,
"autosubs": 123,
"autogfx": 123
},
"applied": {
"graphics": 123,
"narration": 123,
"scripts": 123,
"dubbing": 123,
"subtitling": 123,
"hybrid": 123,
"encoding": 123,
"autosubs": 123,
"autogfx": 123,
"files": 123,
"total": 123
}
},
"translation": {
"_id": "507f1f77bcf86cd799439011",
"language": "<string>",
"translator": {
"_id": "507f1f77bcf86cd799439011",
"emailNormal": "user@example.com",
"name": "<string>",
"groups": [
{
"_id": "507f1f77bcf86cd799439011",
"name": "<string>"
}
]
},
"status": "<string>",
"lines": [
{
"number": 123,
"text": "<string>",
"auto": true,
"custom": true,
"machine": true,
"startTime": "<string>",
"stopTime": "<string>",
"alignment": "<string>",
"textAlign": "<string>",
"split": "<unknown>",
"merged": "<unknown>",
"range": [
123
]
}
],
"printLines": "<unknown>",
"approval": true,
"$links": {
"self": "//example.com/path/to/object"
}
},
"graphicsTranslation": {
"_id": "507f1f77bcf86cd799439011",
"language": "<string>",
"translator": {
"_id": "507f1f77bcf86cd799439011",
"emailNormal": "user@example.com",
"name": "<string>",
"groups": [
{
"_id": "507f1f77bcf86cd799439011",
"name": "<string>"
}
]
},
"status": "<string>",
"lines": [
{
"number": 123,
"text": "<string>",
"auto": true,
"custom": true,
"machine": true,
"startTime": "<string>",
"stopTime": "<string>",
"alignment": "<string>",
"textAlign": "<string>",
"split": "<unknown>",
"merged": "<unknown>",
"range": [
123
]
}
],
"printLines": "<unknown>",
"approval": true,
"$links": {
"self": "//example.com/path/to/object"
}
},
"urls": {
"view": "https://example.com/path/to/object",
"manage": "https://example.com/path/to/object",
"invite": "https://example.com/path/to/object",
"translate": "https://example.com/path/to/object"
},
"tags": "<unknown>",
"rejections": "<unknown>",
"files": [
{
"name": "<string>",
"files": "<unknown>"
}
],
"materials": [
{
"name": "<string>",
"complete": true,
"approved": true,
"files": [
{
"id": "<string>",
"url": "https://example.com/path/to/object",
"name": "<string>",
"uploadedAt": 123,
"rootId": "<string>",
"version": 123,
"isCurrentVersion": true,
"previousVersionId": "<unknown>"
}
],
"changeRequests": [
{
"id": "<string>",
"_id": "<string>",
"_optimistic": true,
"fileId": "<string>",
"body": "<string>",
"status": "<string>",
"user": {
"_id": "507f1f77bcf86cd799439011",
"name": "<string>",
"email": "user@example.com"
},
"requestedBy": {
"_id": "507f1f77bcf86cd799439011",
"email": "user@example.com"
},
"requestedAt": 123,
"created": 123,
"replies": [
{
"id": "<string>",
"_id": "<string>",
"_optimistic": true,
"replyTo": "<string>",
"body": "<string>",
"user": {
"_id": "507f1f77bcf86cd799439011",
"name": "<string>",
"email": "user@example.com"
},
"created": 123,
"editedAt": 123
}
],
"editedAt": 123
}
]
}
],
"deliveryDeadline": {
"date": 123,
"tz": "<string>"
},
"reason": "<string>",
"autoMode": true,
"created": 123,
"$links": {
"self": "//example.com/path/to/object",
"project": "//example.com/path/to/object",
"asset": "//example.com/path/to/object",
"from": "//example.com/path/to/object",
"graphicsTranslation": "//example.com/path/to/object",
"translation": "//example.com/path/to/object"
},
"encodes": "<unknown>",
"offlines": "<unknown>",
"graphicsAutomationJobs": "<unknown>",
"$statuses": [
"<string>"
],
"audioFile": "<unknown>"
}
'import requests
url = "https://api-staging.pixwel.com/api/workrequests"
payload = {
"_id": "507f1f77bcf86cd799439011",
"studio": "507f1f77bcf86cd799439011",
"project": {
"_id": "507f1f77bcf86cd799439011",
"name": "<string>",
"slug": "<string>",
"studio": "507f1f77bcf86cd799439011",
"logo": "507f1f77bcf86cd799439011",
"$links": { "self": "//example.com/path/to/object" }
},
"asset": {
"_id": "507f1f77bcf86cd799439011",
"name": "<string>",
"slug": "<string>",
"type": "<string>",
"mediaType": "<string>",
"thumbnail": {
"_id": "507f1f77bcf86cd799439011",
"verified": True,
"embargo": { "event": True },
"warnings": "<unknown>",
"mime": "<string>",
"bucket": "<string>",
"tags": "<unknown>",
"chunkSize": 123,
"length": 123,
"md5": "<string>",
"uploadDate": 123,
"$links": { "self": "//example.com/path/to/object" }
},
"transcription": {
"_id": "507f1f77bcf86cd799439011",
"graphics": "507f1f77bcf86cd799439011",
"dialogue": "507f1f77bcf86cd799439011",
"script": "507f1f77bcf86cd799439011"
},
"project": "507f1f77bcf86cd799439011",
"studio": "507f1f77bcf86cd799439011",
"creative": True,
"aspectRatio": "<string>",
"usage": {
"broadcast": True,
"online": True,
"dcp": True,
"dcp3d": True,
"film35": True,
"film70": True,
"imax": True,
"imax3d": True,
"atmos2d": True,
"atmos3d": True,
"dolbyVision2d": True,
"dolbyVision3d": True
},
"workflow": {
"id": "507f1f77bcf86cd799439011",
"phase": "<string>",
"definition": {
"phases": {},
"requireGraphicsApproval": True,
"requireOfflineApproval": True
},
"note": "<unknown>"
},
"file": { "cdslFile": "https://example.com/path/to/object" },
"cdslFile": "https://example.com/path/to/object"
},
"assetType": "<string>",
"assetCategory": "<string>",
"auto": True,
"autosubs": True,
"dualLanguages": True,
"aspectRatio": "<string>",
"from": {
"_id": "507f1f77bcf86cd799439011",
"name": "<string>",
"emailNormal": "user@example.com",
"groups": [
{
"_id": "507f1f77bcf86cd799439011",
"name": "<string>",
"$links": { "self": "//example.com/path/to/object" }
}
]
},
"due": {
"date": 123,
"tz": "<string>"
},
"language": "<string>",
"territory": "<string>",
"dng": {
"dialogue": ["<string>"],
"graphics": ["<string>"],
"narration": ["<string>"]
},
"uses": {
"items": ["<string>"],
"details": {}
},
"dcp": {
"items": ["<string>"],
"details": {}
},
"instructions": "<string>",
"status": "<string>",
"history": [
{
"date": 123,
"user": {
"_id": "507f1f77bcf86cd799439011",
"emailNormal": "user@example.com",
"name": "<string>",
"groups": [
{
"_id": "507f1f77bcf86cd799439011",
"name": "<string>"
}
]
},
"status": "<string>",
"reason": "<string>"
}
],
"recipients": {},
"shippingAddresses": {},
"estimate": {
"base": {
"graphics": 123,
"narration": 123,
"scripts": 123,
"dubbing": 123,
"subtitling": 123,
"hybrid": 123,
"encoding": 123,
"autosubs": 123,
"autogfx": 123
},
"applied": {
"graphics": 123,
"narration": 123,
"scripts": 123,
"dubbing": 123,
"subtitling": 123,
"hybrid": 123,
"encoding": 123,
"autosubs": 123,
"autogfx": 123,
"files": 123,
"total": 123
}
},
"translation": {
"_id": "507f1f77bcf86cd799439011",
"language": "<string>",
"translator": {
"_id": "507f1f77bcf86cd799439011",
"emailNormal": "user@example.com",
"name": "<string>",
"groups": [
{
"_id": "507f1f77bcf86cd799439011",
"name": "<string>"
}
]
},
"status": "<string>",
"lines": [
{
"number": 123,
"text": "<string>",
"auto": True,
"custom": True,
"machine": True,
"startTime": "<string>",
"stopTime": "<string>",
"alignment": "<string>",
"textAlign": "<string>",
"split": "<unknown>",
"merged": "<unknown>",
"range": [123]
}
],
"printLines": "<unknown>",
"approval": True,
"$links": { "self": "//example.com/path/to/object" }
},
"graphicsTranslation": {
"_id": "507f1f77bcf86cd799439011",
"language": "<string>",
"translator": {
"_id": "507f1f77bcf86cd799439011",
"emailNormal": "user@example.com",
"name": "<string>",
"groups": [
{
"_id": "507f1f77bcf86cd799439011",
"name": "<string>"
}
]
},
"status": "<string>",
"lines": [
{
"number": 123,
"text": "<string>",
"auto": True,
"custom": True,
"machine": True,
"startTime": "<string>",
"stopTime": "<string>",
"alignment": "<string>",
"textAlign": "<string>",
"split": "<unknown>",
"merged": "<unknown>",
"range": [123]
}
],
"printLines": "<unknown>",
"approval": True,
"$links": { "self": "//example.com/path/to/object" }
},
"urls": {
"view": "https://example.com/path/to/object",
"manage": "https://example.com/path/to/object",
"invite": "https://example.com/path/to/object",
"translate": "https://example.com/path/to/object"
},
"tags": "<unknown>",
"rejections": "<unknown>",
"files": [
{
"name": "<string>",
"files": "<unknown>"
}
],
"materials": [
{
"name": "<string>",
"complete": True,
"approved": True,
"files": [
{
"id": "<string>",
"url": "https://example.com/path/to/object",
"name": "<string>",
"uploadedAt": 123,
"rootId": "<string>",
"version": 123,
"isCurrentVersion": True,
"previousVersionId": "<unknown>"
}
],
"changeRequests": [
{
"id": "<string>",
"_id": "<string>",
"_optimistic": True,
"fileId": "<string>",
"body": "<string>",
"status": "<string>",
"user": {
"_id": "507f1f77bcf86cd799439011",
"name": "<string>",
"email": "user@example.com"
},
"requestedBy": {
"_id": "507f1f77bcf86cd799439011",
"email": "user@example.com"
},
"requestedAt": 123,
"created": 123,
"replies": [
{
"id": "<string>",
"_id": "<string>",
"_optimistic": True,
"replyTo": "<string>",
"body": "<string>",
"user": {
"_id": "507f1f77bcf86cd799439011",
"name": "<string>",
"email": "user@example.com"
},
"created": 123,
"editedAt": 123
}
],
"editedAt": 123
}
]
}
],
"deliveryDeadline": {
"date": 123,
"tz": "<string>"
},
"reason": "<string>",
"autoMode": True,
"created": 123,
"$links": {
"self": "//example.com/path/to/object",
"project": "//example.com/path/to/object",
"asset": "//example.com/path/to/object",
"from": "//example.com/path/to/object",
"graphicsTranslation": "//example.com/path/to/object",
"translation": "//example.com/path/to/object"
},
"encodes": "<unknown>",
"offlines": "<unknown>",
"graphicsAutomationJobs": "<unknown>",
"$statuses": ["<string>"],
"audioFile": "<unknown>"
}
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({
_id: '507f1f77bcf86cd799439011',
studio: '507f1f77bcf86cd799439011',
project: {
_id: '507f1f77bcf86cd799439011',
name: '<string>',
slug: '<string>',
studio: '507f1f77bcf86cd799439011',
logo: '507f1f77bcf86cd799439011',
$links: {self: '//example.com/path/to/object'}
},
asset: {
_id: '507f1f77bcf86cd799439011',
name: '<string>',
slug: '<string>',
type: '<string>',
mediaType: '<string>',
thumbnail: {
_id: '507f1f77bcf86cd799439011',
verified: true,
embargo: {event: true},
warnings: '<unknown>',
mime: '<string>',
bucket: '<string>',
tags: '<unknown>',
chunkSize: 123,
length: 123,
md5: '<string>',
uploadDate: 123,
$links: {self: '//example.com/path/to/object'}
},
transcription: {
_id: '507f1f77bcf86cd799439011',
graphics: '507f1f77bcf86cd799439011',
dialogue: '507f1f77bcf86cd799439011',
script: '507f1f77bcf86cd799439011'
},
project: '507f1f77bcf86cd799439011',
studio: '507f1f77bcf86cd799439011',
creative: true,
aspectRatio: '<string>',
usage: {
broadcast: true,
online: true,
dcp: true,
dcp3d: true,
film35: true,
film70: true,
imax: true,
imax3d: true,
atmos2d: true,
atmos3d: true,
dolbyVision2d: true,
dolbyVision3d: true
},
workflow: {
id: '507f1f77bcf86cd799439011',
phase: '<string>',
definition: {phases: {}, requireGraphicsApproval: true, requireOfflineApproval: true},
note: '<unknown>'
},
file: {cdslFile: 'https://example.com/path/to/object'},
cdslFile: 'https://example.com/path/to/object'
},
assetType: '<string>',
assetCategory: '<string>',
auto: true,
autosubs: true,
dualLanguages: true,
aspectRatio: '<string>',
from: {
_id: '507f1f77bcf86cd799439011',
name: '<string>',
emailNormal: 'user@example.com',
groups: [
{
_id: '507f1f77bcf86cd799439011',
name: '<string>',
$links: {self: '//example.com/path/to/object'}
}
]
},
due: {date: 123, tz: '<string>'},
language: '<string>',
territory: '<string>',
dng: {dialogue: ['<string>'], graphics: ['<string>'], narration: ['<string>']},
uses: {items: ['<string>'], details: {}},
dcp: {items: ['<string>'], details: {}},
instructions: '<string>',
status: '<string>',
history: [
{
date: 123,
user: {
_id: '507f1f77bcf86cd799439011',
emailNormal: 'user@example.com',
name: '<string>',
groups: [{_id: '507f1f77bcf86cd799439011', name: '<string>'}]
},
status: '<string>',
reason: '<string>'
}
],
recipients: {},
shippingAddresses: {},
estimate: {
base: {
graphics: 123,
narration: 123,
scripts: 123,
dubbing: 123,
subtitling: 123,
hybrid: 123,
encoding: 123,
autosubs: 123,
autogfx: 123
},
applied: {
graphics: 123,
narration: 123,
scripts: 123,
dubbing: 123,
subtitling: 123,
hybrid: 123,
encoding: 123,
autosubs: 123,
autogfx: 123,
files: 123,
total: 123
}
},
translation: {
_id: '507f1f77bcf86cd799439011',
language: '<string>',
translator: {
_id: '507f1f77bcf86cd799439011',
emailNormal: 'user@example.com',
name: '<string>',
groups: [{_id: '507f1f77bcf86cd799439011', name: '<string>'}]
},
status: '<string>',
lines: [
{
number: 123,
text: '<string>',
auto: true,
custom: true,
machine: true,
startTime: '<string>',
stopTime: '<string>',
alignment: '<string>',
textAlign: '<string>',
split: '<unknown>',
merged: '<unknown>',
range: [123]
}
],
printLines: '<unknown>',
approval: true,
$links: {self: '//example.com/path/to/object'}
},
graphicsTranslation: {
_id: '507f1f77bcf86cd799439011',
language: '<string>',
translator: {
_id: '507f1f77bcf86cd799439011',
emailNormal: 'user@example.com',
name: '<string>',
groups: [{_id: '507f1f77bcf86cd799439011', name: '<string>'}]
},
status: '<string>',
lines: [
{
number: 123,
text: '<string>',
auto: true,
custom: true,
machine: true,
startTime: '<string>',
stopTime: '<string>',
alignment: '<string>',
textAlign: '<string>',
split: '<unknown>',
merged: '<unknown>',
range: [123]
}
],
printLines: '<unknown>',
approval: true,
$links: {self: '//example.com/path/to/object'}
},
urls: {
view: 'https://example.com/path/to/object',
manage: 'https://example.com/path/to/object',
invite: 'https://example.com/path/to/object',
translate: 'https://example.com/path/to/object'
},
tags: '<unknown>',
rejections: '<unknown>',
files: [{name: '<string>', files: '<unknown>'}],
materials: [
{
name: '<string>',
complete: true,
approved: true,
files: [
{
id: '<string>',
url: 'https://example.com/path/to/object',
name: '<string>',
uploadedAt: 123,
rootId: '<string>',
version: 123,
isCurrentVersion: true,
previousVersionId: '<unknown>'
}
],
changeRequests: [
{
id: '<string>',
_id: '<string>',
_optimistic: true,
fileId: '<string>',
body: JSON.stringify('<string>'),
status: '<string>',
user: {_id: '507f1f77bcf86cd799439011', name: '<string>', email: 'user@example.com'},
requestedBy: {_id: '507f1f77bcf86cd799439011', email: 'user@example.com'},
requestedAt: 123,
created: 123,
replies: [
{
id: '<string>',
_id: '<string>',
_optimistic: true,
replyTo: '<string>',
body: JSON.stringify('<string>'),
user: {_id: '507f1f77bcf86cd799439011', name: '<string>', email: 'user@example.com'},
created: 123,
editedAt: 123
}
],
editedAt: 123
}
]
}
],
deliveryDeadline: {date: 123, tz: '<string>'},
reason: '<string>',
autoMode: true,
created: 123,
$links: {
self: '//example.com/path/to/object',
project: '//example.com/path/to/object',
asset: '//example.com/path/to/object',
from: '//example.com/path/to/object',
graphicsTranslation: '//example.com/path/to/object',
translation: '//example.com/path/to/object'
},
encodes: '<unknown>',
offlines: '<unknown>',
graphicsAutomationJobs: '<unknown>',
$statuses: ['<string>'],
audioFile: '<unknown>'
})
};
fetch('https://api-staging.pixwel.com/api/workrequests', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api-staging.pixwel.com/api/workrequests",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'_id' => '507f1f77bcf86cd799439011',
'studio' => '507f1f77bcf86cd799439011',
'project' => [
'_id' => '507f1f77bcf86cd799439011',
'name' => '<string>',
'slug' => '<string>',
'studio' => '507f1f77bcf86cd799439011',
'logo' => '507f1f77bcf86cd799439011',
'$links' => [
'self' => '//example.com/path/to/object'
]
],
'asset' => [
'_id' => '507f1f77bcf86cd799439011',
'name' => '<string>',
'slug' => '<string>',
'type' => '<string>',
'mediaType' => '<string>',
'thumbnail' => [
'_id' => '507f1f77bcf86cd799439011',
'verified' => true,
'embargo' => [
'event' => true
],
'warnings' => '<unknown>',
'mime' => '<string>',
'bucket' => '<string>',
'tags' => '<unknown>',
'chunkSize' => 123,
'length' => 123,
'md5' => '<string>',
'uploadDate' => 123,
'$links' => [
'self' => '//example.com/path/to/object'
]
],
'transcription' => [
'_id' => '507f1f77bcf86cd799439011',
'graphics' => '507f1f77bcf86cd799439011',
'dialogue' => '507f1f77bcf86cd799439011',
'script' => '507f1f77bcf86cd799439011'
],
'project' => '507f1f77bcf86cd799439011',
'studio' => '507f1f77bcf86cd799439011',
'creative' => true,
'aspectRatio' => '<string>',
'usage' => [
'broadcast' => true,
'online' => true,
'dcp' => true,
'dcp3d' => true,
'film35' => true,
'film70' => true,
'imax' => true,
'imax3d' => true,
'atmos2d' => true,
'atmos3d' => true,
'dolbyVision2d' => true,
'dolbyVision3d' => true
],
'workflow' => [
'id' => '507f1f77bcf86cd799439011',
'phase' => '<string>',
'definition' => [
'phases' => [
],
'requireGraphicsApproval' => true,
'requireOfflineApproval' => true
],
'note' => '<unknown>'
],
'file' => [
'cdslFile' => 'https://example.com/path/to/object'
],
'cdslFile' => 'https://example.com/path/to/object'
],
'assetType' => '<string>',
'assetCategory' => '<string>',
'auto' => true,
'autosubs' => true,
'dualLanguages' => true,
'aspectRatio' => '<string>',
'from' => [
'_id' => '507f1f77bcf86cd799439011',
'name' => '<string>',
'emailNormal' => 'user@example.com',
'groups' => [
[
'_id' => '507f1f77bcf86cd799439011',
'name' => '<string>',
'$links' => [
'self' => '//example.com/path/to/object'
]
]
]
],
'due' => [
'date' => 123,
'tz' => '<string>'
],
'language' => '<string>',
'territory' => '<string>',
'dng' => [
'dialogue' => [
'<string>'
],
'graphics' => [
'<string>'
],
'narration' => [
'<string>'
]
],
'uses' => [
'items' => [
'<string>'
],
'details' => [
]
],
'dcp' => [
'items' => [
'<string>'
],
'details' => [
]
],
'instructions' => '<string>',
'status' => '<string>',
'history' => [
[
'date' => 123,
'user' => [
'_id' => '507f1f77bcf86cd799439011',
'emailNormal' => 'user@example.com',
'name' => '<string>',
'groups' => [
[
'_id' => '507f1f77bcf86cd799439011',
'name' => '<string>'
]
]
],
'status' => '<string>',
'reason' => '<string>'
]
],
'recipients' => [
],
'shippingAddresses' => [
],
'estimate' => [
'base' => [
'graphics' => 123,
'narration' => 123,
'scripts' => 123,
'dubbing' => 123,
'subtitling' => 123,
'hybrid' => 123,
'encoding' => 123,
'autosubs' => 123,
'autogfx' => 123
],
'applied' => [
'graphics' => 123,
'narration' => 123,
'scripts' => 123,
'dubbing' => 123,
'subtitling' => 123,
'hybrid' => 123,
'encoding' => 123,
'autosubs' => 123,
'autogfx' => 123,
'files' => 123,
'total' => 123
]
],
'translation' => [
'_id' => '507f1f77bcf86cd799439011',
'language' => '<string>',
'translator' => [
'_id' => '507f1f77bcf86cd799439011',
'emailNormal' => 'user@example.com',
'name' => '<string>',
'groups' => [
[
'_id' => '507f1f77bcf86cd799439011',
'name' => '<string>'
]
]
],
'status' => '<string>',
'lines' => [
[
'number' => 123,
'text' => '<string>',
'auto' => true,
'custom' => true,
'machine' => true,
'startTime' => '<string>',
'stopTime' => '<string>',
'alignment' => '<string>',
'textAlign' => '<string>',
'split' => '<unknown>',
'merged' => '<unknown>',
'range' => [
123
]
]
],
'printLines' => '<unknown>',
'approval' => true,
'$links' => [
'self' => '//example.com/path/to/object'
]
],
'graphicsTranslation' => [
'_id' => '507f1f77bcf86cd799439011',
'language' => '<string>',
'translator' => [
'_id' => '507f1f77bcf86cd799439011',
'emailNormal' => 'user@example.com',
'name' => '<string>',
'groups' => [
[
'_id' => '507f1f77bcf86cd799439011',
'name' => '<string>'
]
]
],
'status' => '<string>',
'lines' => [
[
'number' => 123,
'text' => '<string>',
'auto' => true,
'custom' => true,
'machine' => true,
'startTime' => '<string>',
'stopTime' => '<string>',
'alignment' => '<string>',
'textAlign' => '<string>',
'split' => '<unknown>',
'merged' => '<unknown>',
'range' => [
123
]
]
],
'printLines' => '<unknown>',
'approval' => true,
'$links' => [
'self' => '//example.com/path/to/object'
]
],
'urls' => [
'view' => 'https://example.com/path/to/object',
'manage' => 'https://example.com/path/to/object',
'invite' => 'https://example.com/path/to/object',
'translate' => 'https://example.com/path/to/object'
],
'tags' => '<unknown>',
'rejections' => '<unknown>',
'files' => [
[
'name' => '<string>',
'files' => '<unknown>'
]
],
'materials' => [
[
'name' => '<string>',
'complete' => true,
'approved' => true,
'files' => [
[
'id' => '<string>',
'url' => 'https://example.com/path/to/object',
'name' => '<string>',
'uploadedAt' => 123,
'rootId' => '<string>',
'version' => 123,
'isCurrentVersion' => true,
'previousVersionId' => '<unknown>'
]
],
'changeRequests' => [
[
'id' => '<string>',
'_id' => '<string>',
'_optimistic' => true,
'fileId' => '<string>',
'body' => '<string>',
'status' => '<string>',
'user' => [
'_id' => '507f1f77bcf86cd799439011',
'name' => '<string>',
'email' => 'user@example.com'
],
'requestedBy' => [
'_id' => '507f1f77bcf86cd799439011',
'email' => 'user@example.com'
],
'requestedAt' => 123,
'created' => 123,
'replies' => [
[
'id' => '<string>',
'_id' => '<string>',
'_optimistic' => true,
'replyTo' => '<string>',
'body' => '<string>',
'user' => [
'_id' => '507f1f77bcf86cd799439011',
'name' => '<string>',
'email' => 'user@example.com'
],
'created' => 123,
'editedAt' => 123
]
],
'editedAt' => 123
]
]
]
],
'deliveryDeadline' => [
'date' => 123,
'tz' => '<string>'
],
'reason' => '<string>',
'autoMode' => true,
'created' => 123,
'$links' => [
'self' => '//example.com/path/to/object',
'project' => '//example.com/path/to/object',
'asset' => '//example.com/path/to/object',
'from' => '//example.com/path/to/object',
'graphicsTranslation' => '//example.com/path/to/object',
'translation' => '//example.com/path/to/object'
],
'encodes' => '<unknown>',
'offlines' => '<unknown>',
'graphicsAutomationJobs' => '<unknown>',
'$statuses' => [
'<string>'
],
'audioFile' => '<unknown>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api-staging.pixwel.com/api/workrequests"
payload := strings.NewReader("{\n \"_id\": \"507f1f77bcf86cd799439011\",\n \"studio\": \"507f1f77bcf86cd799439011\",\n \"project\": {\n \"_id\": \"507f1f77bcf86cd799439011\",\n \"name\": \"<string>\",\n \"slug\": \"<string>\",\n \"studio\": \"507f1f77bcf86cd799439011\",\n \"logo\": \"507f1f77bcf86cd799439011\",\n \"$links\": {\n \"self\": \"//example.com/path/to/object\"\n }\n },\n \"asset\": {\n \"_id\": \"507f1f77bcf86cd799439011\",\n \"name\": \"<string>\",\n \"slug\": \"<string>\",\n \"type\": \"<string>\",\n \"mediaType\": \"<string>\",\n \"thumbnail\": {\n \"_id\": \"507f1f77bcf86cd799439011\",\n \"verified\": true,\n \"embargo\": {\n \"event\": true\n },\n \"warnings\": \"<unknown>\",\n \"mime\": \"<string>\",\n \"bucket\": \"<string>\",\n \"tags\": \"<unknown>\",\n \"chunkSize\": 123,\n \"length\": 123,\n \"md5\": \"<string>\",\n \"uploadDate\": 123,\n \"$links\": {\n \"self\": \"//example.com/path/to/object\"\n }\n },\n \"transcription\": {\n \"_id\": \"507f1f77bcf86cd799439011\",\n \"graphics\": \"507f1f77bcf86cd799439011\",\n \"dialogue\": \"507f1f77bcf86cd799439011\",\n \"script\": \"507f1f77bcf86cd799439011\"\n },\n \"project\": \"507f1f77bcf86cd799439011\",\n \"studio\": \"507f1f77bcf86cd799439011\",\n \"creative\": true,\n \"aspectRatio\": \"<string>\",\n \"usage\": {\n \"broadcast\": true,\n \"online\": true,\n \"dcp\": true,\n \"dcp3d\": true,\n \"film35\": true,\n \"film70\": true,\n \"imax\": true,\n \"imax3d\": true,\n \"atmos2d\": true,\n \"atmos3d\": true,\n \"dolbyVision2d\": true,\n \"dolbyVision3d\": true\n },\n \"workflow\": {\n \"id\": \"507f1f77bcf86cd799439011\",\n \"phase\": \"<string>\",\n \"definition\": {\n \"phases\": {},\n \"requireGraphicsApproval\": true,\n \"requireOfflineApproval\": true\n },\n \"note\": \"<unknown>\"\n },\n \"file\": {\n \"cdslFile\": \"https://example.com/path/to/object\"\n },\n \"cdslFile\": \"https://example.com/path/to/object\"\n },\n \"assetType\": \"<string>\",\n \"assetCategory\": \"<string>\",\n \"auto\": true,\n \"autosubs\": true,\n \"dualLanguages\": true,\n \"aspectRatio\": \"<string>\",\n \"from\": {\n \"_id\": \"507f1f77bcf86cd799439011\",\n \"name\": \"<string>\",\n \"emailNormal\": \"user@example.com\",\n \"groups\": [\n {\n \"_id\": \"507f1f77bcf86cd799439011\",\n \"name\": \"<string>\",\n \"$links\": {\n \"self\": \"//example.com/path/to/object\"\n }\n }\n ]\n },\n \"due\": {\n \"date\": 123,\n \"tz\": \"<string>\"\n },\n \"language\": \"<string>\",\n \"territory\": \"<string>\",\n \"dng\": {\n \"dialogue\": [\n \"<string>\"\n ],\n \"graphics\": [\n \"<string>\"\n ],\n \"narration\": [\n \"<string>\"\n ]\n },\n \"uses\": {\n \"items\": [\n \"<string>\"\n ],\n \"details\": {}\n },\n \"dcp\": {\n \"items\": [\n \"<string>\"\n ],\n \"details\": {}\n },\n \"instructions\": \"<string>\",\n \"status\": \"<string>\",\n \"history\": [\n {\n \"date\": 123,\n \"user\": {\n \"_id\": \"507f1f77bcf86cd799439011\",\n \"emailNormal\": \"user@example.com\",\n \"name\": \"<string>\",\n \"groups\": [\n {\n \"_id\": \"507f1f77bcf86cd799439011\",\n \"name\": \"<string>\"\n }\n ]\n },\n \"status\": \"<string>\",\n \"reason\": \"<string>\"\n }\n ],\n \"recipients\": {},\n \"shippingAddresses\": {},\n \"estimate\": {\n \"base\": {\n \"graphics\": 123,\n \"narration\": 123,\n \"scripts\": 123,\n \"dubbing\": 123,\n \"subtitling\": 123,\n \"hybrid\": 123,\n \"encoding\": 123,\n \"autosubs\": 123,\n \"autogfx\": 123\n },\n \"applied\": {\n \"graphics\": 123,\n \"narration\": 123,\n \"scripts\": 123,\n \"dubbing\": 123,\n \"subtitling\": 123,\n \"hybrid\": 123,\n \"encoding\": 123,\n \"autosubs\": 123,\n \"autogfx\": 123,\n \"files\": 123,\n \"total\": 123\n }\n },\n \"translation\": {\n \"_id\": \"507f1f77bcf86cd799439011\",\n \"language\": \"<string>\",\n \"translator\": {\n \"_id\": \"507f1f77bcf86cd799439011\",\n \"emailNormal\": \"user@example.com\",\n \"name\": \"<string>\",\n \"groups\": [\n {\n \"_id\": \"507f1f77bcf86cd799439011\",\n \"name\": \"<string>\"\n }\n ]\n },\n \"status\": \"<string>\",\n \"lines\": [\n {\n \"number\": 123,\n \"text\": \"<string>\",\n \"auto\": true,\n \"custom\": true,\n \"machine\": true,\n \"startTime\": \"<string>\",\n \"stopTime\": \"<string>\",\n \"alignment\": \"<string>\",\n \"textAlign\": \"<string>\",\n \"split\": \"<unknown>\",\n \"merged\": \"<unknown>\",\n \"range\": [\n 123\n ]\n }\n ],\n \"printLines\": \"<unknown>\",\n \"approval\": true,\n \"$links\": {\n \"self\": \"//example.com/path/to/object\"\n }\n },\n \"graphicsTranslation\": {\n \"_id\": \"507f1f77bcf86cd799439011\",\n \"language\": \"<string>\",\n \"translator\": {\n \"_id\": \"507f1f77bcf86cd799439011\",\n \"emailNormal\": \"user@example.com\",\n \"name\": \"<string>\",\n \"groups\": [\n {\n \"_id\": \"507f1f77bcf86cd799439011\",\n \"name\": \"<string>\"\n }\n ]\n },\n \"status\": \"<string>\",\n \"lines\": [\n {\n \"number\": 123,\n \"text\": \"<string>\",\n \"auto\": true,\n \"custom\": true,\n \"machine\": true,\n \"startTime\": \"<string>\",\n \"stopTime\": \"<string>\",\n \"alignment\": \"<string>\",\n \"textAlign\": \"<string>\",\n \"split\": \"<unknown>\",\n \"merged\": \"<unknown>\",\n \"range\": [\n 123\n ]\n }\n ],\n \"printLines\": \"<unknown>\",\n \"approval\": true,\n \"$links\": {\n \"self\": \"//example.com/path/to/object\"\n }\n },\n \"urls\": {\n \"view\": \"https://example.com/path/to/object\",\n \"manage\": \"https://example.com/path/to/object\",\n \"invite\": \"https://example.com/path/to/object\",\n \"translate\": \"https://example.com/path/to/object\"\n },\n \"tags\": \"<unknown>\",\n \"rejections\": \"<unknown>\",\n \"files\": [\n {\n \"name\": \"<string>\",\n \"files\": \"<unknown>\"\n }\n ],\n \"materials\": [\n {\n \"name\": \"<string>\",\n \"complete\": true,\n \"approved\": true,\n \"files\": [\n {\n \"id\": \"<string>\",\n \"url\": \"https://example.com/path/to/object\",\n \"name\": \"<string>\",\n \"uploadedAt\": 123,\n \"rootId\": \"<string>\",\n \"version\": 123,\n \"isCurrentVersion\": true,\n \"previousVersionId\": \"<unknown>\"\n }\n ],\n \"changeRequests\": [\n {\n \"id\": \"<string>\",\n \"_id\": \"<string>\",\n \"_optimistic\": true,\n \"fileId\": \"<string>\",\n \"body\": \"<string>\",\n \"status\": \"<string>\",\n \"user\": {\n \"_id\": \"507f1f77bcf86cd799439011\",\n \"name\": \"<string>\",\n \"email\": \"user@example.com\"\n },\n \"requestedBy\": {\n \"_id\": \"507f1f77bcf86cd799439011\",\n \"email\": \"user@example.com\"\n },\n \"requestedAt\": 123,\n \"created\": 123,\n \"replies\": [\n {\n \"id\": \"<string>\",\n \"_id\": \"<string>\",\n \"_optimistic\": true,\n \"replyTo\": \"<string>\",\n \"body\": \"<string>\",\n \"user\": {\n \"_id\": \"507f1f77bcf86cd799439011\",\n \"name\": \"<string>\",\n \"email\": \"user@example.com\"\n },\n \"created\": 123,\n \"editedAt\": 123\n }\n ],\n \"editedAt\": 123\n }\n ]\n }\n ],\n \"deliveryDeadline\": {\n \"date\": 123,\n \"tz\": \"<string>\"\n },\n \"reason\": \"<string>\",\n \"autoMode\": true,\n \"created\": 123,\n \"$links\": {\n \"self\": \"//example.com/path/to/object\",\n \"project\": \"//example.com/path/to/object\",\n \"asset\": \"//example.com/path/to/object\",\n \"from\": \"//example.com/path/to/object\",\n \"graphicsTranslation\": \"//example.com/path/to/object\",\n \"translation\": \"//example.com/path/to/object\"\n },\n \"encodes\": \"<unknown>\",\n \"offlines\": \"<unknown>\",\n \"graphicsAutomationJobs\": \"<unknown>\",\n \"$statuses\": [\n \"<string>\"\n ],\n \"audioFile\": \"<unknown>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Basic <encoded-value>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api-staging.pixwel.com/api/workrequests")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/json")
.body("{\n \"_id\": \"507f1f77bcf86cd799439011\",\n \"studio\": \"507f1f77bcf86cd799439011\",\n \"project\": {\n \"_id\": \"507f1f77bcf86cd799439011\",\n \"name\": \"<string>\",\n \"slug\": \"<string>\",\n \"studio\": \"507f1f77bcf86cd799439011\",\n \"logo\": \"507f1f77bcf86cd799439011\",\n \"$links\": {\n \"self\": \"//example.com/path/to/object\"\n }\n },\n \"asset\": {\n \"_id\": \"507f1f77bcf86cd799439011\",\n \"name\": \"<string>\",\n \"slug\": \"<string>\",\n \"type\": \"<string>\",\n \"mediaType\": \"<string>\",\n \"thumbnail\": {\n \"_id\": \"507f1f77bcf86cd799439011\",\n \"verified\": true,\n \"embargo\": {\n \"event\": true\n },\n \"warnings\": \"<unknown>\",\n \"mime\": \"<string>\",\n \"bucket\": \"<string>\",\n \"tags\": \"<unknown>\",\n \"chunkSize\": 123,\n \"length\": 123,\n \"md5\": \"<string>\",\n \"uploadDate\": 123,\n \"$links\": {\n \"self\": \"//example.com/path/to/object\"\n }\n },\n \"transcription\": {\n \"_id\": \"507f1f77bcf86cd799439011\",\n \"graphics\": \"507f1f77bcf86cd799439011\",\n \"dialogue\": \"507f1f77bcf86cd799439011\",\n \"script\": \"507f1f77bcf86cd799439011\"\n },\n \"project\": \"507f1f77bcf86cd799439011\",\n \"studio\": \"507f1f77bcf86cd799439011\",\n \"creative\": true,\n \"aspectRatio\": \"<string>\",\n \"usage\": {\n \"broadcast\": true,\n \"online\": true,\n \"dcp\": true,\n \"dcp3d\": true,\n \"film35\": true,\n \"film70\": true,\n \"imax\": true,\n \"imax3d\": true,\n \"atmos2d\": true,\n \"atmos3d\": true,\n \"dolbyVision2d\": true,\n \"dolbyVision3d\": true\n },\n \"workflow\": {\n \"id\": \"507f1f77bcf86cd799439011\",\n \"phase\": \"<string>\",\n \"definition\": {\n \"phases\": {},\n \"requireGraphicsApproval\": true,\n \"requireOfflineApproval\": true\n },\n \"note\": \"<unknown>\"\n },\n \"file\": {\n \"cdslFile\": \"https://example.com/path/to/object\"\n },\n \"cdslFile\": \"https://example.com/path/to/object\"\n },\n \"assetType\": \"<string>\",\n \"assetCategory\": \"<string>\",\n \"auto\": true,\n \"autosubs\": true,\n \"dualLanguages\": true,\n \"aspectRatio\": \"<string>\",\n \"from\": {\n \"_id\": \"507f1f77bcf86cd799439011\",\n \"name\": \"<string>\",\n \"emailNormal\": \"user@example.com\",\n \"groups\": [\n {\n \"_id\": \"507f1f77bcf86cd799439011\",\n \"name\": \"<string>\",\n \"$links\": {\n \"self\": \"//example.com/path/to/object\"\n }\n }\n ]\n },\n \"due\": {\n \"date\": 123,\n \"tz\": \"<string>\"\n },\n \"language\": \"<string>\",\n \"territory\": \"<string>\",\n \"dng\": {\n \"dialogue\": [\n \"<string>\"\n ],\n \"graphics\": [\n \"<string>\"\n ],\n \"narration\": [\n \"<string>\"\n ]\n },\n \"uses\": {\n \"items\": [\n \"<string>\"\n ],\n \"details\": {}\n },\n \"dcp\": {\n \"items\": [\n \"<string>\"\n ],\n \"details\": {}\n },\n \"instructions\": \"<string>\",\n \"status\": \"<string>\",\n \"history\": [\n {\n \"date\": 123,\n \"user\": {\n \"_id\": \"507f1f77bcf86cd799439011\",\n \"emailNormal\": \"user@example.com\",\n \"name\": \"<string>\",\n \"groups\": [\n {\n \"_id\": \"507f1f77bcf86cd799439011\",\n \"name\": \"<string>\"\n }\n ]\n },\n \"status\": \"<string>\",\n \"reason\": \"<string>\"\n }\n ],\n \"recipients\": {},\n \"shippingAddresses\": {},\n \"estimate\": {\n \"base\": {\n \"graphics\": 123,\n \"narration\": 123,\n \"scripts\": 123,\n \"dubbing\": 123,\n \"subtitling\": 123,\n \"hybrid\": 123,\n \"encoding\": 123,\n \"autosubs\": 123,\n \"autogfx\": 123\n },\n \"applied\": {\n \"graphics\": 123,\n \"narration\": 123,\n \"scripts\": 123,\n \"dubbing\": 123,\n \"subtitling\": 123,\n \"hybrid\": 123,\n \"encoding\": 123,\n \"autosubs\": 123,\n \"autogfx\": 123,\n \"files\": 123,\n \"total\": 123\n }\n },\n \"translation\": {\n \"_id\": \"507f1f77bcf86cd799439011\",\n \"language\": \"<string>\",\n \"translator\": {\n \"_id\": \"507f1f77bcf86cd799439011\",\n \"emailNormal\": \"user@example.com\",\n \"name\": \"<string>\",\n \"groups\": [\n {\n \"_id\": \"507f1f77bcf86cd799439011\",\n \"name\": \"<string>\"\n }\n ]\n },\n \"status\": \"<string>\",\n \"lines\": [\n {\n \"number\": 123,\n \"text\": \"<string>\",\n \"auto\": true,\n \"custom\": true,\n \"machine\": true,\n \"startTime\": \"<string>\",\n \"stopTime\": \"<string>\",\n \"alignment\": \"<string>\",\n \"textAlign\": \"<string>\",\n \"split\": \"<unknown>\",\n \"merged\": \"<unknown>\",\n \"range\": [\n 123\n ]\n }\n ],\n \"printLines\": \"<unknown>\",\n \"approval\": true,\n \"$links\": {\n \"self\": \"//example.com/path/to/object\"\n }\n },\n \"graphicsTranslation\": {\n \"_id\": \"507f1f77bcf86cd799439011\",\n \"language\": \"<string>\",\n \"translator\": {\n \"_id\": \"507f1f77bcf86cd799439011\",\n \"emailNormal\": \"user@example.com\",\n \"name\": \"<string>\",\n \"groups\": [\n {\n \"_id\": \"507f1f77bcf86cd799439011\",\n \"name\": \"<string>\"\n }\n ]\n },\n \"status\": \"<string>\",\n \"lines\": [\n {\n \"number\": 123,\n \"text\": \"<string>\",\n \"auto\": true,\n \"custom\": true,\n \"machine\": true,\n \"startTime\": \"<string>\",\n \"stopTime\": \"<string>\",\n \"alignment\": \"<string>\",\n \"textAlign\": \"<string>\",\n \"split\": \"<unknown>\",\n \"merged\": \"<unknown>\",\n \"range\": [\n 123\n ]\n }\n ],\n \"printLines\": \"<unknown>\",\n \"approval\": true,\n \"$links\": {\n \"self\": \"//example.com/path/to/object\"\n }\n },\n \"urls\": {\n \"view\": \"https://example.com/path/to/object\",\n \"manage\": \"https://example.com/path/to/object\",\n \"invite\": \"https://example.com/path/to/object\",\n \"translate\": \"https://example.com/path/to/object\"\n },\n \"tags\": \"<unknown>\",\n \"rejections\": \"<unknown>\",\n \"files\": [\n {\n \"name\": \"<string>\",\n \"files\": \"<unknown>\"\n }\n ],\n \"materials\": [\n {\n \"name\": \"<string>\",\n \"complete\": true,\n \"approved\": true,\n \"files\": [\n {\n \"id\": \"<string>\",\n \"url\": \"https://example.com/path/to/object\",\n \"name\": \"<string>\",\n \"uploadedAt\": 123,\n \"rootId\": \"<string>\",\n \"version\": 123,\n \"isCurrentVersion\": true,\n \"previousVersionId\": \"<unknown>\"\n }\n ],\n \"changeRequests\": [\n {\n \"id\": \"<string>\",\n \"_id\": \"<string>\",\n \"_optimistic\": true,\n \"fileId\": \"<string>\",\n \"body\": \"<string>\",\n \"status\": \"<string>\",\n \"user\": {\n \"_id\": \"507f1f77bcf86cd799439011\",\n \"name\": \"<string>\",\n \"email\": \"user@example.com\"\n },\n \"requestedBy\": {\n \"_id\": \"507f1f77bcf86cd799439011\",\n \"email\": \"user@example.com\"\n },\n \"requestedAt\": 123,\n \"created\": 123,\n \"replies\": [\n {\n \"id\": \"<string>\",\n \"_id\": \"<string>\",\n \"_optimistic\": true,\n \"replyTo\": \"<string>\",\n \"body\": \"<string>\",\n \"user\": {\n \"_id\": \"507f1f77bcf86cd799439011\",\n \"name\": \"<string>\",\n \"email\": \"user@example.com\"\n },\n \"created\": 123,\n \"editedAt\": 123\n }\n ],\n \"editedAt\": 123\n }\n ]\n }\n ],\n \"deliveryDeadline\": {\n \"date\": 123,\n \"tz\": \"<string>\"\n },\n \"reason\": \"<string>\",\n \"autoMode\": true,\n \"created\": 123,\n \"$links\": {\n \"self\": \"//example.com/path/to/object\",\n \"project\": \"//example.com/path/to/object\",\n \"asset\": \"//example.com/path/to/object\",\n \"from\": \"//example.com/path/to/object\",\n \"graphicsTranslation\": \"//example.com/path/to/object\",\n \"translation\": \"//example.com/path/to/object\"\n },\n \"encodes\": \"<unknown>\",\n \"offlines\": \"<unknown>\",\n \"graphicsAutomationJobs\": \"<unknown>\",\n \"$statuses\": [\n \"<string>\"\n ],\n \"audioFile\": \"<unknown>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-staging.pixwel.com/api/workrequests")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Basic <encoded-value>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"_id\": \"507f1f77bcf86cd799439011\",\n \"studio\": \"507f1f77bcf86cd799439011\",\n \"project\": {\n \"_id\": \"507f1f77bcf86cd799439011\",\n \"name\": \"<string>\",\n \"slug\": \"<string>\",\n \"studio\": \"507f1f77bcf86cd799439011\",\n \"logo\": \"507f1f77bcf86cd799439011\",\n \"$links\": {\n \"self\": \"//example.com/path/to/object\"\n }\n },\n \"asset\": {\n \"_id\": \"507f1f77bcf86cd799439011\",\n \"name\": \"<string>\",\n \"slug\": \"<string>\",\n \"type\": \"<string>\",\n \"mediaType\": \"<string>\",\n \"thumbnail\": {\n \"_id\": \"507f1f77bcf86cd799439011\",\n \"verified\": true,\n \"embargo\": {\n \"event\": true\n },\n \"warnings\": \"<unknown>\",\n \"mime\": \"<string>\",\n \"bucket\": \"<string>\",\n \"tags\": \"<unknown>\",\n \"chunkSize\": 123,\n \"length\": 123,\n \"md5\": \"<string>\",\n \"uploadDate\": 123,\n \"$links\": {\n \"self\": \"//example.com/path/to/object\"\n }\n },\n \"transcription\": {\n \"_id\": \"507f1f77bcf86cd799439011\",\n \"graphics\": \"507f1f77bcf86cd799439011\",\n \"dialogue\": \"507f1f77bcf86cd799439011\",\n \"script\": \"507f1f77bcf86cd799439011\"\n },\n \"project\": \"507f1f77bcf86cd799439011\",\n \"studio\": \"507f1f77bcf86cd799439011\",\n \"creative\": true,\n \"aspectRatio\": \"<string>\",\n \"usage\": {\n \"broadcast\": true,\n \"online\": true,\n \"dcp\": true,\n \"dcp3d\": true,\n \"film35\": true,\n \"film70\": true,\n \"imax\": true,\n \"imax3d\": true,\n \"atmos2d\": true,\n \"atmos3d\": true,\n \"dolbyVision2d\": true,\n \"dolbyVision3d\": true\n },\n \"workflow\": {\n \"id\": \"507f1f77bcf86cd799439011\",\n \"phase\": \"<string>\",\n \"definition\": {\n \"phases\": {},\n \"requireGraphicsApproval\": true,\n \"requireOfflineApproval\": true\n },\n \"note\": \"<unknown>\"\n },\n \"file\": {\n \"cdslFile\": \"https://example.com/path/to/object\"\n },\n \"cdslFile\": \"https://example.com/path/to/object\"\n },\n \"assetType\": \"<string>\",\n \"assetCategory\": \"<string>\",\n \"auto\": true,\n \"autosubs\": true,\n \"dualLanguages\": true,\n \"aspectRatio\": \"<string>\",\n \"from\": {\n \"_id\": \"507f1f77bcf86cd799439011\",\n \"name\": \"<string>\",\n \"emailNormal\": \"user@example.com\",\n \"groups\": [\n {\n \"_id\": \"507f1f77bcf86cd799439011\",\n \"name\": \"<string>\",\n \"$links\": {\n \"self\": \"//example.com/path/to/object\"\n }\n }\n ]\n },\n \"due\": {\n \"date\": 123,\n \"tz\": \"<string>\"\n },\n \"language\": \"<string>\",\n \"territory\": \"<string>\",\n \"dng\": {\n \"dialogue\": [\n \"<string>\"\n ],\n \"graphics\": [\n \"<string>\"\n ],\n \"narration\": [\n \"<string>\"\n ]\n },\n \"uses\": {\n \"items\": [\n \"<string>\"\n ],\n \"details\": {}\n },\n \"dcp\": {\n \"items\": [\n \"<string>\"\n ],\n \"details\": {}\n },\n \"instructions\": \"<string>\",\n \"status\": \"<string>\",\n \"history\": [\n {\n \"date\": 123,\n \"user\": {\n \"_id\": \"507f1f77bcf86cd799439011\",\n \"emailNormal\": \"user@example.com\",\n \"name\": \"<string>\",\n \"groups\": [\n {\n \"_id\": \"507f1f77bcf86cd799439011\",\n \"name\": \"<string>\"\n }\n ]\n },\n \"status\": \"<string>\",\n \"reason\": \"<string>\"\n }\n ],\n \"recipients\": {},\n \"shippingAddresses\": {},\n \"estimate\": {\n \"base\": {\n \"graphics\": 123,\n \"narration\": 123,\n \"scripts\": 123,\n \"dubbing\": 123,\n \"subtitling\": 123,\n \"hybrid\": 123,\n \"encoding\": 123,\n \"autosubs\": 123,\n \"autogfx\": 123\n },\n \"applied\": {\n \"graphics\": 123,\n \"narration\": 123,\n \"scripts\": 123,\n \"dubbing\": 123,\n \"subtitling\": 123,\n \"hybrid\": 123,\n \"encoding\": 123,\n \"autosubs\": 123,\n \"autogfx\": 123,\n \"files\": 123,\n \"total\": 123\n }\n },\n \"translation\": {\n \"_id\": \"507f1f77bcf86cd799439011\",\n \"language\": \"<string>\",\n \"translator\": {\n \"_id\": \"507f1f77bcf86cd799439011\",\n \"emailNormal\": \"user@example.com\",\n \"name\": \"<string>\",\n \"groups\": [\n {\n \"_id\": \"507f1f77bcf86cd799439011\",\n \"name\": \"<string>\"\n }\n ]\n },\n \"status\": \"<string>\",\n \"lines\": [\n {\n \"number\": 123,\n \"text\": \"<string>\",\n \"auto\": true,\n \"custom\": true,\n \"machine\": true,\n \"startTime\": \"<string>\",\n \"stopTime\": \"<string>\",\n \"alignment\": \"<string>\",\n \"textAlign\": \"<string>\",\n \"split\": \"<unknown>\",\n \"merged\": \"<unknown>\",\n \"range\": [\n 123\n ]\n }\n ],\n \"printLines\": \"<unknown>\",\n \"approval\": true,\n \"$links\": {\n \"self\": \"//example.com/path/to/object\"\n }\n },\n \"graphicsTranslation\": {\n \"_id\": \"507f1f77bcf86cd799439011\",\n \"language\": \"<string>\",\n \"translator\": {\n \"_id\": \"507f1f77bcf86cd799439011\",\n \"emailNormal\": \"user@example.com\",\n \"name\": \"<string>\",\n \"groups\": [\n {\n \"_id\": \"507f1f77bcf86cd799439011\",\n \"name\": \"<string>\"\n }\n ]\n },\n \"status\": \"<string>\",\n \"lines\": [\n {\n \"number\": 123,\n \"text\": \"<string>\",\n \"auto\": true,\n \"custom\": true,\n \"machine\": true,\n \"startTime\": \"<string>\",\n \"stopTime\": \"<string>\",\n \"alignment\": \"<string>\",\n \"textAlign\": \"<string>\",\n \"split\": \"<unknown>\",\n \"merged\": \"<unknown>\",\n \"range\": [\n 123\n ]\n }\n ],\n \"printLines\": \"<unknown>\",\n \"approval\": true,\n \"$links\": {\n \"self\": \"//example.com/path/to/object\"\n }\n },\n \"urls\": {\n \"view\": \"https://example.com/path/to/object\",\n \"manage\": \"https://example.com/path/to/object\",\n \"invite\": \"https://example.com/path/to/object\",\n \"translate\": \"https://example.com/path/to/object\"\n },\n \"tags\": \"<unknown>\",\n \"rejections\": \"<unknown>\",\n \"files\": [\n {\n \"name\": \"<string>\",\n \"files\": \"<unknown>\"\n }\n ],\n \"materials\": [\n {\n \"name\": \"<string>\",\n \"complete\": true,\n \"approved\": true,\n \"files\": [\n {\n \"id\": \"<string>\",\n \"url\": \"https://example.com/path/to/object\",\n \"name\": \"<string>\",\n \"uploadedAt\": 123,\n \"rootId\": \"<string>\",\n \"version\": 123,\n \"isCurrentVersion\": true,\n \"previousVersionId\": \"<unknown>\"\n }\n ],\n \"changeRequests\": [\n {\n \"id\": \"<string>\",\n \"_id\": \"<string>\",\n \"_optimistic\": true,\n \"fileId\": \"<string>\",\n \"body\": \"<string>\",\n \"status\": \"<string>\",\n \"user\": {\n \"_id\": \"507f1f77bcf86cd799439011\",\n \"name\": \"<string>\",\n \"email\": \"user@example.com\"\n },\n \"requestedBy\": {\n \"_id\": \"507f1f77bcf86cd799439011\",\n \"email\": \"user@example.com\"\n },\n \"requestedAt\": 123,\n \"created\": 123,\n \"replies\": [\n {\n \"id\": \"<string>\",\n \"_id\": \"<string>\",\n \"_optimistic\": true,\n \"replyTo\": \"<string>\",\n \"body\": \"<string>\",\n \"user\": {\n \"_id\": \"507f1f77bcf86cd799439011\",\n \"name\": \"<string>\",\n \"email\": \"user@example.com\"\n },\n \"created\": 123,\n \"editedAt\": 123\n }\n ],\n \"editedAt\": 123\n }\n ]\n }\n ],\n \"deliveryDeadline\": {\n \"date\": 123,\n \"tz\": \"<string>\"\n },\n \"reason\": \"<string>\",\n \"autoMode\": true,\n \"created\": 123,\n \"$links\": {\n \"self\": \"//example.com/path/to/object\",\n \"project\": \"//example.com/path/to/object\",\n \"asset\": \"//example.com/path/to/object\",\n \"from\": \"//example.com/path/to/object\",\n \"graphicsTranslation\": \"//example.com/path/to/object\",\n \"translation\": \"//example.com/path/to/object\"\n },\n \"encodes\": \"<unknown>\",\n \"offlines\": \"<unknown>\",\n \"graphicsAutomationJobs\": \"<unknown>\",\n \"$statuses\": [\n \"<string>\"\n ],\n \"audioFile\": \"<unknown>\"\n}"
response = http.request(request)
puts response.read_body{
"_id": "507f1f77bcf86cd799439011",
"studio": "507f1f77bcf86cd799439011",
"project": {
"_id": "507f1f77bcf86cd799439011",
"name": "<string>",
"slug": "<string>",
"studio": "507f1f77bcf86cd799439011",
"logo": "507f1f77bcf86cd799439011",
"$links": {
"self": "//example.com/path/to/object"
}
},
"asset": {
"_id": "507f1f77bcf86cd799439011",
"name": "<string>",
"slug": "<string>",
"type": "<string>",
"mediaType": "<string>",
"thumbnail": {
"_id": "507f1f77bcf86cd799439011",
"verified": true,
"embargo": {
"event": true
},
"warnings": "<unknown>",
"mime": "<string>",
"bucket": "<string>",
"tags": "<unknown>",
"chunkSize": 123,
"length": 123,
"md5": "<string>",
"uploadDate": 123,
"$links": {
"self": "//example.com/path/to/object"
}
},
"transcription": {
"_id": "507f1f77bcf86cd799439011",
"graphics": "507f1f77bcf86cd799439011",
"dialogue": "507f1f77bcf86cd799439011",
"script": "507f1f77bcf86cd799439011"
},
"project": "507f1f77bcf86cd799439011",
"studio": "507f1f77bcf86cd799439011",
"creative": true,
"aspectRatio": "<string>",
"usage": {
"broadcast": true,
"online": true,
"dcp": true,
"dcp3d": true,
"film35": true,
"film70": true,
"imax": true,
"imax3d": true,
"atmos2d": true,
"atmos3d": true,
"dolbyVision2d": true,
"dolbyVision3d": true
},
"workflow": {
"id": "507f1f77bcf86cd799439011",
"phase": "<string>",
"definition": {
"phases": {},
"requireGraphicsApproval": true,
"requireOfflineApproval": true
},
"note": "<unknown>"
},
"file": {
"cdslFile": "https://example.com/path/to/object"
},
"cdslFile": "https://example.com/path/to/object"
},
"assetType": "<string>",
"assetCategory": "<string>",
"auto": true,
"autosubs": true,
"dualLanguages": true,
"aspectRatio": "<string>",
"from": {
"_id": "507f1f77bcf86cd799439011",
"name": "<string>",
"emailNormal": "user@example.com",
"groups": [
{
"_id": "507f1f77bcf86cd799439011",
"name": "<string>",
"$links": {
"self": "//example.com/path/to/object"
}
}
]
},
"due": {
"date": 123,
"tz": "<string>"
},
"language": "<string>",
"territory": "<string>",
"dng": {
"dialogue": [
"<string>"
],
"graphics": [
"<string>"
],
"narration": [
"<string>"
]
},
"uses": {
"items": [
"<string>"
],
"details": {}
},
"dcp": {
"items": [
"<string>"
],
"details": {}
},
"instructions": "<string>",
"status": "<string>",
"history": [
{
"date": 123,
"user": {
"_id": "507f1f77bcf86cd799439011",
"emailNormal": "user@example.com",
"name": "<string>",
"groups": [
{
"_id": "507f1f77bcf86cd799439011",
"name": "<string>"
}
]
},
"status": "<string>",
"reason": "<string>"
}
],
"recipients": {},
"shippingAddresses": {},
"estimate": {
"base": {
"graphics": 123,
"narration": 123,
"scripts": 123,
"dubbing": 123,
"subtitling": 123,
"hybrid": 123,
"encoding": 123,
"autosubs": 123,
"autogfx": 123
},
"applied": {
"graphics": 123,
"narration": 123,
"scripts": 123,
"dubbing": 123,
"subtitling": 123,
"hybrid": 123,
"encoding": 123,
"autosubs": 123,
"autogfx": 123,
"files": 123,
"total": 123
}
},
"translation": {
"_id": "507f1f77bcf86cd799439011",
"language": "<string>",
"translator": {
"_id": "507f1f77bcf86cd799439011",
"emailNormal": "user@example.com",
"name": "<string>",
"groups": [
{
"_id": "507f1f77bcf86cd799439011",
"name": "<string>"
}
]
},
"status": "<string>",
"lines": [
{
"number": 123,
"text": "<string>",
"auto": true,
"custom": true,
"machine": true,
"startTime": "<string>",
"stopTime": "<string>",
"alignment": "<string>",
"textAlign": "<string>",
"split": "<unknown>",
"merged": "<unknown>",
"range": [
123
]
}
],
"printLines": "<unknown>",
"approval": true,
"$links": {
"self": "//example.com/path/to/object"
}
},
"graphicsTranslation": {
"_id": "507f1f77bcf86cd799439011",
"language": "<string>",
"translator": {
"_id": "507f1f77bcf86cd799439011",
"emailNormal": "user@example.com",
"name": "<string>",
"groups": [
{
"_id": "507f1f77bcf86cd799439011",
"name": "<string>"
}
]
},
"status": "<string>",
"lines": [
{
"number": 123,
"text": "<string>",
"auto": true,
"custom": true,
"machine": true,
"startTime": "<string>",
"stopTime": "<string>",
"alignment": "<string>",
"textAlign": "<string>",
"split": "<unknown>",
"merged": "<unknown>",
"range": [
123
]
}
],
"printLines": "<unknown>",
"approval": true,
"$links": {
"self": "//example.com/path/to/object"
}
},
"urls": {
"view": "https://example.com/path/to/object",
"manage": "https://example.com/path/to/object",
"invite": "https://example.com/path/to/object",
"translate": "https://example.com/path/to/object"
},
"tags": "<unknown>",
"rejections": "<unknown>",
"files": [
{
"name": "<string>",
"files": "<unknown>"
}
],
"materials": [
{
"name": "<string>",
"complete": true,
"approved": true,
"files": [
{
"id": "<string>",
"url": "https://example.com/path/to/object",
"name": "<string>",
"uploadedAt": 123,
"rootId": "<string>",
"version": 123,
"isCurrentVersion": true,
"previousVersionId": "<unknown>"
}
],
"changeRequests": [
{
"id": "<string>",
"_id": "<string>",
"_optimistic": true,
"fileId": "<string>",
"body": "<string>",
"status": "<string>",
"user": {
"_id": "507f1f77bcf86cd799439011",
"name": "<string>",
"email": "user@example.com"
},
"requestedBy": {
"_id": "507f1f77bcf86cd799439011",
"email": "user@example.com"
},
"requestedAt": 123,
"created": 123,
"replies": [
{
"id": "<string>",
"_id": "<string>",
"_optimistic": true,
"replyTo": "<string>",
"body": "<string>",
"user": {
"_id": "507f1f77bcf86cd799439011",
"name": "<string>",
"email": "user@example.com"
},
"created": 123,
"editedAt": 123
}
],
"editedAt": 123
}
]
}
],
"deliveryDeadline": {
"date": 123,
"tz": "<string>"
},
"reason": "<string>",
"autoMode": true,
"created": 123,
"$links": {
"self": "//example.com/path/to/object",
"project": "//example.com/path/to/object",
"asset": "//example.com/path/to/object",
"from": "//example.com/path/to/object",
"graphicsTranslation": "//example.com/path/to/object",
"translation": "//example.com/path/to/object"
},
"encodes": "<unknown>",
"offlines": "<unknown>",
"graphicsAutomationJobs": "<unknown>",
"$statuses": [
"<string>"
],
"audioFile": "<unknown>"
}Create a workrequest
curl --request POST \
--url https://api-staging.pixwel.com/api/workrequests \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"_id": "507f1f77bcf86cd799439011",
"studio": "507f1f77bcf86cd799439011",
"project": {
"_id": "507f1f77bcf86cd799439011",
"name": "<string>",
"slug": "<string>",
"studio": "507f1f77bcf86cd799439011",
"logo": "507f1f77bcf86cd799439011",
"$links": {
"self": "//example.com/path/to/object"
}
},
"asset": {
"_id": "507f1f77bcf86cd799439011",
"name": "<string>",
"slug": "<string>",
"type": "<string>",
"mediaType": "<string>",
"thumbnail": {
"_id": "507f1f77bcf86cd799439011",
"verified": true,
"embargo": {
"event": true
},
"warnings": "<unknown>",
"mime": "<string>",
"bucket": "<string>",
"tags": "<unknown>",
"chunkSize": 123,
"length": 123,
"md5": "<string>",
"uploadDate": 123,
"$links": {
"self": "//example.com/path/to/object"
}
},
"transcription": {
"_id": "507f1f77bcf86cd799439011",
"graphics": "507f1f77bcf86cd799439011",
"dialogue": "507f1f77bcf86cd799439011",
"script": "507f1f77bcf86cd799439011"
},
"project": "507f1f77bcf86cd799439011",
"studio": "507f1f77bcf86cd799439011",
"creative": true,
"aspectRatio": "<string>",
"usage": {
"broadcast": true,
"online": true,
"dcp": true,
"dcp3d": true,
"film35": true,
"film70": true,
"imax": true,
"imax3d": true,
"atmos2d": true,
"atmos3d": true,
"dolbyVision2d": true,
"dolbyVision3d": true
},
"workflow": {
"id": "507f1f77bcf86cd799439011",
"phase": "<string>",
"definition": {
"phases": {},
"requireGraphicsApproval": true,
"requireOfflineApproval": true
},
"note": "<unknown>"
},
"file": {
"cdslFile": "https://example.com/path/to/object"
},
"cdslFile": "https://example.com/path/to/object"
},
"assetType": "<string>",
"assetCategory": "<string>",
"auto": true,
"autosubs": true,
"dualLanguages": true,
"aspectRatio": "<string>",
"from": {
"_id": "507f1f77bcf86cd799439011",
"name": "<string>",
"emailNormal": "user@example.com",
"groups": [
{
"_id": "507f1f77bcf86cd799439011",
"name": "<string>",
"$links": {
"self": "//example.com/path/to/object"
}
}
]
},
"due": {
"date": 123,
"tz": "<string>"
},
"language": "<string>",
"territory": "<string>",
"dng": {
"dialogue": [
"<string>"
],
"graphics": [
"<string>"
],
"narration": [
"<string>"
]
},
"uses": {
"items": [
"<string>"
],
"details": {}
},
"dcp": {
"items": [
"<string>"
],
"details": {}
},
"instructions": "<string>",
"status": "<string>",
"history": [
{
"date": 123,
"user": {
"_id": "507f1f77bcf86cd799439011",
"emailNormal": "user@example.com",
"name": "<string>",
"groups": [
{
"_id": "507f1f77bcf86cd799439011",
"name": "<string>"
}
]
},
"status": "<string>",
"reason": "<string>"
}
],
"recipients": {},
"shippingAddresses": {},
"estimate": {
"base": {
"graphics": 123,
"narration": 123,
"scripts": 123,
"dubbing": 123,
"subtitling": 123,
"hybrid": 123,
"encoding": 123,
"autosubs": 123,
"autogfx": 123
},
"applied": {
"graphics": 123,
"narration": 123,
"scripts": 123,
"dubbing": 123,
"subtitling": 123,
"hybrid": 123,
"encoding": 123,
"autosubs": 123,
"autogfx": 123,
"files": 123,
"total": 123
}
},
"translation": {
"_id": "507f1f77bcf86cd799439011",
"language": "<string>",
"translator": {
"_id": "507f1f77bcf86cd799439011",
"emailNormal": "user@example.com",
"name": "<string>",
"groups": [
{
"_id": "507f1f77bcf86cd799439011",
"name": "<string>"
}
]
},
"status": "<string>",
"lines": [
{
"number": 123,
"text": "<string>",
"auto": true,
"custom": true,
"machine": true,
"startTime": "<string>",
"stopTime": "<string>",
"alignment": "<string>",
"textAlign": "<string>",
"split": "<unknown>",
"merged": "<unknown>",
"range": [
123
]
}
],
"printLines": "<unknown>",
"approval": true,
"$links": {
"self": "//example.com/path/to/object"
}
},
"graphicsTranslation": {
"_id": "507f1f77bcf86cd799439011",
"language": "<string>",
"translator": {
"_id": "507f1f77bcf86cd799439011",
"emailNormal": "user@example.com",
"name": "<string>",
"groups": [
{
"_id": "507f1f77bcf86cd799439011",
"name": "<string>"
}
]
},
"status": "<string>",
"lines": [
{
"number": 123,
"text": "<string>",
"auto": true,
"custom": true,
"machine": true,
"startTime": "<string>",
"stopTime": "<string>",
"alignment": "<string>",
"textAlign": "<string>",
"split": "<unknown>",
"merged": "<unknown>",
"range": [
123
]
}
],
"printLines": "<unknown>",
"approval": true,
"$links": {
"self": "//example.com/path/to/object"
}
},
"urls": {
"view": "https://example.com/path/to/object",
"manage": "https://example.com/path/to/object",
"invite": "https://example.com/path/to/object",
"translate": "https://example.com/path/to/object"
},
"tags": "<unknown>",
"rejections": "<unknown>",
"files": [
{
"name": "<string>",
"files": "<unknown>"
}
],
"materials": [
{
"name": "<string>",
"complete": true,
"approved": true,
"files": [
{
"id": "<string>",
"url": "https://example.com/path/to/object",
"name": "<string>",
"uploadedAt": 123,
"rootId": "<string>",
"version": 123,
"isCurrentVersion": true,
"previousVersionId": "<unknown>"
}
],
"changeRequests": [
{
"id": "<string>",
"_id": "<string>",
"_optimistic": true,
"fileId": "<string>",
"body": "<string>",
"status": "<string>",
"user": {
"_id": "507f1f77bcf86cd799439011",
"name": "<string>",
"email": "user@example.com"
},
"requestedBy": {
"_id": "507f1f77bcf86cd799439011",
"email": "user@example.com"
},
"requestedAt": 123,
"created": 123,
"replies": [
{
"id": "<string>",
"_id": "<string>",
"_optimistic": true,
"replyTo": "<string>",
"body": "<string>",
"user": {
"_id": "507f1f77bcf86cd799439011",
"name": "<string>",
"email": "user@example.com"
},
"created": 123,
"editedAt": 123
}
],
"editedAt": 123
}
]
}
],
"deliveryDeadline": {
"date": 123,
"tz": "<string>"
},
"reason": "<string>",
"autoMode": true,
"created": 123,
"$links": {
"self": "//example.com/path/to/object",
"project": "//example.com/path/to/object",
"asset": "//example.com/path/to/object",
"from": "//example.com/path/to/object",
"graphicsTranslation": "//example.com/path/to/object",
"translation": "//example.com/path/to/object"
},
"encodes": "<unknown>",
"offlines": "<unknown>",
"graphicsAutomationJobs": "<unknown>",
"$statuses": [
"<string>"
],
"audioFile": "<unknown>"
}
'import requests
url = "https://api-staging.pixwel.com/api/workrequests"
payload = {
"_id": "507f1f77bcf86cd799439011",
"studio": "507f1f77bcf86cd799439011",
"project": {
"_id": "507f1f77bcf86cd799439011",
"name": "<string>",
"slug": "<string>",
"studio": "507f1f77bcf86cd799439011",
"logo": "507f1f77bcf86cd799439011",
"$links": { "self": "//example.com/path/to/object" }
},
"asset": {
"_id": "507f1f77bcf86cd799439011",
"name": "<string>",
"slug": "<string>",
"type": "<string>",
"mediaType": "<string>",
"thumbnail": {
"_id": "507f1f77bcf86cd799439011",
"verified": True,
"embargo": { "event": True },
"warnings": "<unknown>",
"mime": "<string>",
"bucket": "<string>",
"tags": "<unknown>",
"chunkSize": 123,
"length": 123,
"md5": "<string>",
"uploadDate": 123,
"$links": { "self": "//example.com/path/to/object" }
},
"transcription": {
"_id": "507f1f77bcf86cd799439011",
"graphics": "507f1f77bcf86cd799439011",
"dialogue": "507f1f77bcf86cd799439011",
"script": "507f1f77bcf86cd799439011"
},
"project": "507f1f77bcf86cd799439011",
"studio": "507f1f77bcf86cd799439011",
"creative": True,
"aspectRatio": "<string>",
"usage": {
"broadcast": True,
"online": True,
"dcp": True,
"dcp3d": True,
"film35": True,
"film70": True,
"imax": True,
"imax3d": True,
"atmos2d": True,
"atmos3d": True,
"dolbyVision2d": True,
"dolbyVision3d": True
},
"workflow": {
"id": "507f1f77bcf86cd799439011",
"phase": "<string>",
"definition": {
"phases": {},
"requireGraphicsApproval": True,
"requireOfflineApproval": True
},
"note": "<unknown>"
},
"file": { "cdslFile": "https://example.com/path/to/object" },
"cdslFile": "https://example.com/path/to/object"
},
"assetType": "<string>",
"assetCategory": "<string>",
"auto": True,
"autosubs": True,
"dualLanguages": True,
"aspectRatio": "<string>",
"from": {
"_id": "507f1f77bcf86cd799439011",
"name": "<string>",
"emailNormal": "user@example.com",
"groups": [
{
"_id": "507f1f77bcf86cd799439011",
"name": "<string>",
"$links": { "self": "//example.com/path/to/object" }
}
]
},
"due": {
"date": 123,
"tz": "<string>"
},
"language": "<string>",
"territory": "<string>",
"dng": {
"dialogue": ["<string>"],
"graphics": ["<string>"],
"narration": ["<string>"]
},
"uses": {
"items": ["<string>"],
"details": {}
},
"dcp": {
"items": ["<string>"],
"details": {}
},
"instructions": "<string>",
"status": "<string>",
"history": [
{
"date": 123,
"user": {
"_id": "507f1f77bcf86cd799439011",
"emailNormal": "user@example.com",
"name": "<string>",
"groups": [
{
"_id": "507f1f77bcf86cd799439011",
"name": "<string>"
}
]
},
"status": "<string>",
"reason": "<string>"
}
],
"recipients": {},
"shippingAddresses": {},
"estimate": {
"base": {
"graphics": 123,
"narration": 123,
"scripts": 123,
"dubbing": 123,
"subtitling": 123,
"hybrid": 123,
"encoding": 123,
"autosubs": 123,
"autogfx": 123
},
"applied": {
"graphics": 123,
"narration": 123,
"scripts": 123,
"dubbing": 123,
"subtitling": 123,
"hybrid": 123,
"encoding": 123,
"autosubs": 123,
"autogfx": 123,
"files": 123,
"total": 123
}
},
"translation": {
"_id": "507f1f77bcf86cd799439011",
"language": "<string>",
"translator": {
"_id": "507f1f77bcf86cd799439011",
"emailNormal": "user@example.com",
"name": "<string>",
"groups": [
{
"_id": "507f1f77bcf86cd799439011",
"name": "<string>"
}
]
},
"status": "<string>",
"lines": [
{
"number": 123,
"text": "<string>",
"auto": True,
"custom": True,
"machine": True,
"startTime": "<string>",
"stopTime": "<string>",
"alignment": "<string>",
"textAlign": "<string>",
"split": "<unknown>",
"merged": "<unknown>",
"range": [123]
}
],
"printLines": "<unknown>",
"approval": True,
"$links": { "self": "//example.com/path/to/object" }
},
"graphicsTranslation": {
"_id": "507f1f77bcf86cd799439011",
"language": "<string>",
"translator": {
"_id": "507f1f77bcf86cd799439011",
"emailNormal": "user@example.com",
"name": "<string>",
"groups": [
{
"_id": "507f1f77bcf86cd799439011",
"name": "<string>"
}
]
},
"status": "<string>",
"lines": [
{
"number": 123,
"text": "<string>",
"auto": True,
"custom": True,
"machine": True,
"startTime": "<string>",
"stopTime": "<string>",
"alignment": "<string>",
"textAlign": "<string>",
"split": "<unknown>",
"merged": "<unknown>",
"range": [123]
}
],
"printLines": "<unknown>",
"approval": True,
"$links": { "self": "//example.com/path/to/object" }
},
"urls": {
"view": "https://example.com/path/to/object",
"manage": "https://example.com/path/to/object",
"invite": "https://example.com/path/to/object",
"translate": "https://example.com/path/to/object"
},
"tags": "<unknown>",
"rejections": "<unknown>",
"files": [
{
"name": "<string>",
"files": "<unknown>"
}
],
"materials": [
{
"name": "<string>",
"complete": True,
"approved": True,
"files": [
{
"id": "<string>",
"url": "https://example.com/path/to/object",
"name": "<string>",
"uploadedAt": 123,
"rootId": "<string>",
"version": 123,
"isCurrentVersion": True,
"previousVersionId": "<unknown>"
}
],
"changeRequests": [
{
"id": "<string>",
"_id": "<string>",
"_optimistic": True,
"fileId": "<string>",
"body": "<string>",
"status": "<string>",
"user": {
"_id": "507f1f77bcf86cd799439011",
"name": "<string>",
"email": "user@example.com"
},
"requestedBy": {
"_id": "507f1f77bcf86cd799439011",
"email": "user@example.com"
},
"requestedAt": 123,
"created": 123,
"replies": [
{
"id": "<string>",
"_id": "<string>",
"_optimistic": True,
"replyTo": "<string>",
"body": "<string>",
"user": {
"_id": "507f1f77bcf86cd799439011",
"name": "<string>",
"email": "user@example.com"
},
"created": 123,
"editedAt": 123
}
],
"editedAt": 123
}
]
}
],
"deliveryDeadline": {
"date": 123,
"tz": "<string>"
},
"reason": "<string>",
"autoMode": True,
"created": 123,
"$links": {
"self": "//example.com/path/to/object",
"project": "//example.com/path/to/object",
"asset": "//example.com/path/to/object",
"from": "//example.com/path/to/object",
"graphicsTranslation": "//example.com/path/to/object",
"translation": "//example.com/path/to/object"
},
"encodes": "<unknown>",
"offlines": "<unknown>",
"graphicsAutomationJobs": "<unknown>",
"$statuses": ["<string>"],
"audioFile": "<unknown>"
}
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({
_id: '507f1f77bcf86cd799439011',
studio: '507f1f77bcf86cd799439011',
project: {
_id: '507f1f77bcf86cd799439011',
name: '<string>',
slug: '<string>',
studio: '507f1f77bcf86cd799439011',
logo: '507f1f77bcf86cd799439011',
$links: {self: '//example.com/path/to/object'}
},
asset: {
_id: '507f1f77bcf86cd799439011',
name: '<string>',
slug: '<string>',
type: '<string>',
mediaType: '<string>',
thumbnail: {
_id: '507f1f77bcf86cd799439011',
verified: true,
embargo: {event: true},
warnings: '<unknown>',
mime: '<string>',
bucket: '<string>',
tags: '<unknown>',
chunkSize: 123,
length: 123,
md5: '<string>',
uploadDate: 123,
$links: {self: '//example.com/path/to/object'}
},
transcription: {
_id: '507f1f77bcf86cd799439011',
graphics: '507f1f77bcf86cd799439011',
dialogue: '507f1f77bcf86cd799439011',
script: '507f1f77bcf86cd799439011'
},
project: '507f1f77bcf86cd799439011',
studio: '507f1f77bcf86cd799439011',
creative: true,
aspectRatio: '<string>',
usage: {
broadcast: true,
online: true,
dcp: true,
dcp3d: true,
film35: true,
film70: true,
imax: true,
imax3d: true,
atmos2d: true,
atmos3d: true,
dolbyVision2d: true,
dolbyVision3d: true
},
workflow: {
id: '507f1f77bcf86cd799439011',
phase: '<string>',
definition: {phases: {}, requireGraphicsApproval: true, requireOfflineApproval: true},
note: '<unknown>'
},
file: {cdslFile: 'https://example.com/path/to/object'},
cdslFile: 'https://example.com/path/to/object'
},
assetType: '<string>',
assetCategory: '<string>',
auto: true,
autosubs: true,
dualLanguages: true,
aspectRatio: '<string>',
from: {
_id: '507f1f77bcf86cd799439011',
name: '<string>',
emailNormal: 'user@example.com',
groups: [
{
_id: '507f1f77bcf86cd799439011',
name: '<string>',
$links: {self: '//example.com/path/to/object'}
}
]
},
due: {date: 123, tz: '<string>'},
language: '<string>',
territory: '<string>',
dng: {dialogue: ['<string>'], graphics: ['<string>'], narration: ['<string>']},
uses: {items: ['<string>'], details: {}},
dcp: {items: ['<string>'], details: {}},
instructions: '<string>',
status: '<string>',
history: [
{
date: 123,
user: {
_id: '507f1f77bcf86cd799439011',
emailNormal: 'user@example.com',
name: '<string>',
groups: [{_id: '507f1f77bcf86cd799439011', name: '<string>'}]
},
status: '<string>',
reason: '<string>'
}
],
recipients: {},
shippingAddresses: {},
estimate: {
base: {
graphics: 123,
narration: 123,
scripts: 123,
dubbing: 123,
subtitling: 123,
hybrid: 123,
encoding: 123,
autosubs: 123,
autogfx: 123
},
applied: {
graphics: 123,
narration: 123,
scripts: 123,
dubbing: 123,
subtitling: 123,
hybrid: 123,
encoding: 123,
autosubs: 123,
autogfx: 123,
files: 123,
total: 123
}
},
translation: {
_id: '507f1f77bcf86cd799439011',
language: '<string>',
translator: {
_id: '507f1f77bcf86cd799439011',
emailNormal: 'user@example.com',
name: '<string>',
groups: [{_id: '507f1f77bcf86cd799439011', name: '<string>'}]
},
status: '<string>',
lines: [
{
number: 123,
text: '<string>',
auto: true,
custom: true,
machine: true,
startTime: '<string>',
stopTime: '<string>',
alignment: '<string>',
textAlign: '<string>',
split: '<unknown>',
merged: '<unknown>',
range: [123]
}
],
printLines: '<unknown>',
approval: true,
$links: {self: '//example.com/path/to/object'}
},
graphicsTranslation: {
_id: '507f1f77bcf86cd799439011',
language: '<string>',
translator: {
_id: '507f1f77bcf86cd799439011',
emailNormal: 'user@example.com',
name: '<string>',
groups: [{_id: '507f1f77bcf86cd799439011', name: '<string>'}]
},
status: '<string>',
lines: [
{
number: 123,
text: '<string>',
auto: true,
custom: true,
machine: true,
startTime: '<string>',
stopTime: '<string>',
alignment: '<string>',
textAlign: '<string>',
split: '<unknown>',
merged: '<unknown>',
range: [123]
}
],
printLines: '<unknown>',
approval: true,
$links: {self: '//example.com/path/to/object'}
},
urls: {
view: 'https://example.com/path/to/object',
manage: 'https://example.com/path/to/object',
invite: 'https://example.com/path/to/object',
translate: 'https://example.com/path/to/object'
},
tags: '<unknown>',
rejections: '<unknown>',
files: [{name: '<string>', files: '<unknown>'}],
materials: [
{
name: '<string>',
complete: true,
approved: true,
files: [
{
id: '<string>',
url: 'https://example.com/path/to/object',
name: '<string>',
uploadedAt: 123,
rootId: '<string>',
version: 123,
isCurrentVersion: true,
previousVersionId: '<unknown>'
}
],
changeRequests: [
{
id: '<string>',
_id: '<string>',
_optimistic: true,
fileId: '<string>',
body: JSON.stringify('<string>'),
status: '<string>',
user: {_id: '507f1f77bcf86cd799439011', name: '<string>', email: 'user@example.com'},
requestedBy: {_id: '507f1f77bcf86cd799439011', email: 'user@example.com'},
requestedAt: 123,
created: 123,
replies: [
{
id: '<string>',
_id: '<string>',
_optimistic: true,
replyTo: '<string>',
body: JSON.stringify('<string>'),
user: {_id: '507f1f77bcf86cd799439011', name: '<string>', email: 'user@example.com'},
created: 123,
editedAt: 123
}
],
editedAt: 123
}
]
}
],
deliveryDeadline: {date: 123, tz: '<string>'},
reason: '<string>',
autoMode: true,
created: 123,
$links: {
self: '//example.com/path/to/object',
project: '//example.com/path/to/object',
asset: '//example.com/path/to/object',
from: '//example.com/path/to/object',
graphicsTranslation: '//example.com/path/to/object',
translation: '//example.com/path/to/object'
},
encodes: '<unknown>',
offlines: '<unknown>',
graphicsAutomationJobs: '<unknown>',
$statuses: ['<string>'],
audioFile: '<unknown>'
})
};
fetch('https://api-staging.pixwel.com/api/workrequests', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api-staging.pixwel.com/api/workrequests",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'_id' => '507f1f77bcf86cd799439011',
'studio' => '507f1f77bcf86cd799439011',
'project' => [
'_id' => '507f1f77bcf86cd799439011',
'name' => '<string>',
'slug' => '<string>',
'studio' => '507f1f77bcf86cd799439011',
'logo' => '507f1f77bcf86cd799439011',
'$links' => [
'self' => '//example.com/path/to/object'
]
],
'asset' => [
'_id' => '507f1f77bcf86cd799439011',
'name' => '<string>',
'slug' => '<string>',
'type' => '<string>',
'mediaType' => '<string>',
'thumbnail' => [
'_id' => '507f1f77bcf86cd799439011',
'verified' => true,
'embargo' => [
'event' => true
],
'warnings' => '<unknown>',
'mime' => '<string>',
'bucket' => '<string>',
'tags' => '<unknown>',
'chunkSize' => 123,
'length' => 123,
'md5' => '<string>',
'uploadDate' => 123,
'$links' => [
'self' => '//example.com/path/to/object'
]
],
'transcription' => [
'_id' => '507f1f77bcf86cd799439011',
'graphics' => '507f1f77bcf86cd799439011',
'dialogue' => '507f1f77bcf86cd799439011',
'script' => '507f1f77bcf86cd799439011'
],
'project' => '507f1f77bcf86cd799439011',
'studio' => '507f1f77bcf86cd799439011',
'creative' => true,
'aspectRatio' => '<string>',
'usage' => [
'broadcast' => true,
'online' => true,
'dcp' => true,
'dcp3d' => true,
'film35' => true,
'film70' => true,
'imax' => true,
'imax3d' => true,
'atmos2d' => true,
'atmos3d' => true,
'dolbyVision2d' => true,
'dolbyVision3d' => true
],
'workflow' => [
'id' => '507f1f77bcf86cd799439011',
'phase' => '<string>',
'definition' => [
'phases' => [
],
'requireGraphicsApproval' => true,
'requireOfflineApproval' => true
],
'note' => '<unknown>'
],
'file' => [
'cdslFile' => 'https://example.com/path/to/object'
],
'cdslFile' => 'https://example.com/path/to/object'
],
'assetType' => '<string>',
'assetCategory' => '<string>',
'auto' => true,
'autosubs' => true,
'dualLanguages' => true,
'aspectRatio' => '<string>',
'from' => [
'_id' => '507f1f77bcf86cd799439011',
'name' => '<string>',
'emailNormal' => 'user@example.com',
'groups' => [
[
'_id' => '507f1f77bcf86cd799439011',
'name' => '<string>',
'$links' => [
'self' => '//example.com/path/to/object'
]
]
]
],
'due' => [
'date' => 123,
'tz' => '<string>'
],
'language' => '<string>',
'territory' => '<string>',
'dng' => [
'dialogue' => [
'<string>'
],
'graphics' => [
'<string>'
],
'narration' => [
'<string>'
]
],
'uses' => [
'items' => [
'<string>'
],
'details' => [
]
],
'dcp' => [
'items' => [
'<string>'
],
'details' => [
]
],
'instructions' => '<string>',
'status' => '<string>',
'history' => [
[
'date' => 123,
'user' => [
'_id' => '507f1f77bcf86cd799439011',
'emailNormal' => 'user@example.com',
'name' => '<string>',
'groups' => [
[
'_id' => '507f1f77bcf86cd799439011',
'name' => '<string>'
]
]
],
'status' => '<string>',
'reason' => '<string>'
]
],
'recipients' => [
],
'shippingAddresses' => [
],
'estimate' => [
'base' => [
'graphics' => 123,
'narration' => 123,
'scripts' => 123,
'dubbing' => 123,
'subtitling' => 123,
'hybrid' => 123,
'encoding' => 123,
'autosubs' => 123,
'autogfx' => 123
],
'applied' => [
'graphics' => 123,
'narration' => 123,
'scripts' => 123,
'dubbing' => 123,
'subtitling' => 123,
'hybrid' => 123,
'encoding' => 123,
'autosubs' => 123,
'autogfx' => 123,
'files' => 123,
'total' => 123
]
],
'translation' => [
'_id' => '507f1f77bcf86cd799439011',
'language' => '<string>',
'translator' => [
'_id' => '507f1f77bcf86cd799439011',
'emailNormal' => 'user@example.com',
'name' => '<string>',
'groups' => [
[
'_id' => '507f1f77bcf86cd799439011',
'name' => '<string>'
]
]
],
'status' => '<string>',
'lines' => [
[
'number' => 123,
'text' => '<string>',
'auto' => true,
'custom' => true,
'machine' => true,
'startTime' => '<string>',
'stopTime' => '<string>',
'alignment' => '<string>',
'textAlign' => '<string>',
'split' => '<unknown>',
'merged' => '<unknown>',
'range' => [
123
]
]
],
'printLines' => '<unknown>',
'approval' => true,
'$links' => [
'self' => '//example.com/path/to/object'
]
],
'graphicsTranslation' => [
'_id' => '507f1f77bcf86cd799439011',
'language' => '<string>',
'translator' => [
'_id' => '507f1f77bcf86cd799439011',
'emailNormal' => 'user@example.com',
'name' => '<string>',
'groups' => [
[
'_id' => '507f1f77bcf86cd799439011',
'name' => '<string>'
]
]
],
'status' => '<string>',
'lines' => [
[
'number' => 123,
'text' => '<string>',
'auto' => true,
'custom' => true,
'machine' => true,
'startTime' => '<string>',
'stopTime' => '<string>',
'alignment' => '<string>',
'textAlign' => '<string>',
'split' => '<unknown>',
'merged' => '<unknown>',
'range' => [
123
]
]
],
'printLines' => '<unknown>',
'approval' => true,
'$links' => [
'self' => '//example.com/path/to/object'
]
],
'urls' => [
'view' => 'https://example.com/path/to/object',
'manage' => 'https://example.com/path/to/object',
'invite' => 'https://example.com/path/to/object',
'translate' => 'https://example.com/path/to/object'
],
'tags' => '<unknown>',
'rejections' => '<unknown>',
'files' => [
[
'name' => '<string>',
'files' => '<unknown>'
]
],
'materials' => [
[
'name' => '<string>',
'complete' => true,
'approved' => true,
'files' => [
[
'id' => '<string>',
'url' => 'https://example.com/path/to/object',
'name' => '<string>',
'uploadedAt' => 123,
'rootId' => '<string>',
'version' => 123,
'isCurrentVersion' => true,
'previousVersionId' => '<unknown>'
]
],
'changeRequests' => [
[
'id' => '<string>',
'_id' => '<string>',
'_optimistic' => true,
'fileId' => '<string>',
'body' => '<string>',
'status' => '<string>',
'user' => [
'_id' => '507f1f77bcf86cd799439011',
'name' => '<string>',
'email' => 'user@example.com'
],
'requestedBy' => [
'_id' => '507f1f77bcf86cd799439011',
'email' => 'user@example.com'
],
'requestedAt' => 123,
'created' => 123,
'replies' => [
[
'id' => '<string>',
'_id' => '<string>',
'_optimistic' => true,
'replyTo' => '<string>',
'body' => '<string>',
'user' => [
'_id' => '507f1f77bcf86cd799439011',
'name' => '<string>',
'email' => 'user@example.com'
],
'created' => 123,
'editedAt' => 123
]
],
'editedAt' => 123
]
]
]
],
'deliveryDeadline' => [
'date' => 123,
'tz' => '<string>'
],
'reason' => '<string>',
'autoMode' => true,
'created' => 123,
'$links' => [
'self' => '//example.com/path/to/object',
'project' => '//example.com/path/to/object',
'asset' => '//example.com/path/to/object',
'from' => '//example.com/path/to/object',
'graphicsTranslation' => '//example.com/path/to/object',
'translation' => '//example.com/path/to/object'
],
'encodes' => '<unknown>',
'offlines' => '<unknown>',
'graphicsAutomationJobs' => '<unknown>',
'$statuses' => [
'<string>'
],
'audioFile' => '<unknown>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api-staging.pixwel.com/api/workrequests"
payload := strings.NewReader("{\n \"_id\": \"507f1f77bcf86cd799439011\",\n \"studio\": \"507f1f77bcf86cd799439011\",\n \"project\": {\n \"_id\": \"507f1f77bcf86cd799439011\",\n \"name\": \"<string>\",\n \"slug\": \"<string>\",\n \"studio\": \"507f1f77bcf86cd799439011\",\n \"logo\": \"507f1f77bcf86cd799439011\",\n \"$links\": {\n \"self\": \"//example.com/path/to/object\"\n }\n },\n \"asset\": {\n \"_id\": \"507f1f77bcf86cd799439011\",\n \"name\": \"<string>\",\n \"slug\": \"<string>\",\n \"type\": \"<string>\",\n \"mediaType\": \"<string>\",\n \"thumbnail\": {\n \"_id\": \"507f1f77bcf86cd799439011\",\n \"verified\": true,\n \"embargo\": {\n \"event\": true\n },\n \"warnings\": \"<unknown>\",\n \"mime\": \"<string>\",\n \"bucket\": \"<string>\",\n \"tags\": \"<unknown>\",\n \"chunkSize\": 123,\n \"length\": 123,\n \"md5\": \"<string>\",\n \"uploadDate\": 123,\n \"$links\": {\n \"self\": \"//example.com/path/to/object\"\n }\n },\n \"transcription\": {\n \"_id\": \"507f1f77bcf86cd799439011\",\n \"graphics\": \"507f1f77bcf86cd799439011\",\n \"dialogue\": \"507f1f77bcf86cd799439011\",\n \"script\": \"507f1f77bcf86cd799439011\"\n },\n \"project\": \"507f1f77bcf86cd799439011\",\n \"studio\": \"507f1f77bcf86cd799439011\",\n \"creative\": true,\n \"aspectRatio\": \"<string>\",\n \"usage\": {\n \"broadcast\": true,\n \"online\": true,\n \"dcp\": true,\n \"dcp3d\": true,\n \"film35\": true,\n \"film70\": true,\n \"imax\": true,\n \"imax3d\": true,\n \"atmos2d\": true,\n \"atmos3d\": true,\n \"dolbyVision2d\": true,\n \"dolbyVision3d\": true\n },\n \"workflow\": {\n \"id\": \"507f1f77bcf86cd799439011\",\n \"phase\": \"<string>\",\n \"definition\": {\n \"phases\": {},\n \"requireGraphicsApproval\": true,\n \"requireOfflineApproval\": true\n },\n \"note\": \"<unknown>\"\n },\n \"file\": {\n \"cdslFile\": \"https://example.com/path/to/object\"\n },\n \"cdslFile\": \"https://example.com/path/to/object\"\n },\n \"assetType\": \"<string>\",\n \"assetCategory\": \"<string>\",\n \"auto\": true,\n \"autosubs\": true,\n \"dualLanguages\": true,\n \"aspectRatio\": \"<string>\",\n \"from\": {\n \"_id\": \"507f1f77bcf86cd799439011\",\n \"name\": \"<string>\",\n \"emailNormal\": \"user@example.com\",\n \"groups\": [\n {\n \"_id\": \"507f1f77bcf86cd799439011\",\n \"name\": \"<string>\",\n \"$links\": {\n \"self\": \"//example.com/path/to/object\"\n }\n }\n ]\n },\n \"due\": {\n \"date\": 123,\n \"tz\": \"<string>\"\n },\n \"language\": \"<string>\",\n \"territory\": \"<string>\",\n \"dng\": {\n \"dialogue\": [\n \"<string>\"\n ],\n \"graphics\": [\n \"<string>\"\n ],\n \"narration\": [\n \"<string>\"\n ]\n },\n \"uses\": {\n \"items\": [\n \"<string>\"\n ],\n \"details\": {}\n },\n \"dcp\": {\n \"items\": [\n \"<string>\"\n ],\n \"details\": {}\n },\n \"instructions\": \"<string>\",\n \"status\": \"<string>\",\n \"history\": [\n {\n \"date\": 123,\n \"user\": {\n \"_id\": \"507f1f77bcf86cd799439011\",\n \"emailNormal\": \"user@example.com\",\n \"name\": \"<string>\",\n \"groups\": [\n {\n \"_id\": \"507f1f77bcf86cd799439011\",\n \"name\": \"<string>\"\n }\n ]\n },\n \"status\": \"<string>\",\n \"reason\": \"<string>\"\n }\n ],\n \"recipients\": {},\n \"shippingAddresses\": {},\n \"estimate\": {\n \"base\": {\n \"graphics\": 123,\n \"narration\": 123,\n \"scripts\": 123,\n \"dubbing\": 123,\n \"subtitling\": 123,\n \"hybrid\": 123,\n \"encoding\": 123,\n \"autosubs\": 123,\n \"autogfx\": 123\n },\n \"applied\": {\n \"graphics\": 123,\n \"narration\": 123,\n \"scripts\": 123,\n \"dubbing\": 123,\n \"subtitling\": 123,\n \"hybrid\": 123,\n \"encoding\": 123,\n \"autosubs\": 123,\n \"autogfx\": 123,\n \"files\": 123,\n \"total\": 123\n }\n },\n \"translation\": {\n \"_id\": \"507f1f77bcf86cd799439011\",\n \"language\": \"<string>\",\n \"translator\": {\n \"_id\": \"507f1f77bcf86cd799439011\",\n \"emailNormal\": \"user@example.com\",\n \"name\": \"<string>\",\n \"groups\": [\n {\n \"_id\": \"507f1f77bcf86cd799439011\",\n \"name\": \"<string>\"\n }\n ]\n },\n \"status\": \"<string>\",\n \"lines\": [\n {\n \"number\": 123,\n \"text\": \"<string>\",\n \"auto\": true,\n \"custom\": true,\n \"machine\": true,\n \"startTime\": \"<string>\",\n \"stopTime\": \"<string>\",\n \"alignment\": \"<string>\",\n \"textAlign\": \"<string>\",\n \"split\": \"<unknown>\",\n \"merged\": \"<unknown>\",\n \"range\": [\n 123\n ]\n }\n ],\n \"printLines\": \"<unknown>\",\n \"approval\": true,\n \"$links\": {\n \"self\": \"//example.com/path/to/object\"\n }\n },\n \"graphicsTranslation\": {\n \"_id\": \"507f1f77bcf86cd799439011\",\n \"language\": \"<string>\",\n \"translator\": {\n \"_id\": \"507f1f77bcf86cd799439011\",\n \"emailNormal\": \"user@example.com\",\n \"name\": \"<string>\",\n \"groups\": [\n {\n \"_id\": \"507f1f77bcf86cd799439011\",\n \"name\": \"<string>\"\n }\n ]\n },\n \"status\": \"<string>\",\n \"lines\": [\n {\n \"number\": 123,\n \"text\": \"<string>\",\n \"auto\": true,\n \"custom\": true,\n \"machine\": true,\n \"startTime\": \"<string>\",\n \"stopTime\": \"<string>\",\n \"alignment\": \"<string>\",\n \"textAlign\": \"<string>\",\n \"split\": \"<unknown>\",\n \"merged\": \"<unknown>\",\n \"range\": [\n 123\n ]\n }\n ],\n \"printLines\": \"<unknown>\",\n \"approval\": true,\n \"$links\": {\n \"self\": \"//example.com/path/to/object\"\n }\n },\n \"urls\": {\n \"view\": \"https://example.com/path/to/object\",\n \"manage\": \"https://example.com/path/to/object\",\n \"invite\": \"https://example.com/path/to/object\",\n \"translate\": \"https://example.com/path/to/object\"\n },\n \"tags\": \"<unknown>\",\n \"rejections\": \"<unknown>\",\n \"files\": [\n {\n \"name\": \"<string>\",\n \"files\": \"<unknown>\"\n }\n ],\n \"materials\": [\n {\n \"name\": \"<string>\",\n \"complete\": true,\n \"approved\": true,\n \"files\": [\n {\n \"id\": \"<string>\",\n \"url\": \"https://example.com/path/to/object\",\n \"name\": \"<string>\",\n \"uploadedAt\": 123,\n \"rootId\": \"<string>\",\n \"version\": 123,\n \"isCurrentVersion\": true,\n \"previousVersionId\": \"<unknown>\"\n }\n ],\n \"changeRequests\": [\n {\n \"id\": \"<string>\",\n \"_id\": \"<string>\",\n \"_optimistic\": true,\n \"fileId\": \"<string>\",\n \"body\": \"<string>\",\n \"status\": \"<string>\",\n \"user\": {\n \"_id\": \"507f1f77bcf86cd799439011\",\n \"name\": \"<string>\",\n \"email\": \"user@example.com\"\n },\n \"requestedBy\": {\n \"_id\": \"507f1f77bcf86cd799439011\",\n \"email\": \"user@example.com\"\n },\n \"requestedAt\": 123,\n \"created\": 123,\n \"replies\": [\n {\n \"id\": \"<string>\",\n \"_id\": \"<string>\",\n \"_optimistic\": true,\n \"replyTo\": \"<string>\",\n \"body\": \"<string>\",\n \"user\": {\n \"_id\": \"507f1f77bcf86cd799439011\",\n \"name\": \"<string>\",\n \"email\": \"user@example.com\"\n },\n \"created\": 123,\n \"editedAt\": 123\n }\n ],\n \"editedAt\": 123\n }\n ]\n }\n ],\n \"deliveryDeadline\": {\n \"date\": 123,\n \"tz\": \"<string>\"\n },\n \"reason\": \"<string>\",\n \"autoMode\": true,\n \"created\": 123,\n \"$links\": {\n \"self\": \"//example.com/path/to/object\",\n \"project\": \"//example.com/path/to/object\",\n \"asset\": \"//example.com/path/to/object\",\n \"from\": \"//example.com/path/to/object\",\n \"graphicsTranslation\": \"//example.com/path/to/object\",\n \"translation\": \"//example.com/path/to/object\"\n },\n \"encodes\": \"<unknown>\",\n \"offlines\": \"<unknown>\",\n \"graphicsAutomationJobs\": \"<unknown>\",\n \"$statuses\": [\n \"<string>\"\n ],\n \"audioFile\": \"<unknown>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Basic <encoded-value>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api-staging.pixwel.com/api/workrequests")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/json")
.body("{\n \"_id\": \"507f1f77bcf86cd799439011\",\n \"studio\": \"507f1f77bcf86cd799439011\",\n \"project\": {\n \"_id\": \"507f1f77bcf86cd799439011\",\n \"name\": \"<string>\",\n \"slug\": \"<string>\",\n \"studio\": \"507f1f77bcf86cd799439011\",\n \"logo\": \"507f1f77bcf86cd799439011\",\n \"$links\": {\n \"self\": \"//example.com/path/to/object\"\n }\n },\n \"asset\": {\n \"_id\": \"507f1f77bcf86cd799439011\",\n \"name\": \"<string>\",\n \"slug\": \"<string>\",\n \"type\": \"<string>\",\n \"mediaType\": \"<string>\",\n \"thumbnail\": {\n \"_id\": \"507f1f77bcf86cd799439011\",\n \"verified\": true,\n \"embargo\": {\n \"event\": true\n },\n \"warnings\": \"<unknown>\",\n \"mime\": \"<string>\",\n \"bucket\": \"<string>\",\n \"tags\": \"<unknown>\",\n \"chunkSize\": 123,\n \"length\": 123,\n \"md5\": \"<string>\",\n \"uploadDate\": 123,\n \"$links\": {\n \"self\": \"//example.com/path/to/object\"\n }\n },\n \"transcription\": {\n \"_id\": \"507f1f77bcf86cd799439011\",\n \"graphics\": \"507f1f77bcf86cd799439011\",\n \"dialogue\": \"507f1f77bcf86cd799439011\",\n \"script\": \"507f1f77bcf86cd799439011\"\n },\n \"project\": \"507f1f77bcf86cd799439011\",\n \"studio\": \"507f1f77bcf86cd799439011\",\n \"creative\": true,\n \"aspectRatio\": \"<string>\",\n \"usage\": {\n \"broadcast\": true,\n \"online\": true,\n \"dcp\": true,\n \"dcp3d\": true,\n \"film35\": true,\n \"film70\": true,\n \"imax\": true,\n \"imax3d\": true,\n \"atmos2d\": true,\n \"atmos3d\": true,\n \"dolbyVision2d\": true,\n \"dolbyVision3d\": true\n },\n \"workflow\": {\n \"id\": \"507f1f77bcf86cd799439011\",\n \"phase\": \"<string>\",\n \"definition\": {\n \"phases\": {},\n \"requireGraphicsApproval\": true,\n \"requireOfflineApproval\": true\n },\n \"note\": \"<unknown>\"\n },\n \"file\": {\n \"cdslFile\": \"https://example.com/path/to/object\"\n },\n \"cdslFile\": \"https://example.com/path/to/object\"\n },\n \"assetType\": \"<string>\",\n \"assetCategory\": \"<string>\",\n \"auto\": true,\n \"autosubs\": true,\n \"dualLanguages\": true,\n \"aspectRatio\": \"<string>\",\n \"from\": {\n \"_id\": \"507f1f77bcf86cd799439011\",\n \"name\": \"<string>\",\n \"emailNormal\": \"user@example.com\",\n \"groups\": [\n {\n \"_id\": \"507f1f77bcf86cd799439011\",\n \"name\": \"<string>\",\n \"$links\": {\n \"self\": \"//example.com/path/to/object\"\n }\n }\n ]\n },\n \"due\": {\n \"date\": 123,\n \"tz\": \"<string>\"\n },\n \"language\": \"<string>\",\n \"territory\": \"<string>\",\n \"dng\": {\n \"dialogue\": [\n \"<string>\"\n ],\n \"graphics\": [\n \"<string>\"\n ],\n \"narration\": [\n \"<string>\"\n ]\n },\n \"uses\": {\n \"items\": [\n \"<string>\"\n ],\n \"details\": {}\n },\n \"dcp\": {\n \"items\": [\n \"<string>\"\n ],\n \"details\": {}\n },\n \"instructions\": \"<string>\",\n \"status\": \"<string>\",\n \"history\": [\n {\n \"date\": 123,\n \"user\": {\n \"_id\": \"507f1f77bcf86cd799439011\",\n \"emailNormal\": \"user@example.com\",\n \"name\": \"<string>\",\n \"groups\": [\n {\n \"_id\": \"507f1f77bcf86cd799439011\",\n \"name\": \"<string>\"\n }\n ]\n },\n \"status\": \"<string>\",\n \"reason\": \"<string>\"\n }\n ],\n \"recipients\": {},\n \"shippingAddresses\": {},\n \"estimate\": {\n \"base\": {\n \"graphics\": 123,\n \"narration\": 123,\n \"scripts\": 123,\n \"dubbing\": 123,\n \"subtitling\": 123,\n \"hybrid\": 123,\n \"encoding\": 123,\n \"autosubs\": 123,\n \"autogfx\": 123\n },\n \"applied\": {\n \"graphics\": 123,\n \"narration\": 123,\n \"scripts\": 123,\n \"dubbing\": 123,\n \"subtitling\": 123,\n \"hybrid\": 123,\n \"encoding\": 123,\n \"autosubs\": 123,\n \"autogfx\": 123,\n \"files\": 123,\n \"total\": 123\n }\n },\n \"translation\": {\n \"_id\": \"507f1f77bcf86cd799439011\",\n \"language\": \"<string>\",\n \"translator\": {\n \"_id\": \"507f1f77bcf86cd799439011\",\n \"emailNormal\": \"user@example.com\",\n \"name\": \"<string>\",\n \"groups\": [\n {\n \"_id\": \"507f1f77bcf86cd799439011\",\n \"name\": \"<string>\"\n }\n ]\n },\n \"status\": \"<string>\",\n \"lines\": [\n {\n \"number\": 123,\n \"text\": \"<string>\",\n \"auto\": true,\n \"custom\": true,\n \"machine\": true,\n \"startTime\": \"<string>\",\n \"stopTime\": \"<string>\",\n \"alignment\": \"<string>\",\n \"textAlign\": \"<string>\",\n \"split\": \"<unknown>\",\n \"merged\": \"<unknown>\",\n \"range\": [\n 123\n ]\n }\n ],\n \"printLines\": \"<unknown>\",\n \"approval\": true,\n \"$links\": {\n \"self\": \"//example.com/path/to/object\"\n }\n },\n \"graphicsTranslation\": {\n \"_id\": \"507f1f77bcf86cd799439011\",\n \"language\": \"<string>\",\n \"translator\": {\n \"_id\": \"507f1f77bcf86cd799439011\",\n \"emailNormal\": \"user@example.com\",\n \"name\": \"<string>\",\n \"groups\": [\n {\n \"_id\": \"507f1f77bcf86cd799439011\",\n \"name\": \"<string>\"\n }\n ]\n },\n \"status\": \"<string>\",\n \"lines\": [\n {\n \"number\": 123,\n \"text\": \"<string>\",\n \"auto\": true,\n \"custom\": true,\n \"machine\": true,\n \"startTime\": \"<string>\",\n \"stopTime\": \"<string>\",\n \"alignment\": \"<string>\",\n \"textAlign\": \"<string>\",\n \"split\": \"<unknown>\",\n \"merged\": \"<unknown>\",\n \"range\": [\n 123\n ]\n }\n ],\n \"printLines\": \"<unknown>\",\n \"approval\": true,\n \"$links\": {\n \"self\": \"//example.com/path/to/object\"\n }\n },\n \"urls\": {\n \"view\": \"https://example.com/path/to/object\",\n \"manage\": \"https://example.com/path/to/object\",\n \"invite\": \"https://example.com/path/to/object\",\n \"translate\": \"https://example.com/path/to/object\"\n },\n \"tags\": \"<unknown>\",\n \"rejections\": \"<unknown>\",\n \"files\": [\n {\n \"name\": \"<string>\",\n \"files\": \"<unknown>\"\n }\n ],\n \"materials\": [\n {\n \"name\": \"<string>\",\n \"complete\": true,\n \"approved\": true,\n \"files\": [\n {\n \"id\": \"<string>\",\n \"url\": \"https://example.com/path/to/object\",\n \"name\": \"<string>\",\n \"uploadedAt\": 123,\n \"rootId\": \"<string>\",\n \"version\": 123,\n \"isCurrentVersion\": true,\n \"previousVersionId\": \"<unknown>\"\n }\n ],\n \"changeRequests\": [\n {\n \"id\": \"<string>\",\n \"_id\": \"<string>\",\n \"_optimistic\": true,\n \"fileId\": \"<string>\",\n \"body\": \"<string>\",\n \"status\": \"<string>\",\n \"user\": {\n \"_id\": \"507f1f77bcf86cd799439011\",\n \"name\": \"<string>\",\n \"email\": \"user@example.com\"\n },\n \"requestedBy\": {\n \"_id\": \"507f1f77bcf86cd799439011\",\n \"email\": \"user@example.com\"\n },\n \"requestedAt\": 123,\n \"created\": 123,\n \"replies\": [\n {\n \"id\": \"<string>\",\n \"_id\": \"<string>\",\n \"_optimistic\": true,\n \"replyTo\": \"<string>\",\n \"body\": \"<string>\",\n \"user\": {\n \"_id\": \"507f1f77bcf86cd799439011\",\n \"name\": \"<string>\",\n \"email\": \"user@example.com\"\n },\n \"created\": 123,\n \"editedAt\": 123\n }\n ],\n \"editedAt\": 123\n }\n ]\n }\n ],\n \"deliveryDeadline\": {\n \"date\": 123,\n \"tz\": \"<string>\"\n },\n \"reason\": \"<string>\",\n \"autoMode\": true,\n \"created\": 123,\n \"$links\": {\n \"self\": \"//example.com/path/to/object\",\n \"project\": \"//example.com/path/to/object\",\n \"asset\": \"//example.com/path/to/object\",\n \"from\": \"//example.com/path/to/object\",\n \"graphicsTranslation\": \"//example.com/path/to/object\",\n \"translation\": \"//example.com/path/to/object\"\n },\n \"encodes\": \"<unknown>\",\n \"offlines\": \"<unknown>\",\n \"graphicsAutomationJobs\": \"<unknown>\",\n \"$statuses\": [\n \"<string>\"\n ],\n \"audioFile\": \"<unknown>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-staging.pixwel.com/api/workrequests")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Basic <encoded-value>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"_id\": \"507f1f77bcf86cd799439011\",\n \"studio\": \"507f1f77bcf86cd799439011\",\n \"project\": {\n \"_id\": \"507f1f77bcf86cd799439011\",\n \"name\": \"<string>\",\n \"slug\": \"<string>\",\n \"studio\": \"507f1f77bcf86cd799439011\",\n \"logo\": \"507f1f77bcf86cd799439011\",\n \"$links\": {\n \"self\": \"//example.com/path/to/object\"\n }\n },\n \"asset\": {\n \"_id\": \"507f1f77bcf86cd799439011\",\n \"name\": \"<string>\",\n \"slug\": \"<string>\",\n \"type\": \"<string>\",\n \"mediaType\": \"<string>\",\n \"thumbnail\": {\n \"_id\": \"507f1f77bcf86cd799439011\",\n \"verified\": true,\n \"embargo\": {\n \"event\": true\n },\n \"warnings\": \"<unknown>\",\n \"mime\": \"<string>\",\n \"bucket\": \"<string>\",\n \"tags\": \"<unknown>\",\n \"chunkSize\": 123,\n \"length\": 123,\n \"md5\": \"<string>\",\n \"uploadDate\": 123,\n \"$links\": {\n \"self\": \"//example.com/path/to/object\"\n }\n },\n \"transcription\": {\n \"_id\": \"507f1f77bcf86cd799439011\",\n \"graphics\": \"507f1f77bcf86cd799439011\",\n \"dialogue\": \"507f1f77bcf86cd799439011\",\n \"script\": \"507f1f77bcf86cd799439011\"\n },\n \"project\": \"507f1f77bcf86cd799439011\",\n \"studio\": \"507f1f77bcf86cd799439011\",\n \"creative\": true,\n \"aspectRatio\": \"<string>\",\n \"usage\": {\n \"broadcast\": true,\n \"online\": true,\n \"dcp\": true,\n \"dcp3d\": true,\n \"film35\": true,\n \"film70\": true,\n \"imax\": true,\n \"imax3d\": true,\n \"atmos2d\": true,\n \"atmos3d\": true,\n \"dolbyVision2d\": true,\n \"dolbyVision3d\": true\n },\n \"workflow\": {\n \"id\": \"507f1f77bcf86cd799439011\",\n \"phase\": \"<string>\",\n \"definition\": {\n \"phases\": {},\n \"requireGraphicsApproval\": true,\n \"requireOfflineApproval\": true\n },\n \"note\": \"<unknown>\"\n },\n \"file\": {\n \"cdslFile\": \"https://example.com/path/to/object\"\n },\n \"cdslFile\": \"https://example.com/path/to/object\"\n },\n \"assetType\": \"<string>\",\n \"assetCategory\": \"<string>\",\n \"auto\": true,\n \"autosubs\": true,\n \"dualLanguages\": true,\n \"aspectRatio\": \"<string>\",\n \"from\": {\n \"_id\": \"507f1f77bcf86cd799439011\",\n \"name\": \"<string>\",\n \"emailNormal\": \"user@example.com\",\n \"groups\": [\n {\n \"_id\": \"507f1f77bcf86cd799439011\",\n \"name\": \"<string>\",\n \"$links\": {\n \"self\": \"//example.com/path/to/object\"\n }\n }\n ]\n },\n \"due\": {\n \"date\": 123,\n \"tz\": \"<string>\"\n },\n \"language\": \"<string>\",\n \"territory\": \"<string>\",\n \"dng\": {\n \"dialogue\": [\n \"<string>\"\n ],\n \"graphics\": [\n \"<string>\"\n ],\n \"narration\": [\n \"<string>\"\n ]\n },\n \"uses\": {\n \"items\": [\n \"<string>\"\n ],\n \"details\": {}\n },\n \"dcp\": {\n \"items\": [\n \"<string>\"\n ],\n \"details\": {}\n },\n \"instructions\": \"<string>\",\n \"status\": \"<string>\",\n \"history\": [\n {\n \"date\": 123,\n \"user\": {\n \"_id\": \"507f1f77bcf86cd799439011\",\n \"emailNormal\": \"user@example.com\",\n \"name\": \"<string>\",\n \"groups\": [\n {\n \"_id\": \"507f1f77bcf86cd799439011\",\n \"name\": \"<string>\"\n }\n ]\n },\n \"status\": \"<string>\",\n \"reason\": \"<string>\"\n }\n ],\n \"recipients\": {},\n \"shippingAddresses\": {},\n \"estimate\": {\n \"base\": {\n \"graphics\": 123,\n \"narration\": 123,\n \"scripts\": 123,\n \"dubbing\": 123,\n \"subtitling\": 123,\n \"hybrid\": 123,\n \"encoding\": 123,\n \"autosubs\": 123,\n \"autogfx\": 123\n },\n \"applied\": {\n \"graphics\": 123,\n \"narration\": 123,\n \"scripts\": 123,\n \"dubbing\": 123,\n \"subtitling\": 123,\n \"hybrid\": 123,\n \"encoding\": 123,\n \"autosubs\": 123,\n \"autogfx\": 123,\n \"files\": 123,\n \"total\": 123\n }\n },\n \"translation\": {\n \"_id\": \"507f1f77bcf86cd799439011\",\n \"language\": \"<string>\",\n \"translator\": {\n \"_id\": \"507f1f77bcf86cd799439011\",\n \"emailNormal\": \"user@example.com\",\n \"name\": \"<string>\",\n \"groups\": [\n {\n \"_id\": \"507f1f77bcf86cd799439011\",\n \"name\": \"<string>\"\n }\n ]\n },\n \"status\": \"<string>\",\n \"lines\": [\n {\n \"number\": 123,\n \"text\": \"<string>\",\n \"auto\": true,\n \"custom\": true,\n \"machine\": true,\n \"startTime\": \"<string>\",\n \"stopTime\": \"<string>\",\n \"alignment\": \"<string>\",\n \"textAlign\": \"<string>\",\n \"split\": \"<unknown>\",\n \"merged\": \"<unknown>\",\n \"range\": [\n 123\n ]\n }\n ],\n \"printLines\": \"<unknown>\",\n \"approval\": true,\n \"$links\": {\n \"self\": \"//example.com/path/to/object\"\n }\n },\n \"graphicsTranslation\": {\n \"_id\": \"507f1f77bcf86cd799439011\",\n \"language\": \"<string>\",\n \"translator\": {\n \"_id\": \"507f1f77bcf86cd799439011\",\n \"emailNormal\": \"user@example.com\",\n \"name\": \"<string>\",\n \"groups\": [\n {\n \"_id\": \"507f1f77bcf86cd799439011\",\n \"name\": \"<string>\"\n }\n ]\n },\n \"status\": \"<string>\",\n \"lines\": [\n {\n \"number\": 123,\n \"text\": \"<string>\",\n \"auto\": true,\n \"custom\": true,\n \"machine\": true,\n \"startTime\": \"<string>\",\n \"stopTime\": \"<string>\",\n \"alignment\": \"<string>\",\n \"textAlign\": \"<string>\",\n \"split\": \"<unknown>\",\n \"merged\": \"<unknown>\",\n \"range\": [\n 123\n ]\n }\n ],\n \"printLines\": \"<unknown>\",\n \"approval\": true,\n \"$links\": {\n \"self\": \"//example.com/path/to/object\"\n }\n },\n \"urls\": {\n \"view\": \"https://example.com/path/to/object\",\n \"manage\": \"https://example.com/path/to/object\",\n \"invite\": \"https://example.com/path/to/object\",\n \"translate\": \"https://example.com/path/to/object\"\n },\n \"tags\": \"<unknown>\",\n \"rejections\": \"<unknown>\",\n \"files\": [\n {\n \"name\": \"<string>\",\n \"files\": \"<unknown>\"\n }\n ],\n \"materials\": [\n {\n \"name\": \"<string>\",\n \"complete\": true,\n \"approved\": true,\n \"files\": [\n {\n \"id\": \"<string>\",\n \"url\": \"https://example.com/path/to/object\",\n \"name\": \"<string>\",\n \"uploadedAt\": 123,\n \"rootId\": \"<string>\",\n \"version\": 123,\n \"isCurrentVersion\": true,\n \"previousVersionId\": \"<unknown>\"\n }\n ],\n \"changeRequests\": [\n {\n \"id\": \"<string>\",\n \"_id\": \"<string>\",\n \"_optimistic\": true,\n \"fileId\": \"<string>\",\n \"body\": \"<string>\",\n \"status\": \"<string>\",\n \"user\": {\n \"_id\": \"507f1f77bcf86cd799439011\",\n \"name\": \"<string>\",\n \"email\": \"user@example.com\"\n },\n \"requestedBy\": {\n \"_id\": \"507f1f77bcf86cd799439011\",\n \"email\": \"user@example.com\"\n },\n \"requestedAt\": 123,\n \"created\": 123,\n \"replies\": [\n {\n \"id\": \"<string>\",\n \"_id\": \"<string>\",\n \"_optimistic\": true,\n \"replyTo\": \"<string>\",\n \"body\": \"<string>\",\n \"user\": {\n \"_id\": \"507f1f77bcf86cd799439011\",\n \"name\": \"<string>\",\n \"email\": \"user@example.com\"\n },\n \"created\": 123,\n \"editedAt\": 123\n }\n ],\n \"editedAt\": 123\n }\n ]\n }\n ],\n \"deliveryDeadline\": {\n \"date\": 123,\n \"tz\": \"<string>\"\n },\n \"reason\": \"<string>\",\n \"autoMode\": true,\n \"created\": 123,\n \"$links\": {\n \"self\": \"//example.com/path/to/object\",\n \"project\": \"//example.com/path/to/object\",\n \"asset\": \"//example.com/path/to/object\",\n \"from\": \"//example.com/path/to/object\",\n \"graphicsTranslation\": \"//example.com/path/to/object\",\n \"translation\": \"//example.com/path/to/object\"\n },\n \"encodes\": \"<unknown>\",\n \"offlines\": \"<unknown>\",\n \"graphicsAutomationJobs\": \"<unknown>\",\n \"$statuses\": [\n \"<string>\"\n ],\n \"audioFile\": \"<unknown>\"\n}"
response = http.request(request)
puts response.read_body{
"_id": "507f1f77bcf86cd799439011",
"studio": "507f1f77bcf86cd799439011",
"project": {
"_id": "507f1f77bcf86cd799439011",
"name": "<string>",
"slug": "<string>",
"studio": "507f1f77bcf86cd799439011",
"logo": "507f1f77bcf86cd799439011",
"$links": {
"self": "//example.com/path/to/object"
}
},
"asset": {
"_id": "507f1f77bcf86cd799439011",
"name": "<string>",
"slug": "<string>",
"type": "<string>",
"mediaType": "<string>",
"thumbnail": {
"_id": "507f1f77bcf86cd799439011",
"verified": true,
"embargo": {
"event": true
},
"warnings": "<unknown>",
"mime": "<string>",
"bucket": "<string>",
"tags": "<unknown>",
"chunkSize": 123,
"length": 123,
"md5": "<string>",
"uploadDate": 123,
"$links": {
"self": "//example.com/path/to/object"
}
},
"transcription": {
"_id": "507f1f77bcf86cd799439011",
"graphics": "507f1f77bcf86cd799439011",
"dialogue": "507f1f77bcf86cd799439011",
"script": "507f1f77bcf86cd799439011"
},
"project": "507f1f77bcf86cd799439011",
"studio": "507f1f77bcf86cd799439011",
"creative": true,
"aspectRatio": "<string>",
"usage": {
"broadcast": true,
"online": true,
"dcp": true,
"dcp3d": true,
"film35": true,
"film70": true,
"imax": true,
"imax3d": true,
"atmos2d": true,
"atmos3d": true,
"dolbyVision2d": true,
"dolbyVision3d": true
},
"workflow": {
"id": "507f1f77bcf86cd799439011",
"phase": "<string>",
"definition": {
"phases": {},
"requireGraphicsApproval": true,
"requireOfflineApproval": true
},
"note": "<unknown>"
},
"file": {
"cdslFile": "https://example.com/path/to/object"
},
"cdslFile": "https://example.com/path/to/object"
},
"assetType": "<string>",
"assetCategory": "<string>",
"auto": true,
"autosubs": true,
"dualLanguages": true,
"aspectRatio": "<string>",
"from": {
"_id": "507f1f77bcf86cd799439011",
"name": "<string>",
"emailNormal": "user@example.com",
"groups": [
{
"_id": "507f1f77bcf86cd799439011",
"name": "<string>",
"$links": {
"self": "//example.com/path/to/object"
}
}
]
},
"due": {
"date": 123,
"tz": "<string>"
},
"language": "<string>",
"territory": "<string>",
"dng": {
"dialogue": [
"<string>"
],
"graphics": [
"<string>"
],
"narration": [
"<string>"
]
},
"uses": {
"items": [
"<string>"
],
"details": {}
},
"dcp": {
"items": [
"<string>"
],
"details": {}
},
"instructions": "<string>",
"status": "<string>",
"history": [
{
"date": 123,
"user": {
"_id": "507f1f77bcf86cd799439011",
"emailNormal": "user@example.com",
"name": "<string>",
"groups": [
{
"_id": "507f1f77bcf86cd799439011",
"name": "<string>"
}
]
},
"status": "<string>",
"reason": "<string>"
}
],
"recipients": {},
"shippingAddresses": {},
"estimate": {
"base": {
"graphics": 123,
"narration": 123,
"scripts": 123,
"dubbing": 123,
"subtitling": 123,
"hybrid": 123,
"encoding": 123,
"autosubs": 123,
"autogfx": 123
},
"applied": {
"graphics": 123,
"narration": 123,
"scripts": 123,
"dubbing": 123,
"subtitling": 123,
"hybrid": 123,
"encoding": 123,
"autosubs": 123,
"autogfx": 123,
"files": 123,
"total": 123
}
},
"translation": {
"_id": "507f1f77bcf86cd799439011",
"language": "<string>",
"translator": {
"_id": "507f1f77bcf86cd799439011",
"emailNormal": "user@example.com",
"name": "<string>",
"groups": [
{
"_id": "507f1f77bcf86cd799439011",
"name": "<string>"
}
]
},
"status": "<string>",
"lines": [
{
"number": 123,
"text": "<string>",
"auto": true,
"custom": true,
"machine": true,
"startTime": "<string>",
"stopTime": "<string>",
"alignment": "<string>",
"textAlign": "<string>",
"split": "<unknown>",
"merged": "<unknown>",
"range": [
123
]
}
],
"printLines": "<unknown>",
"approval": true,
"$links": {
"self": "//example.com/path/to/object"
}
},
"graphicsTranslation": {
"_id": "507f1f77bcf86cd799439011",
"language": "<string>",
"translator": {
"_id": "507f1f77bcf86cd799439011",
"emailNormal": "user@example.com",
"name": "<string>",
"groups": [
{
"_id": "507f1f77bcf86cd799439011",
"name": "<string>"
}
]
},
"status": "<string>",
"lines": [
{
"number": 123,
"text": "<string>",
"auto": true,
"custom": true,
"machine": true,
"startTime": "<string>",
"stopTime": "<string>",
"alignment": "<string>",
"textAlign": "<string>",
"split": "<unknown>",
"merged": "<unknown>",
"range": [
123
]
}
],
"printLines": "<unknown>",
"approval": true,
"$links": {
"self": "//example.com/path/to/object"
}
},
"urls": {
"view": "https://example.com/path/to/object",
"manage": "https://example.com/path/to/object",
"invite": "https://example.com/path/to/object",
"translate": "https://example.com/path/to/object"
},
"tags": "<unknown>",
"rejections": "<unknown>",
"files": [
{
"name": "<string>",
"files": "<unknown>"
}
],
"materials": [
{
"name": "<string>",
"complete": true,
"approved": true,
"files": [
{
"id": "<string>",
"url": "https://example.com/path/to/object",
"name": "<string>",
"uploadedAt": 123,
"rootId": "<string>",
"version": 123,
"isCurrentVersion": true,
"previousVersionId": "<unknown>"
}
],
"changeRequests": [
{
"id": "<string>",
"_id": "<string>",
"_optimistic": true,
"fileId": "<string>",
"body": "<string>",
"status": "<string>",
"user": {
"_id": "507f1f77bcf86cd799439011",
"name": "<string>",
"email": "user@example.com"
},
"requestedBy": {
"_id": "507f1f77bcf86cd799439011",
"email": "user@example.com"
},
"requestedAt": 123,
"created": 123,
"replies": [
{
"id": "<string>",
"_id": "<string>",
"_optimistic": true,
"replyTo": "<string>",
"body": "<string>",
"user": {
"_id": "507f1f77bcf86cd799439011",
"name": "<string>",
"email": "user@example.com"
},
"created": 123,
"editedAt": 123
}
],
"editedAt": 123
}
]
}
],
"deliveryDeadline": {
"date": 123,
"tz": "<string>"
},
"reason": "<string>",
"autoMode": true,
"created": 123,
"$links": {
"self": "//example.com/path/to/object",
"project": "//example.com/path/to/object",
"asset": "//example.com/path/to/object",
"from": "//example.com/path/to/object",
"graphicsTranslation": "//example.com/path/to/object",
"translation": "//example.com/path/to/object"
},
"encodes": "<unknown>",
"offlines": "<unknown>",
"graphicsAutomationJobs": "<unknown>",
"$statuses": [
"<string>"
],
"audioFile": "<unknown>"
}Authorizations
Email address and password. A personal access token (pat_…) or session token (token-…) may also be sent in the password field, with any non-empty value as the username — a blank username short-circuits to a 401 before the token is read.
Body
"507f1f77bcf86cd799439011"
"507f1f77bcf86cd799439011"
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Keys are chosen at runtime and are not part of the contract.
Show child attributes
Show child attributes
Keys are chosen at runtime and are not part of the contract.
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Shape not inferred — the sampled response had no entries
Shape not inferred — the sampled response had no entries
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Shape not inferred — the sampled response had no entries
Shape not inferred — the sampled response had no entries
Shape not inferred — the sampled response had no entries
Null in every sampled response — shape not inferred
Response
OK
"507f1f77bcf86cd799439011"
"507f1f77bcf86cd799439011"
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Keys are chosen at runtime and are not part of the contract.
Show child attributes
Show child attributes
Keys are chosen at runtime and are not part of the contract.
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Shape not inferred — the sampled response had no entries
Shape not inferred — the sampled response had no entries
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Shape not inferred — the sampled response had no entries
Shape not inferred — the sampled response had no entries
Shape not inferred — the sampled response had no entries
Null in every sampled response — shape not inferred