Events
Send events for one teammate
POST
/
v1
/
teammates
/
{external_id}
/
events
Send events for one teammate
curl --request POST \
--url https://api.technicallyfit.com/v1/teammates/{external_id}/events \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"events": [
{
"data": {},
"at": "2023-11-07T05:31:56Z",
"idempotency_key": "<string>"
}
]
}
'const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({events: [{data: {}, at: '2023-11-07T05:31:56Z', idempotency_key: '<string>'}]})
};
fetch('https://api.technicallyfit.com/v1/teammates/{external_id}/events', 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}/events"
payload = { "events": [
{
"data": {},
"at": "2023-11-07T05:31:56Z",
"idempotency_key": "<string>"
}
] }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"results": [
{
"event_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"index": 123,
"status": "accepted",
"type": "<string>",
"observation": {
"kind": "work_done",
"status": "not_interpreted"
},
"reason": {
"code": "invalid_event",
"field": "<string>",
"message": "<string>"
}
}
],
"summary": {
"accepted": 123,
"duplicate": 123,
"rejected": 123
}
}{
"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
Body
application/json
⌘I
Send events for one teammate
curl --request POST \
--url https://api.technicallyfit.com/v1/teammates/{external_id}/events \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"events": [
{
"data": {},
"at": "2023-11-07T05:31:56Z",
"idempotency_key": "<string>"
}
]
}
'const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({events: [{data: {}, at: '2023-11-07T05:31:56Z', idempotency_key: '<string>'}]})
};
fetch('https://api.technicallyfit.com/v1/teammates/{external_id}/events', 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}/events"
payload = { "events": [
{
"data": {},
"at": "2023-11-07T05:31:56Z",
"idempotency_key": "<string>"
}
] }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"results": [
{
"event_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"index": 123,
"status": "accepted",
"type": "<string>",
"observation": {
"kind": "work_done",
"status": "not_interpreted"
},
"reason": {
"code": "invalid_event",
"field": "<string>",
"message": "<string>"
}
}
],
"summary": {
"accepted": 123,
"duplicate": 123,
"rejected": 123
}
}{
"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>"
}
}