Skip to content

Upload a project archive as a new project or a new revision of an existing project

Request

Security
ApiKeyAuth
Query
projectstringrequired

project name

revisionstringrequired

revision

schedule_fromstring

start scheduling of new workflows from the given time instead of current time

clear_scheduleArray of strings

clear_schedule

clear_schedule_allboolean

clear_schedule_all

Default:false
skip_scheduleboolean

skip schedules to current time for workflows whose schedule definition changed. Ignored when clear_schedule or clear_schedule_all is specified.

Default:true
Headers
Content-Lengthinteger, (int64)
Bodyapplication/gziprequired

project archive data

string, (binary)
curl -i -X PUT \
  'https://api-workflow.treasuredata.com/api/projects?project=string&revision=string&schedule_from=string&clear_schedule=string&clear_schedule_all=false&skip_schedule=true' \
  -H 'Authorization: TD1 <YOUR_TOKEN_HERE>' \
  -H 'Content-Length: 0' \
  -H 'Content-Type: application/gzip' \
  -d string

Responses

default response

Bodyapplication/json
archiveMd5string, (byte)

MD5 of archive

Example:"ZGRJdysyQ3VjZXI2UUN1c1ZhRXdDUT09"
archiveTypestringrequired

archive type

Example:"s3"
createdAtstring, (date-time)required

created time

Example:"2023-08-18T06:52:33Z"
deletedAtstring, (date-time)

deleted time

Example:"2023-08-18T06:52:33Z"
idstringrequired

project ID

Example:"123456"
metadataArray of objects(RestProjectMetadata)

project metadata

namestringrequired

project name

Example:"project-a"
revisionstringrequired

revision

Example:"rev-20230101-1"
updatedAtstring, (date-time)required

updated time

Example:"2023-08-18T06:52:33Z"
Response
{ "archiveMd5": "ZGRJdysyQ3VjZXI2UUN1c1ZhRXdDUT09", "archiveType": "s3", "createdAt": "2023-08-18T06:52:33Z", "deletedAt": "2023-08-18T06:52:33Z", "id": "123456", "metadata": [ {} ], "name": "project-a", "revision": "rev-20230101-1", "updatedAt": "2023-08-18T06:52:33Z" }