Project
Project (Tolstoy) operations
Create
POST
https://api.gotolstoy.com/projects/
This endpoint allows you to create new Tolstoy
Path Parameters
Name | Type | Description |
---|---|---|
project | object | Project details - { "project": { "name": "my new project" } } |
Headers
Name | Type | Description |
---|---|---|
Authorization | string | Authorization token - Bearer Token |
Create Step
POST
https://api.gotolstoy.com/projects/steps
This endpoint allows you to create new Tolstoy's part
Path Parameters
Name | Type | Description |
---|---|---|
step | object | Part details - { "step": { "projectId": "f4828e6b-849f-4794-b3ec-c365f331506a", "description": "description", "answers": [{ "next": "rqAvg", "text": "hey how are you?" }, { "next": "rqAvg", "text": "what is your age?" }], "videoId": "e899d07e-da6d-41f1-ba2f-e546e97c3a7e", "overlayText": "This is the overlay text" } } |
Headers
Name | Type | Description |
---|---|---|
Authorization | string | Authorization token - Bearer Token |
Get Project
GET
https://api.gotolstoy.com/projects/:id
Path Parameters
Name | Type | Description |
---|---|---|
Id | string | Project id |
Headers
Name | Type | Description |
---|---|---|
Authorization | string | Authorization token - Bearer Token |
Delete Project
DELETE
https://api.gotolstoy.com/projects/
Headers
Name | Type | Description |
---|---|---|
Authorization | string | Authorization Token - Bearer Token |
Request Body
Name | Type | Description |
---|---|---|
projectId | string | The project to be deleted |
List Projects
GET
https://api.gotolstoy.com/projects/
Headers
Name | Type | Description |
---|---|---|
Authorization | string | Authorization Token - Bearer Token |
Update Project
PUT
https://api.gotolstoy.com/projects/{id}
Path Parameters
Name | Type | Description |
---|---|---|
Authorization | string | Authorization Token - Bearer Token |
Request Body
Name | Type | Description |
---|---|---|
name | string | |
emailNotifications | array | |
stepsOrder | array |
Update Step
PUT
https://api.gotolstoy.com/projects/steps/{id}
Headers
Name | Type | Description |
---|---|---|
Authorization | string | Authorization Token - Bearer Token |
Request Body
Name | Type | Description |
---|---|---|
description | string | |
answers | array | |
videoId | string | |
overlayText | string | |
answerTime | number |
Delete Step
DELETE
https://api.gotolstoy.com/projects/steps
Headers
Name | Type | Description |
---|---|---|
Authorization | string | Authorization Token - Bearer Token |
Request Body
Name | Type | Description |
---|---|---|
stepId | string | The step to be deleted |
Last updated