Migrating members
Migrate an account
Migrate membership from V1 API using old EGYM user id (if already migrated then just returns membership).
post/api/v2/migrate
Request
- Base URLhttps://mms.api.ed.ts.egym.coffee
- AuthAPI key in header x-api-key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
legacyUserIdinteger required
Response
Ok
Example response
{
"firstName": "John",
"lastName": "Wick",
"contact": {
"country": "DE"
},
"membership": {
"corporateFitness": {
"startTimestamp": "2021-03-08T18:26:47Z",
"endTimestamp": "2021-03-08T18:26:47Z"
}
}
}Changes
No recorded changes to this operation across all 3 revisions of this API.