Nest Changelog

1.26.8 PRE

5/11/2023

1.26.9

5/16/2023

PUT /users/{userId}/collections/{collectionGuid}

User joins a collection

Guard: admin, customerService, family

PUT /users/{userId}/collections/{collectionGuid}

Join a collection

Guard: customerService, family

4 added endpoints
Added endpoints

GET /instructors/users/{userId}

Get a specific instructor by user account ID

Guard: producer

Response Body
{
  data: {
    bio?: string,
    createdBy?: {
      id?: number,
    },
    dateCreated?: number,
    dateUpdated?: number,
    flags?: List<'connect' | 'reflect' | 'fitnation' | 'celebrity'>,
    id?: number,
    images?: {
      default?: string,
      hd?: string,
      portrait?: string,
      sd?: string,
      square?: string,
    },
    name?: string,
    status?: 'active' | 'inactive',
    studio?: {
      id?: number,
    },
    updatedBy?: {
      id?: number,
    },
    user?: {
      id?: number,
    },
  },
}

GET /redemption-codes/campaigns

Get a list of campaign codes (called promotions on ui)

Guard: admin

Response Body
{
  data: List<{
    code?: string,
  }>,
}

GET /users/{userId}/collections

List collections for this user. Default active.

Guard: customerService, family

Response Body
{
  data: List<{
    collection?: {
      guid?: string,
    },
    dateJoined?: number,
    guid?: string,
    status?: 'active' | 'completed' | 'abandoned' | 'cancelled',
    workouts?: List<{
      contentGuid?: string,
      date?: number,
      workoutGuid?: string,
    }>,
  }>,
}

GET /users/{userId}/collections/{collectionGuid}/workouts

Get info about workouts completed for this collection

Guard: admin, family

Response Body
{
  data: List<{
    contentGuid?: string,
    date?: number,
    workoutGuid?: string,
  }>,
}
2 deleted endpoints

GET /users/{userId}/collections/{collectionGuid}/progress

Get users progress on this collection

Guard: admin, family

Response Body
{
  data: List<{
    contentGuid?: string,
    workoutGuid?: string,
  }>,
}

GET /instructors/findByUserId/{userId}

Get a specific instructor

Guard: producer

Response Body
{
  data: {
    bio?: string,
    createdBy?: {
      id?: number,
    },
    dateCreated?: number,
    dateUpdated?: number,
    flags?: List<'connect' | 'reflect' | 'fitnation' | 'celebrity'>,
    id?: number,
    images?: {
      default?: string,
      hd?: string,
      portrait?: string,
      sd?: string,
      square?: string,
    },
    name?: string,
    status?: 'active' | 'inactive',
    studio?: {
      id?: number,
    },
    updatedBy?: {
      id?: number,
    },
    user?: {
      id?: number,
    },
  },
}
Deleted endpoints
WORK IN PROGRESS