Aller au contenu

/api/workspaces/{workspaceId}/import/toggl

POST
/api/workspaces/{workspaceId}/import/toggl
curl --request POST \
--url 'https://example.com/api/workspaces/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/import/toggl?dryRun=true' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "fileName": "example", "encoding": "example", "applyMojibakeFix": true, "timezone": "example", "rows": [ { "email": "example", "client": "example", "project": "example", "task": "example", "description": "example", "billable": true, "startedAtLocal": "example", "stoppedAtLocal": "example", "tags": [ "example" ] } ] }'
workspaceId
required
string format: uuid
dryRun
required
boolean
Media type application/json
object
fileName
string
nullable
encoding
string
nullable
applyMojibakeFix
boolean
timezone
string
nullable
rows
Array<object>
nullable
object
email
string
nullable
client
string
nullable
project
string
nullable
task
string
nullable
description
string
nullable
billable
boolean
startedAtLocal
string
nullable
stoppedAtLocal
string
nullable
tags
Array<string>
nullable
Example generated
{
"fileName": "example",
"encoding": "example",
"applyMojibakeFix": true,
"timezone": "example",
"rows": [
{
"email": "example",
"client": "example",
"project": "example",
"task": "example",
"description": "example",
"billable": true,
"startedAtLocal": "example",
"stoppedAtLocal": "example",
"tags": [
"example"
]
}
]
}

OK