Proposals
List a teammate's proposals
Engine changes waiting for, or decided by, the teammate’s coach, newest first. A change for a teammate with no coach applies at once and is not listed here.
GET
/
v1
/
teammates
/
{external_id}
/
proposals
List a teammate's proposals
curl --request GET \
--url https://api.technicallyfit.com/v1/teammates/{external_id}/proposals \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.technicallyfit.com/v1/teammates/{external_id}/proposals', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.technicallyfit.com/v1/teammates/{external_id}/proposals"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"base_revision": 123,
"cause": {
"event_ids": [
"<string>"
],
"kind": "created",
"summary": "<string>"
},
"created_at": "<string>",
"decided_at": "<string>",
"decided_by": "<string>",
"decline_reason": "<string>",
"diff": {
"changes": [
{
"after": {
"id": "<string>",
"name": "<string>"
},
"before": {
"id": "<string>",
"name": "<string>"
},
"day_index": 123,
"pattern": "<string>",
"session_id": "<string>",
"week_number": 123
}
],
"from_day": 123,
"from_week": 123,
"sessions_added": 123,
"sessions_removed": 123,
"summary": "<string>",
"weeks_changed": [
123
]
},
"engine_version": "<string>",
"id": "<string>",
"program_id": "<string>",
"status": "pending",
"teammate": "<string>",
"warnings": [
"<string>"
]
}
],
"next_cursor": "<string>"
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"request_id": "<string>"
}
}Path Parameters
Query Parameters
⌘I
List a teammate's proposals
curl --request GET \
--url https://api.technicallyfit.com/v1/teammates/{external_id}/proposals \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.technicallyfit.com/v1/teammates/{external_id}/proposals', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.technicallyfit.com/v1/teammates/{external_id}/proposals"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"base_revision": 123,
"cause": {
"event_ids": [
"<string>"
],
"kind": "created",
"summary": "<string>"
},
"created_at": "<string>",
"decided_at": "<string>",
"decided_by": "<string>",
"decline_reason": "<string>",
"diff": {
"changes": [
{
"after": {
"id": "<string>",
"name": "<string>"
},
"before": {
"id": "<string>",
"name": "<string>"
},
"day_index": 123,
"pattern": "<string>",
"session_id": "<string>",
"week_number": 123
}
],
"from_day": 123,
"from_week": 123,
"sessions_added": 123,
"sessions_removed": 123,
"summary": "<string>",
"weeks_changed": [
123
]
},
"engine_version": "<string>",
"id": "<string>",
"program_id": "<string>",
"status": "pending",
"teammate": "<string>",
"warnings": [
"<string>"
]
}
],
"next_cursor": "<string>"
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"request_id": "<string>"
}
}