staqlydocs
REST APIAPI referenceMedia

Save an editable project of the media editor

Save an editable project of the media editor (media:write)

Every request sends Authorization: Bearer ...: the access token in local mode, an API key stk_... in cloud mode. Use Send to try it against your cloud instance with your API key.

POST
/v1/media-projects

The file is the editor's .gpex project (layers, text, masks). Projects count toward the workspace's storage.

Authorization

headerAuthorizationBearer <token>

API key (stk_...), or in the Community Edition the access token (stk_local_...)

Request Body

multipart/form-data
  1. body

Send the fields before the file

name?string
Lengthlength <= 200
source_ids?string

Comma-separated media ids

output_id?string
file*file

The .gpex project file

Formatbinary

Response Body

The project

application/json
  1. response

An editable picture of the media editor (its .gpex project file is at /v1/media-projects/{id}/file)

id*string
name*string
source_ids*array<string>

The library files it was made from

output_id*string

The file it last saved; empty until saved

size_bytes*integer
created_at*string
Formatdate-time
updated_at*string
Formatdate-time
curl -X POST 'https://staqly.example.com/v1/media-projects' \  -F 'file=string'
{  "id": "string",  "name": "string",  "source_ids": [    "string"  ],  "output_id": "string",  "size_bytes": 0,  "created_at": "2019-08-24T14:15:22Z",  "updated_at": "2019-08-24T14:15:22Z"}