EaserixDocs
DevelopersAPI referenceCronCrunchMonitoring

Log a suggested span

Turns one continuous run of the same app into a time entry on a project the caller can read. The spans must belong to the caller, must not already be logged, and must not contain a hole longer than 2 minutes. The entry is never billable; the caller can mark it billable afterwards. The spans are then linked to the entry so they leave the suggestion timeline. 409 when the spans were already logged, or the time falls in a submitted or approved week.

View as Markdown
POST
/v1/activity/suggestions
AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/activity/suggestions" \  -H "Content-Type: application/json" \  -d '{    "eventIds": [      "string"    ],    "projectId": "string"  }'
{  "entry": {    "id": "string",    "projectId": "string",    "projectName": "string",    "projectColor": "string",    "clientName": "string",    "taskId": "string",    "taskName": "string",    "description": "string",    "startedAt": "2019-08-24T14:15:22Z",    "endedAt": "2019-08-24T14:15:22Z",    "updatedAt": "2019-08-24T14:15:22Z",    "durationSeconds": 0,    "isRunning": true,    "isBillable": true,    "billingStatus": "unbilled",    "source": "timer",    "tags": [      {        "id": "string",        "name": "string",        "color": "string",        "created": "2019-08-24T14:15:22Z"      }    ]  }}