Proposals
Get a proposal
One proposal: why the program would change, what would change, and its state.
GET
/
v1
/
proposals
/
{proposal_id}
Get a proposal
curl --request GET \
--url https://api.technicallyfit.com/v1/proposals/{proposal_id} \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.technicallyfit.com/v1/proposals/{proposal_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.technicallyfit.com/v1/proposals/{proposal_id}"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"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>"
]
}{
"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>"
}
}Response
⌘I
Get a proposal
curl --request GET \
--url https://api.technicallyfit.com/v1/proposals/{proposal_id} \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.technicallyfit.com/v1/proposals/{proposal_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.technicallyfit.com/v1/proposals/{proposal_id}"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"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>"
]
}{
"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>"
}
}