Qualified API Documentation

The API is currently in beta and as such is subject to change. If you have a request for a specific integration endpoint not documented here, please reach out to at [email protected], or via our help feature within the app.

Base Path

All endpoints have a base path of https://www.qualified.io/api.

Authorization

Authorization is done by passing in an API key to the authorization header. If your account is on a plan that allows API access then you will be able to find your key by going to Team Settings > Integrations within the Qualified app.

Note: The examples below may use a longer token string than the key you will find within your team account settings.

Note: Make sure to keep your API key safe. Do not expose it through client-side applications.

Parameters

There are a few special conventions used within our API in regards to our parameters:

Casing

Both camel and underscore casing is supported when sending data to the sever. The examples given will use underscore casing for consistency.

Includes

There is a special parameter called "includes", available on most model requests. This parameter will fetch additional relations related to each model and include them within the model's JSON response.




Assessment Challenge Items

Create

This endpoint will pass a challenge id to a assessment and return a AssessmentChallengeItem record. If the challenge already exists for the assessment, a 409 will be returned. If a global challenge is passed, a copy of it will be created for the given team and that copy will be used instead.

Endpoint

POST /v1/assessments/:assessment_id/challenge_items/

Parameters

Name Description
assessment_id required base16 ObjectId
data.challenge_id required base16 ObjectId

Request

Route

POST /v1/assessments/5a02125735fd2f3b4cd14e7b/challenge_items/

Headers

Content-Type: application/json
Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVhMDIxMjU3MzVmZDJmM2I0Y2QxNGU3YyIsImlkIjoiNWEwMjEyNTczNWZkMmYzYjRjZDE0ZTdkIiwic2VjcmV0IjoiQVRVYlBBPT0ifQ.2OqXBC5nIvy2zw37sr6htrCIIBJ0cJXJQdqH3tq2c2I

Body

{
  "data" : {
    "challenge_id" : "5a02125735fd2f3b4cd14e7f"
  }
}

Response

Simulated Response

Status

200

Headers

Content-Type: application/json; charset=utf-8

Body

{
  "id" : "5a02125835fd2f3b4cd14e85",
  "type" : "AssessmentChallengeItem",
  "data" : {
    "id" : "5a02125835fd2f3b4cd14e85",
    "challengeId" : "5a02125735fd2f3b4cd14e7f",
    "required" : 0,
    "position" : 1,
    "disabledLanguages" : []
  },
  "meta" : {
    "timestamp" : "2017-11-07T12:06:48.087-08:00",
    "includes" : []
  }
}

Update

This endpoint allows you to edit the required number of test cases that a user must pass, as well as modify the position. When changing the position, all other items in the list will be adjusted to account for the item's new position.

Endpoint

PUT /v1/assessments/:assessment_id/challenge_items/:id

Parameters

Name Description
assessment_id required base16 ObjectId
id required base16 ObjectId
data.required Number of test cases that are required
data.position Position of the item in the list.

Request

Route

PUT /v1/assessments/5a02125835fd2f3b4cd14e8b/challenge_items/5a02125835fd2f3b4cd14e92

Headers

Content-Type: application/json
Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVhMDIxMjU4MzVmZDJmM2I0Y2QxNGU4YyIsImlkIjoiNWEwMjEyNTgzNWZkMmYzYjRjZDE0ZThkIiwic2VjcmV0Ijoic3ozdUFRPT0ifQ.XEgpTvqwhm2PY6UK4yFCP86O62tbYmGl7jHL0mmN_V8

Body

{
  "data" : {
    "required" : 2,
    "position" : 2
  }
}

Response

Simulated Response

Status

200

Headers

Content-Type: application/json; charset=utf-8

Body

{
  "id" : "5a02125835fd2f3b4cd14e92",
  "type" : "AssessmentChallengeItem",
  "data" : {
    "id" : "5a02125835fd2f3b4cd14e92",
    "challengeId" : "5a02125835fd2f3b4cd14e8f",
    "required" : 2,
    "position" : 2,
    "disabledLanguages" : []
  },
  "meta" : {
    "timestamp" : "2017-11-07T12:06:48.229-08:00",
    "includes" : []
  }
}

Delete

Endpoint

DELETE /v1/assessments/:assessment_id/challenge_items/:id

Parameters

Name Description
assessment_id required base16 ObjectId
id required base16 ObjectId
data.required Number of test cases that are required by candidates to pass
data.position Position of the item in the list.

Request

Route

DELETE /v1/assessments/5a02125835fd2f3b4cd14e9c/challenge_items/5a02125835fd2f3b4cd14ea3

Headers

Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVhMDIxMjU4MzVmZDJmM2I0Y2QxNGU5ZCIsImlkIjoiNWEwMjEyNTgzNWZkMmYzYjRjZDE0ZTllIiwic2VjcmV0IjoiR2M5NnBBPT0ifQ.ja5z-yeIkchrzf69RHUQ6tFVgAnBih2WJhfZohcGblY
Content-Type: application/x-www-form-urlencoded

Response

Simulated Response

Status

204

Headers

Assessment Invitations

List

Returns all invitations accessible to the current logged in user

Endpoint

GET /v1/assessment_invitations

Request

Route

GET /v1/assessment_invitations

Headers

Content-Type: application/json
Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVhMDIxMjU4MzVmZDJmM2I0Y2QxNGVhOSIsImlkIjoiNWEwMjEyNTgzNWZkMmYzYjRjZDE0ZWFhIiwic2VjcmV0IjoiTENDYklBPT0ifQ.SGI1LMbsDN0PE8ntBUjx_CRl5YGwl5IDqSPC3ymXt8I

Query Parameters

{}=

Response

Simulated Response

Status

200

Headers

Content-Type: application/json; charset=utf-8

Body

{
  "type" : "AssessmentInvitation",
  "data" : [
    {
      "id" : "5a02125835fd2f3b4cd14ebe",
      "state" : "active",
      "teamCandidateId" : "5a02125835fd2f3b4cd14ec6",
      "assessmentId" : "5a02125835fd2f3b4cd14ebf",
      "assessmentResultId" : "5a02125835fd2f3b4cd14eca",
      "teamId" : "5a02125835fd2f3b4cd14ea4",
      "teamMemberId" : "5a02125835fd2f3b4cd14ec8",
      "assessmentTitle" : "Junior Mobile Engineer #4",
      "sendAttempts" : 0,
      "openCount" : null,
      "lastSent" : null,
      "testTeamMember" : false,
      "inviterRole" : "owner"
    },
    {
      "id" : "5a02125835fd2f3b4cd14ece",
      "state" : "active",
      "teamCandidateId" : "5a02125835fd2f3b4cd14ed6",
      "assessmentId" : "5a02125835fd2f3b4cd14ecf",
      "assessmentResultId" : "5a02125835fd2f3b4cd14eda",
      "teamId" : "5a02125835fd2f3b4cd14ea4",
      "teamMemberId" : "5a02125835fd2f3b4cd14ed8",
      "assessmentTitle" : "Senior Node Developer #5",
      "sendAttempts" : 0,
      "openCount" : null,
      "lastSent" : null,
      "testTeamMember" : false,
      "inviterRole" : "owner"
    },
    {
      "id" : "5a02125835fd2f3b4cd14ede",
      "state" : "active",
      "teamCandidateId" : "5a02125835fd2f3b4cd14ee6",
      "assessmentId" : "5a02125835fd2f3b4cd14edf",
      "assessmentResultId" : "5a02125835fd2f3b4cd14eea",
      "teamId" : "5a02125835fd2f3b4cd14ea4",
      "teamMemberId" : "5a02125835fd2f3b4cd14ee8",
      "assessmentTitle" : "Senior Full-Stack Developer #6",
      "sendAttempts" : 0,
      "openCount" : null,
      "lastSent" : null,
      "testTeamMember" : false,
      "inviterRole" : "owner"
    }
  ],
  "meta" : {
    "timestamp" : "2017-11-07T12:06:49.046-08:00",
    "includes" : []
  }
}

Invite Candidates

The way to create a candidate within the system is to invite them to an assessment. NOTE: This API is in flux and may change its signature.

Endpoint

POST /v1/assessment_invitations/invite_candidates

Parameters

Name Description
candidates required Array
assessment_id required base16 ObjectId

Request

Route

POST /v1/assessment_invitations/invite_candidates

Headers

Content-Type: application/json
Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVhMDIxMjU5MzVmZDJmM2I0Y2QxNGVmMyIsImlkIjoiNWEwMjEyNTkzNWZkMmYzYjRjZDE0ZWY0Iiwic2VjcmV0IjoiZmNQSTN3PT0ifQ.ufAKje-J7ruAdR_r7HZ-MNgapiEDpyWuJyP9aEKIP7Y

Body

{
  "data" : {
    "candidates" : [
      "[email protected]"
    ],
    "assessment_id" : "5a02125935fd2f3b4cd14ef6"
  }
}

Response

Simulated Response

Status

200

Headers

Content-Type: application/json; charset=utf-8

Body

{
  "type" : "AssessmentInvitation",
  "data" : [
    {
      "id" : "5a02125935fd2f3b4cd14efa",
      "state" : "active",
      "teamCandidateId" : "5a02125935fd2f3b4cd14ef9",
      "assessmentId" : "5a02125935fd2f3b4cd14ef6",
      "assessmentResultId" : null,
      "teamId" : "5a02125935fd2f3b4cd14eee",
      "teamMemberId" : "5a02125935fd2f3b4cd14ef4",
      "assessmentTitle" : "Junior DevOps Engineer #7",
      "sendAttempts" : 0,
      "openCount" : null,
      "lastSent" : null,
      "testTeamMember" : false,
      "inviterRole" : "owner"
    }
  ],
  "meta" : {
    "timestamp" : "2017-11-07T12:06:49.168-08:00",
    "includes" : []
  }
}

Invite Team Members

Allows you to invite a team member to a specific assessment. They will receive an email. NOTE: This API is in flux and may change its signature.

Endpoint

POST /v1/assessment_invitations/invite_team_members

Parameters

Name Description
team_members required Array
assessment_id required base16 ObjectId

Request

Route

POST /v1/assessment_invitations/invite_team_members

Headers

Content-Type: application/json
Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVhMDIxMjU5MzVmZDJmM2I0Y2QxNGYxMCIsImlkIjoiNWEwMjEyNTkzNWZkMmYzYjRjZDE0ZjExIiwic2VjcmV0IjoiL1BuR1BBPT0ifQ.FIgiw2CRLP4f8p6oMJhbbwyBOnmaAnw6ZCxGF5vN1fs

Body

{
  "data" : {
    "team_members" : [
      {
        "email" : "[email protected]"
      }
    ],
    "assessment_id" : "5a02125935fd2f3b4cd14f13"
  }
}

Response

Simulated Response

Status

200

Headers

Content-Type: application/json; charset=utf-8

Body

{
  "type" : "AssessmentInvitation",
  "data" : [
    {
      "id" : "5a02125935fd2f3b4cd14f19",
      "state" : "active",
      "teamCandidateId" : "5a02125935fd2f3b4cd14f18",
      "assessmentId" : "5a02125935fd2f3b4cd14f13",
      "assessmentResultId" : null,
      "teamId" : "5a02125935fd2f3b4cd14f0b",
      "teamMemberId" : "5a02125935fd2f3b4cd14f11",
      "assessmentTitle" : "Mid-Level Mobile Engineer #9",
      "sendAttempts" : 0,
      "openCount" : null,
      "lastSent" : null,
      "testTeamMember" : true,
      "inviterRole" : "owner"
    }
  ],
  "meta" : {
    "timestamp" : "2017-11-07T12:06:49.461-08:00",
    "includes" : []
  }
}

AssessmentResultReview

List

Endpoint

GET /v1/assessment_result_reviews

Parameters

Name Description
includes Valid values are:

Request

Route

GET /v1/assessment_result_reviews

Headers

Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVhMDIxMjVhMzVmZDJmM2I0Y2QxNGY3ZCIsImlkIjoiNWEwMjEyNWEzNWZkMmYzYjRjZDE0ZjdlIiwic2VjcmV0IjoiekU4d3dBPT0ifQ.QAkCygDP0lqQuX3qgQiGK0XuIrO1lSGx9wLv3eEP7vE

Response

Simulated Response

Status

200

Headers

Content-Type: application/json; charset=utf-8

Body

{
  "type" : "AssessmentResultReview",
  "data" : [
    {
      "id" : "5a02125a35fd2f3b4cd14f79",
      "reviewedById" : "5a02125a35fd2f3b4cd14f7b",
      "reviewedByStaff" : null,
      "assessmentId" : "5a02125a35fd2f3b4cd14f69",
      "assessmentResultId" : "5a02125a35fd2f3b4cd14f71",
      "teamCandidateId" : "5a02125a35fd2f3b4cd14f74",
      "candidateId" : "5a02125a35fd2f3b4cd14f73",
      "rating" : 5,
      "feedback" : "great!",
      "state" : "started"
    }
  ],
  "currentPage" : 1,
  "totalPages" : 1,
  "totalCount" : 1,
  "meta" : {
    "timestamp" : "2017-11-07T12:06:50.306-08:00",
    "includes" : []
  }
}

Get

Endpoint

GET /v1/assessment_result_reviews/:id

Request

Route

GET /v1/assessment_result_reviews/5a02125a35fd2f3b4cd14f98

Headers

Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVhMDIxMjVhMzVmZDJmM2I0Y2QxNGY5NSIsImlkIjoiNWEwMjEyNWEzNWZkMmYzYjRjZDE0Zjk2Iiwic2VjcmV0IjoiZ1pzODdBPT0ifQ.ybxaQhmMP1QLSjM5izLmgNh5-r2eAWVnN8eQXESHDHs

Response

Simulated Response

Status

200

Headers

Content-Type: application/json; charset=utf-8

Body

{
  "id" : "5a02125a35fd2f3b4cd14f98",
  "type" : "AssessmentResultReview",
  "data" : {
    "id" : "5a02125a35fd2f3b4cd14f98",
    "reviewedById" : "5a02125a35fd2f3b4cd14f9a",
    "reviewedByStaff" : null,
    "assessmentId" : "5a02125a35fd2f3b4cd14f85",
    "assessmentResultId" : "5a02125a35fd2f3b4cd14f8d",
    "teamCandidateId" : "5a02125a35fd2f3b4cd14f90",
    "candidateId" : "5a02125a35fd2f3b4cd14f8f",
    "rating" : 5,
    "feedback" : "great!",
    "state" : "started"
  },
  "meta" : {
    "enums" : {
      "state" : [
        {
          "value" : "invited",
          "text" : "Invited"
        },
        {
          "value" : "started",
          "text" : "Started"
        },
        {
          "value" : "submitted",
          "text" : "Submitted"
        }
      ]
    },
    "timestamp" : "2017-11-07T12:06:50.533-08:00",
    "includes" : []
  }
}

Create

Endpoint

POST /v1/assessment_result_reviews

Parameters

Name Description
data.assessment_result_id required data.assessment result
data.reviewed_by_id the id of the user who will be doing the assessing. Only need to set if you are inviting someone else
data.rating 1 - 5, for a 3 point system use 1,3 and 5 as your values
data.feedback data.feedback

Request

Route

POST /v1/assessment_result_reviews

Headers

Content-Type: application/json
Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVhMDIxMjVhMzVmZDJmM2I0Y2QxNGZiMSIsImlkIjoiNWEwMjEyNWEzNWZkMmYzYjRjZDE0ZmIyIiwic2VjcmV0IjoiV3h3TktnPT0ifQ.JJbGpH1OjRHyHyEKHPOhEdmJtVEfby7rvzQKd22bwvs

Body

{
  "data" : {
    "feedback" : "super duper",
    "assessment_result_id" : "5a02125a35fd2f3b4cd14fa9"
  }
}

Response

Simulated Response

Status

200

Headers

Content-Type: application/json; charset=utf-8

Body

{
  "id" : "5a02125a35fd2f3b4cd14fb4",
  "type" : "AssessmentResultReview",
  "data" : {
    "id" : "5a02125a35fd2f3b4cd14fb4",
    "reviewedById" : "5a02125a35fd2f3b4cd14fb2",
    "reviewedByStaff" : false,
    "assessmentId" : "5a02125a35fd2f3b4cd14fa1",
    "assessmentResultId" : "5a02125a35fd2f3b4cd14fa9",
    "teamCandidateId" : "5a02125a35fd2f3b4cd14fac",
    "candidateId" : "5a02125a35fd2f3b4cd14fab",
    "rating" : null,
    "feedback" : "super duper",
    "state" : "started"
  },
  "meta" : {
    "enums" : {
      "state" : [
        {
          "value" : "invited",
          "text" : "Invited"
        },
        {
          "value" : "started",
          "text" : "Started"
        },
        {
          "value" : "submitted",
          "text" : "Submitted"
        }
      ]
    },
    "timestamp" : "2017-11-07T12:06:50.716-08:00",
    "includes" : []
  }
}

Update

Endpoint

PUT /v1/assessment_result_reviews/:id

Parameters

Name Description
data.foo required data.foo

Request

Route

PUT /v1/assessment_result_reviews/5a02125a35fd2f3b4cd14fcd

Headers

Content-Type: application/json
Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVhMDIxMjVhMzVmZDJmM2I0Y2QxNGZjYSIsImlkIjoiNWEwMjEyNWEzNWZkMmYzYjRjZDE0ZmNiIiwic2VjcmV0Ijoia08zeVpRPT0ifQ.AAaYxhFRJleQ73RWXvRe3RgWfPJpZ0xi1i6JHDYS5LA

Body

{
  "data" : {
    "rating" : 3,
    "feedback" : "feedback"
  },
  "includes" : []
}

Response

Simulated Response

Status

200

Headers

Content-Type: application/json; charset=utf-8

Body

{
  "id" : "5a02125a35fd2f3b4cd14fcd",
  "type" : "AssessmentResultReview",
  "data" : {
    "id" : "5a02125a35fd2f3b4cd14fcd",
    "reviewedById" : "5a02125a35fd2f3b4cd14fcf",
    "reviewedByStaff" : false,
    "assessmentId" : "5a02125a35fd2f3b4cd14fba",
    "assessmentResultId" : "5a02125a35fd2f3b4cd14fc2",
    "teamCandidateId" : "5a02125a35fd2f3b4cd14fc5",
    "candidateId" : "5a02125a35fd2f3b4cd14fc4",
    "rating" : 3,
    "feedback" : "feedback",
    "state" : "started"
  },
  "meta" : {
    "enums" : {
      "state" : [
        {
          "value" : "invited",
          "text" : "Invited"
        },
        {
          "value" : "started",
          "text" : "Started"
        },
        {
          "value" : "submitted",
          "text" : "Submitted"
        }
      ]
    },
    "timestamp" : "2017-11-07T12:06:50.957-08:00",
    "includes" : []
  }
}

Delete

Endpoint

DELETE /v1/assessment_result_reviews/:id

Request

Route

DELETE /v1/assessment_result_reviews/5a02125b35fd2f3b4cd14fe9

Headers

Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVhMDIxMjViMzVmZDJmM2I0Y2QxNGZlNiIsImlkIjoiNWEwMjEyNWIzNWZkMmYzYjRjZDE0ZmU3Iiwic2VjcmV0IjoidktWVnR3PT0ifQ.rv2S6mBtbIjnVTHsseh4q4xZ_pqzxG77f-lrrilzSAU
Content-Type: application/x-www-form-urlencoded

Response

Simulated Response

Status

204

Headers

Assessment Results

List

Endpoint

GET /v1/assessment_results

Parameters

Name Description
includes Valid values are: team_candidate, team, assessment, solutions, challenge
order_by ie: "created_by DESC".
page Default = 1
assessment_id Also reachable via /assessments/:assessment_id/assessment_results
candidate_id Also reachable via /candidates/:candidate_id/assessment_results

Request

Route

GET /v1/assessment_results

Headers

Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVhMDIxMjViMzVmZDJmM2I0Y2QxNTAxNSIsImlkIjoiNWEwMjEyNWIzNWZkMmYzYjRjZDE1MDE2Iiwic2VjcmV0IjoiNGZ3c25nPT0ifQ.Tj9lpHGucQiBO3evC-T9yMhM80L_bZOV7U4QjJpmHo4

Response

Simulated Response

Status

200

Headers

Content-Type: application/json; charset=utf-8

Body

{
  "type" : "AssessmentResult",
  "data" : [
    {
      "id" : "5a02125b35fd2f3b4cd1500e",
      "assessmentId" : "5a02125b35fd2f3b4cd15009",
      "candidateId" : "5a02125b35fd2f3b4cd14fee",
      "teamCandidateId" : "5a02125b35fd2f3b4cd1500f",
      "teamId" : "5a02125b35fd2f3b4cd14fef",
      "state" : "started",
      "createdAt" : "2017-11-07T20:06:51.702Z",
      "updatedAt" : "2017-11-07T20:06:51.702Z",
      "startedAt" : "2017-11-07T20:06:51.702Z",
      "invitedAt" : null,
      "submittedAt" : null,
      "candidateName" : "Joe Smith63",
      "candidateEmail" : null,
      "timerStartedAt" : null,
      "candidatePhone" : null,
      "dryRun" : false,
      "candidateRemarks" : null,
      "score" : null,
      "timerRanOut" : false,
      "redirectUrl" : null,
      "submissionMessage" : null,
      "nextAssessmentId" : null,
      "interviewerIds" : [],
      "abandoned" : false,
      "isInteractSession" : false,
      "challengeItems" : [
        {
          "id" : "5a02125b35fd2f3b4cd15010",
          "challengeId" : "5a02125b35fd2f3b4cd1500a",
          "required" : 1,
          "position" : 1,
          "disabledLanguages" : []
        }
      ]
    }
  ],
  "currentPage" : 1,
  "totalPages" : 1,
  "totalCount" : 1,
  "meta" : {
    "timestamp" : "2017-11-07T12:06:51.786-08:00",
    "includes" : []
  }
}

Get

Endpoint

GET /v1/assessment_results/:id

Parameters

Name Description
id base64 or base16 ObjectId
includes Valid values: team_candidate, team, assessment, solutions, challenge

Request

Route

GET /v1/assessment_results/5a02125c35fd2f3b4cd15067

Headers

Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVhMDIxMjVjMzVmZDJmM2I0Y2QxNTA0NiIsImlkIjoiNWEwMjEyNWMzNWZkMmYzYjRjZDE1MDQ3Iiwic2VjcmV0IjoiMUhEMS9nPT0ifQ.JM-7AlwSj1JhwgvlcjKkJNdyM6F1VSP_yDe2dhXhIyY

Response

Simulated Response

Status

200

Headers

Content-Type: application/json; charset=utf-8

Body

{
  "id" : "5a02125c35fd2f3b4cd15067",
  "type" : "AssessmentResult",
  "data" : {
    "id" : "5a02125c35fd2f3b4cd15067",
    "assessmentId" : "5a02125c35fd2f3b4cd15062",
    "candidateId" : "5a02125c35fd2f3b4cd15047",
    "teamCandidateId" : "5a02125c35fd2f3b4cd15068",
    "teamId" : "5a02125c35fd2f3b4cd15048",
    "state" : "started",
    "createdAt" : "2017-11-07T20:06:52.448Z",
    "updatedAt" : "2017-11-07T20:06:52.448Z",
    "startedAt" : "2017-11-07T20:06:52.447Z",
    "invitedAt" : null,
    "submittedAt" : null,
    "candidateName" : "Joe Smith81",
    "candidateEmail" : null,
    "timerStartedAt" : null,
    "candidatePhone" : null,
    "dryRun" : false,
    "candidateRemarks" : null,
    "score" : null,
    "timerRanOut" : false,
    "redirectUrl" : null,
    "submissionMessage" : null,
    "nextAssessmentId" : null,
    "challengeItems" : [
      {
        "id" : "5a02125c35fd2f3b4cd15069",
        "challengeId" : "5a02125c35fd2f3b4cd15063",
        "required" : 1,
        "position" : 1,
        "disabledLanguages" : []
      }
    ]
  },
  "meta" : {
    "enums" : {
      "state" : [
        {
          "value" : "invited",
          "text" : "Invited"
        },
        {
          "value" : "started",
          "text" : "Started"
        },
        {
          "value" : "submitting",
          "text" : "Submitting"
        },
        {
          "value" : "submitted",
          "text" : "Submitted"
        }
      ]
    },
    "timestamp" : "2017-11-07T12:06:52.498-08:00",
    "includes" : []
  }
}

Unsubmit

Undos the assessment result submission so that the candidate can make changes

Endpoint

PUT /v1/assessment_results/:id/unsubmit

Request

Route

PUT /v1/assessment_results/5a02125e35fd2f3b4cd15135/unsubmit

Headers

Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVhMDIxMjVlMzVmZDJmM2I0Y2QxNTEyZSIsImlkIjoiNWEwMjEyNWUzNWZkMmYzYjRjZDE1MTJmIiwic2VjcmV0IjoiazdscXR3PT0ifQ.wveduI43HmB_3jdmxfcfMmVnAqJ3g2KDUMwrH-ZMAD8
Content-Type: application/x-www-form-urlencoded

Response

Simulated Response

Status

200

Headers

Content-Type: application/json; charset=utf-8

Body

{
  "id" : "5a02125e35fd2f3b4cd15135",
  "type" : "AssessmentResult",
  "data" : {
    "id" : "5a02125e35fd2f3b4cd15135",
    "assessmentId" : "5a02125e35fd2f3b4cd1512d",
    "candidateId" : "5a02125e35fd2f3b4cd15127",
    "teamCandidateId" : "5a02125e35fd2f3b4cd15136",
    "teamId" : "5a02125e35fd2f3b4cd15128",
    "state" : "started",
    "createdAt" : "1970-01-01T02:30:59.999Z",
    "updatedAt" : "2017-11-07T20:06:54.599Z",
    "startedAt" : "2017-11-07T20:06:54.570Z",
    "invitedAt" : null,
    "submittedAt" : null,
    "candidateName" : "Joe Smith123",
    "candidateEmail" : null,
    "timerStartedAt" : null,
    "candidatePhone" : null,
    "dryRun" : false,
    "candidateRemarks" : null,
    "score" : 0.0,
    "timerRanOut" : false,
    "redirectUrl" : null,
    "submissionMessage" : null,
    "nextAssessmentId" : null,
    "interviewerIds" : [],
    "abandoned" : false,
    "isInteractSession" : false,
    "challengeItems" : []
  },
  "meta" : {
    "enums" : {
      "state" : [
        {
          "value" : "invited",
          "text" : "Invited"
        },
        {
          "value" : "started",
          "text" : "Started"
        },
        {
          "value" : "submitting",
          "text" : "Submitting"
        },
        {
          "value" : "submitted",
          "text" : "Submitted"
        }
      ]
    },
    "timestamp" : "2017-11-07T12:06:54.617-08:00",
    "includes" : []
  }
}

Assessment Templates

List

Endpoint

GET /v1/assessment_templates

Request

Route

GET /v1/assessment_templates

Headers

Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVhMDIxMjVmMzVmZDJmM2I0Y2QxNTFjNCIsImlkIjoiNWEwMjEyNWYzNWZkMmYzYjRjZDE1MWM1Iiwic2VjcmV0IjoiYXQ4eDV3PT0ifQ.eqobSvNbmC8xNXL2W-TgnnOD2Ho_ehNh_3cp0HiPiEE

Response

Simulated Response

Status

200

Headers

Content-Type: application/json; charset=utf-8

Body

{
  "type" : "Assessment",
  "data" : [
    {
      "id" : "5a02125e35fd2f3b4cd1513f",
      "title" : "Mid-Level Database Developer #26",
      "state" : "published",
      "defaultLanguage" : null,
      "defaultInviteMessage" : null,
      "teamId" : "5a02125e35fd2f3b4cd1513a",
      "inviteOnly" : false,
      "softDeletedAt" : null,
      "enforcedTimeLimit" : null,
      "copiedFromId" : null,
      "isTemplate" : true,
      "isPractice" : false,
      "isDemo" : false,
      "galleryImage" : null,
      "summary" : "Iste rerum sed. Recusandae ipsa omnis aut aut natus architecto. Ducimus asperiores vitae est.",
      "challengeItems" : [
        {
          "id" : "5a02125e35fd2f3b4cd15146",
          "challengeId" : "5a02125e35fd2f3b4cd15143",
          "required" : 1,
          "position" : 1,
          "disabledLanguages" : [],
          "challenge" : {
            "id" : "5a02125e35fd2f3b4cd15143",
            "$type" : "CodeChallenge",
            "teamId" : "5a02125e35fd2f3b4cd1513a",
            "createdById" : "5a02125e35fd2f3b4cd15141",
            "copiedFromId" : null,
            "title" : "Cipher Strings #23",
            "instructions" : "Complete the solution",
            "difficulty" : 1,
            "summary" : null,
            "purpose" : null,
            "topics" : [
              "Algorithms"
            ],
            "buckets" : null,
            "estimatedTime" : 2,
            "state" : "draft",
            "publishedAt" : null,
            "createdAt" : "2017-11-07T20:06:54.672Z",
            "updatedAt" : "2017-11-07T20:06:54.672Z",
            "libraryAccess" : "limited",
            "copiedFromLibrary" : null,
            "copiedFromContentType" : null,
            "contentType" : "normal",
            "productTypes" : {
              "_id" : "5a02125e35fd2f3b4cd15144",
              "education" : true,
              "recruitment" : true
            },
            "collection" : "commons",
            "protected" : true,
            "requiresUpgrade" : false,
            "defaultLanguage" : null,
            "enforceAllTestsOnPublish" : true,
            "enabledServices" : [],
            "yamlConfig" : null,
            "successMode" : "specs",
            "languages" : [
              {
                "id" : "5a02125e35fd2f3b4cd15145",
                "name" : "javascript",
                "setup" : "var a = ",
                "exampleTestCases" : "Test.expect(a == 1)",
                "exampleWallTime" : null,
                "testFramework" : "cw-2",
                "languageVersion" : "6.x",
                "languageVersionName" : "Node v6.11.0",
                "challengeReferenceIds" : [],
                "availableTestFrameworks" : [
                  "cw-2",
                  "mocha_bdd",
                  "mocha_tdd",
                  "karma_bdd",
                  "karma_tdd"
                ],
                "totalTestCases" : 1,
                "weightedTestCases" : 1,
                "tagTestCases" : null,
                "hiddenTestCases" : 0,
                "testCases" : "wJDjcaO5FbOH+mXbxs0O5emjxGUZi+DPgc7Fug8sHeU=\n--XUexagO9/xkXYHlI1vCscQ==--u"
              }
            ]
          }
        },
        {
          "id" : "5a02125e35fd2f3b4cd1514a",
          "challengeId" : "5a02125e35fd2f3b4cd15147",
          "required" : 1,
          "position" : 2,
          "disabledLanguages" : [],
          "challenge" : {
            "id" : "5a02125e35fd2f3b4cd15147",
            "$type" : "CodeChallenge",
            "teamId" : "5a02125e35fd2f3b4cd1513a",
            "createdById" : "5a02125e35fd2f3b4cd15141",
            "copiedFromId" : null,
            "title" : "Async Items #24",
            "instructions" : "Complete the solution",
            "difficulty" : 1,
            "summary" : null,
            "purpose" : null,
            "topics" : [
              "Meta-programming"
            ],
            "buckets" : null,
            "estimatedTime" : 2,
            "state" : "draft",
            "publishedAt" : null,
            "createdAt" : "2017-11-07T20:06:54.695Z",
            "updatedAt" : "2017-11-07T20:06:54.695Z",
            "libraryAccess" : "limited",
            "copiedFromLibrary" : null,
            "copiedFromContentType" : null,
            "contentType" : "normal",
            "productTypes" : {
              "_id" : "5a02125e35fd2f3b4cd15148",
              "education" : true,
              "recruitment" : true
            },
            "collection" : "commons",
            "protected" : true,
            "requiresUpgrade" : false,
            "defaultLanguage" : null,
            "enforceAllTestsOnPublish" : true,
            "enabledServices" : [],
            "yamlConfig" : null,
            "successMode" : "specs",
            "languages" : [
              {
                "id" : "5a02125e35fd2f3b4cd15149",
                "name" : "javascript",
                "setup" : "var a = ",
                "exampleTestCases" : "Test.expect(a == 1)",
                "exampleWallTime" : null,
                "testFramework" : "cw-2",
                "languageVersion" : "6.x",
                "languageVersionName" : "Node v6.11.0",
                "challengeReferenceIds" : [],
                "availableTestFrameworks" : [
                  "cw-2",
                  "mocha_bdd",
                  "mocha_tdd",
                  "karma_bdd",
                  "karma_tdd"
                ],
                "totalTestCases" : 1,
                "weightedTestCases" : 1,
                "tagTestCases" : null,
                "hiddenTestCases" : 0,
                "testCases" : "7GtV4HE6abet3tnqxlCt3V8H5pOPIKzKa+cqGMk2PN4=\n--XHJrbwSonS/nndYwhaB+rQ==--u"
              }
            ]
          }
        },
        {
          "id" : "5a02125e35fd2f3b4cd1514e",
          "challengeId" : "5a02125e35fd2f3b4cd1514b",
          "required" : 1,
          "position" : 3,
          "disabledLanguages" : [],
          "challenge" : {
            "id" : "5a02125e35fd2f3b4cd1514b",
            "$type" : "CodeChallenge",
            "teamId" : "5a02125e35fd2f3b4cd1513a",
            "createdById" : "5a02125e35fd2f3b4cd15141",
            "copiedFromId" : null,
            "title" : "Super Items #25",
            "instructions" : "Complete the solution",
            "difficulty" : 1,
            "summary" : null,
            "purpose" : null,
            "topics" : [
              "Algorithms"
            ],
            "buckets" : null,
            "estimatedTime" : 2,
            "state" : "draft",
            "publishedAt" : null,
            "createdAt" : "2017-11-07T20:06:54.739Z",
            "updatedAt" : "2017-11-07T20:06:54.739Z",
            "libraryAccess" : "limited",
            "copiedFromLibrary" : null,
            "copiedFromContentType" : null,
            "contentType" : "normal",
            "productTypes" : {
              "_id" : "5a02125e35fd2f3b4cd1514c",
              "education" : true,
              "recruitment" : true
            },
            "collection" : "commons",
            "protected" : true,
            "requiresUpgrade" : false,
            "defaultLanguage" : null,
            "enforceAllTestsOnPublish" : true,
            "enabledServices" : [],
            "yamlConfig" : null,
            "successMode" : "specs",
            "languages" : [
              {
                "id" : "5a02125e35fd2f3b4cd1514d",
                "name" : "javascript",
                "setup" : "var a = ",
                "exampleTestCases" : "Test.expect(a == 1)",
                "exampleWallTime" : null,
                "testFramework" : "cw-2",
                "languageVersion" : "6.x",
                "languageVersionName" : "Node v6.11.0",
                "challengeReferenceIds" : [],
                "availableTestFrameworks" : [
                  "cw-2",
                  "mocha_bdd",
                  "mocha_tdd",
                  "karma_bdd",
                  "karma_tdd"
                ],
                "totalTestCases" : 1,
                "weightedTestCases" : 1,
                "tagTestCases" : null,
                "hiddenTestCases" : 0,
                "testCases" : "khAHRFpL7R9eOIW/2yUTIqap+EEe1c5oQ0YuB6AD2cc=\n--ihz4ZakllnuD0dWhjv7EIg==--u"
              }
            ]
          }
        },
        {
          "id" : "5a02125e35fd2f3b4cd15152",
          "challengeId" : "5a02125e35fd2f3b4cd1514f",
          "required" : 1,
          "position" : 4,
          "disabledLanguages" : [],
          "challenge" : {
            "id" : "5a02125e35fd2f3b4cd1514f",
            "$type" : "CodeChallenge",
            "teamId" : "5a02125e35fd2f3b4cd1513a",
            "createdById" : "5a02125e35fd2f3b4cd15141",
            "copiedFromId" : null,
            "title" : "Recursive Puzzle #26",
            "instructions" : "Complete the solution",
            "difficulty" : 1,
            "summary" : null,
            "purpose" : null,
            "topics" : [
              "Meta-programming"
            ],
            "buckets" : null,
            "estimatedTime" : 2,
            "state" : "draft",
            "publishedAt" : null,
            "createdAt" : "2017-11-07T20:06:54.756Z",
            "updatedAt" : "2017-11-07T20:06:54.756Z",
            "libraryAccess" : "limited",
            "copiedFromLibrary" : null,
            "copiedFromContentType" : null,
            "contentType" : "normal",
            "productTypes" : {
              "_id" : "5a02125e35fd2f3b4cd15150",
              "education" : true,
              "recruitment" : true
            },
            "collection" : "commons",
            "protected" : true,
            "requiresUpgrade" : false,
            "defaultLanguage" : null,
            "enforceAllTestsOnPublish" : true,
            "enabledServices" : [],
            "yamlConfig" : null,
            "successMode" : "specs",
            "languages" : [
              {
                "id" : "5a02125e35fd2f3b4cd15151",
                "name" : "javascript",
                "setup" : "var a = ",
                "exampleTestCases" : "Test.expect(a == 1)",
                "exampleWallTime" : null,
                "testFramework" : "cw-2",
                "languageVersion" : "6.x",
                "languageVersionName" : "Node v6.11.0",
                "challengeReferenceIds" : [],
                "availableTestFrameworks" : [
                  "cw-2",
                  "mocha_bdd",
                  "mocha_tdd",
                  "karma_bdd",
                  "karma_tdd"
                ],
                "totalTestCases" : 1,
                "weightedTestCases" : 1,
                "tagTestCases" : null,
                "hiddenTestCases" : 0,
                "testCases" : "zlF/ke4QcFPIvKQ9N5T0FFvHOPBJKZAZTPMsktbYnZo=\n--y7441UIBl0lorkc0vuhj+w==--u"
              }
            ]
          }
        },
        {
          "id" : "5a02125e35fd2f3b4cd15156",
          "challengeId" : "5a02125e35fd2f3b4cd15153",
          "required" : 1,
          "position" : 5,
          "disabledLanguages" : [],
          "challenge" : {
            "id" : "5a02125e35fd2f3b4cd15153",
            "$type" : "CodeChallenge",
            "teamId" : "5a02125e35fd2f3b4cd1513a",
            "createdById" : "5a02125e35fd2f3b4cd15141",
            "copiedFromId" : null,
            "title" : "Heavy Problem #27",
            "instructions" : "Complete the solution",
            "difficulty" : 1,
            "summary" : null,
            "purpose" : null,
            "topics" : [
              "Meta-programming"
            ],
            "buckets" : null,
            "estimatedTime" : 2,
            "state" : "draft",
            "publishedAt" : null,
            "createdAt" : "2017-11-07T20:06:54.772Z",
            "updatedAt" : "2017-11-07T20:06:54.772Z",
            "libraryAccess" : "limited",
            "copiedFromLibrary" : null,
            "copiedFromContentType" : null,
            "contentType" : "normal",
            "productTypes" : {
              "_id" : "5a02125e35fd2f3b4cd15154",
              "education" : true,
              "recruitment" : true
            },
            "collection" : "commons",
            "protected" : true,
            "requiresUpgrade" : false,
            "defaultLanguage" : null,
            "enforceAllTestsOnPublish" : true,
            "enabledServices" : [],
            "yamlConfig" : null,
            "successMode" : "specs",
            "languages" : [
              {
                "id" : "5a02125e35fd2f3b4cd15155",
                "name" : "javascript",
                "setup" : "var a = ",
                "exampleTestCases" : "Test.expect(a == 1)",
                "exampleWallTime" : null,
                "testFramework" : "cw-2",
                "languageVersion" : "6.x",
                "languageVersionName" : "Node v6.11.0",
                "challengeReferenceIds" : [],
                "availableTestFrameworks" : [
                  "cw-2",
                  "mocha_bdd",
                  "mocha_tdd",
                  "karma_bdd",
                  "karma_tdd"
                ],
                "totalTestCases" : 1,
                "weightedTestCases" : 1,
                "tagTestCases" : null,
                "hiddenTestCases" : 0,
                "testCases" : "7yAdmdKFSwAU228bjtFW69S1Yo6jyf1+zxVpwX6fCxk=\n--E2z+zRkT/t1I/olAmze6sw==--u"
              }
            ]
          }
        },
        {
          "id" : "5a02125e35fd2f3b4cd1515a",
          "challengeId" : "5a02125e35fd2f3b4cd15157",
          "required" : 1,
          "position" : 6,
          "disabledLanguages" : [],
          "challenge" : {
            "id" : "5a02125e35fd2f3b4cd15157",
            "$type" : "CodeChallenge",
            "teamId" : "5a02125e35fd2f3b4cd1513a",
            "createdById" : "5a02125e35fd2f3b4cd15141",
            "copiedFromId" : null,
            "title" : "Happy Process #28",
            "instructions" : "Complete the solution",
            "difficulty" : 1,
            "summary" : null,
            "purpose" : null,
            "topics" : [
              "Meta-programming"
            ],
            "buckets" : null,
            "estimatedTime" : 2,
            "state" : "draft",
            "publishedAt" : null,
            "createdAt" : "2017-11-07T20:06:54.786Z",
            "updatedAt" : "2017-11-07T20:06:54.786Z",
            "libraryAccess" : "limited",
            "copiedFromLibrary" : null,
            "copiedFromContentType" : null,
            "contentType" : "normal",
            "productTypes" : {
              "_id" : "5a02125e35fd2f3b4cd15158",
              "education" : true,
              "recruitment" : true
            },
            "collection" : "commons",
            "protected" : true,
            "requiresUpgrade" : false,
            "defaultLanguage" : null,
            "enforceAllTestsOnPublish" : true,
            "enabledServices" : [],
            "yamlConfig" : null,
            "successMode" : "specs",
            "languages" : [
              {
                "id" : "5a02125e35fd2f3b4cd15159",
                "name" : "javascript",
                "setup" : "var a = ",
                "exampleTestCases" : "Test.expect(a == 1)",
                "exampleWallTime" : null,
                "testFramework" : "cw-2",
                "languageVersion" : "6.x",
                "languageVersionName" : "Node v6.11.0",
                "challengeReferenceIds" : [],
                "availableTestFrameworks" : [
                  "cw-2",
                  "mocha_bdd",
                  "mocha_tdd",
                  "karma_bdd",
                  "karma_tdd"
                ],
                "totalTestCases" : 1,
                "weightedTestCases" : 1,
                "tagTestCases" : null,
                "hiddenTestCases" : 0,
                "testCases" : "wszLmEWlna9QFVWNEpbje9ttQbvOoFtJ1J08VWVRDig=\n--KScFpnV6EzTnuI0Y/dnxbg==--u"
              }
            ]
          }
        }
      ],
      "purpose" : "Minus fugiat dolore non. Rerum in quaerat officiis ad in. Debitis commodi sit dolorem. Reiciendis similique odit qui laboriosam est tempora porro. Repudiandae ducimus sint.",
      "demoLandingOrder" : 1000
    },
    {
      "id" : "5a02125e35fd2f3b4cd1515b",
      "title" : "Mid-Level DevOps Developer #27",
      "state" : "published",
      "defaultLanguage" : null,
      "defaultInviteMessage" : null,
      "teamId" : "5a02125e35fd2f3b4cd1513a",
      "inviteOnly" : false,
      "softDeletedAt" : null,
      "enforcedTimeLimit" : null,
      "copiedFromId" : null,
      "isTemplate" : true,
      "isPractice" : false,
      "isDemo" : false,
      "galleryImage" : null,
      "summary" : "Occaecati quisquam nisi asperiores. Ratione eos ut deserunt facere. Nihil aut et perspiciatis asperiores omnis iure minima. Quos consectetur soluta cum ut totam. Et ut consequuntur officiis voluptates.",
      "challengeItems" : [
        {
          "id" : "5a02125e35fd2f3b4cd1515f",
          "challengeId" : "5a02125e35fd2f3b4cd1515c",
          "required" : 1,
          "position" : 1,
          "disabledLanguages" : [],
          "challenge" : {
            "id" : "5a02125e35fd2f3b4cd1515c",
            "$type" : "CodeChallenge",
            "teamId" : "5a02125e35fd2f3b4cd1513a",
            "createdById" : "5a02125e35fd2f3b4cd15141",
            "copiedFromId" : null,
            "title" : "Functional Events #29",
            "instructions" : "Complete the solution",
            "difficulty" : 1,
            "summary" : null,
            "purpose" : null,
            "topics" : [
              "Algorithms"
            ],
            "buckets" : null,
            "estimatedTime" : 2,
            "state" : "draft",
            "publishedAt" : null,
            "createdAt" : "2017-11-07T20:06:54.808Z",
            "updatedAt" : "2017-11-07T20:06:54.808Z",
            "libraryAccess" : "limited",
            "copiedFromLibrary" : null,
            "copiedFromContentType" : null,
            "contentType" : "normal",
            "productTypes" : {
              "_id" : "5a02125e35fd2f3b4cd1515d",
              "education" : true,
              "recruitment" : true
            },
            "collection" : "commons",
            "protected" : true,
            "requiresUpgrade" : false,
            "defaultLanguage" : null,
            "enforceAllTestsOnPublish" : true,
            "enabledServices" : [],
            "yamlConfig" : null,
            "successMode" : "specs",
            "languages" : [
              {
                "id" : "5a02125e35fd2f3b4cd1515e",
                "name" : "javascript",
                "setup" : "var a = ",
                "exampleTestCases" : "Test.expect(a == 1)",
                "exampleWallTime" : null,
                "testFramework" : "cw-2",
                "languageVersion" : "6.x",
                "languageVersionName" : "Node v6.11.0",
                "challengeReferenceIds" : [],
                "availableTestFrameworks" : [
                  "cw-2",
                  "mocha_bdd",
                  "mocha_tdd",
                  "karma_bdd",
                  "karma_tdd"
                ],
                "totalTestCases" : 1,
                "weightedTestCases" : 1,
                "tagTestCases" : null,
                "hiddenTestCases" : 0,
                "testCases" : "I7907rhfsbuUnlX016J3G4069nXNJ4X5LOuUV+zltlE=\n--Z50vshnM/pz8/pXeVoE2Eg==--u"
              }
            ]
          }
        },
        {
          "id" : "5a02125e35fd2f3b4cd15163",
          "challengeId" : "5a02125e35fd2f3b4cd15160",
          "required" : 1,
          "position" : 2,
          "disabledLanguages" : [],
          "challenge" : {
            "id" : "5a02125e35fd2f3b4cd15160",
            "$type" : "CodeChallenge",
            "teamId" : "5a02125e35fd2f3b4cd1513a",
            "createdById" : "5a02125e35fd2f3b4cd15141",
            "copiedFromId" : null,
            "title" : "Cipher System #30",
            "instructions" : "Complete the solution",
            "difficulty" : 1,
            "summary" : null,
            "purpose" : null,
            "topics" : [
              "Logic"
            ],
            "buckets" : null,
            "estimatedTime" : 2,
            "state" : "draft",
            "publishedAt" : null,
            "createdAt" : "2017-11-07T20:06:54.830Z",
            "updatedAt" : "2017-11-07T20:06:54.830Z",
            "libraryAccess" : "limited",
            "copiedFromLibrary" : null,
            "copiedFromContentType" : null,
            "contentType" : "normal",
            "productTypes" : {
              "_id" : "5a02125e35fd2f3b4cd15161",
              "education" : true,
              "recruitment" : true
            },
            "collection" : "commons",
            "protected" : true,
            "requiresUpgrade" : false,
            "defaultLanguage" : null,
            "enforceAllTestsOnPublish" : true,
            "enabledServices" : [],
            "yamlConfig" : null,
            "successMode" : "specs",
            "languages" : [
              {
                "id" : "5a02125e35fd2f3b4cd15162",
                "name" : "javascript",
                "setup" : "var a = ",
                "exampleTestCases" : "Test.expect(a == 1)",
                "exampleWallTime" : null,
                "testFramework" : "cw-2",
                "languageVersion" : "6.x",
                "languageVersionName" : "Node v6.11.0",
                "challengeReferenceIds" : [],
                "availableTestFrameworks" : [
                  "cw-2",
                  "mocha_bdd",
                  "mocha_tdd",
                  "karma_bdd",
                  "karma_tdd"
                ],
                "totalTestCases" : 1,
                "weightedTestCases" : 1,
                "tagTestCases" : null,
                "hiddenTestCases" : 0,
                "testCases" : "kr95xNlehsogllR7C/HKxNijvHwwUYP3W+285NE9MSs=\n--JrIfOKywAvPNYOgGp9wCBg==--u"
              }
            ]
          }
        },
        {
          "id" : "5a02125e35fd2f3b4cd15167",
          "challengeId" : "5a02125e35fd2f3b4cd15164",
          "required" : 1,
          "position" : 3,
          "disabledLanguages" : [],
          "challenge" : {
            "id" : "5a02125e35fd2f3b4cd15164",
            "$type" : "CodeChallenge",
            "teamId" : "5a02125e35fd2f3b4cd1513a",
            "createdById" : "5a02125e35fd2f3b4cd15141",
            "copiedFromId" : null,
            "title" : "Travel Sequence #31",
            "instructions" : "Complete the solution",
            "difficulty" : 1,
            "summary" : null,
            "purpose" : null,
            "topics" : [
              "Fundamentals"
            ],
            "buckets" : null,
            "estimatedTime" : 2,
            "state" : "draft",
            "publishedAt" : null,
            "createdAt" : "2017-11-07T20:06:54.865Z",
            "updatedAt" : "2017-11-07T20:06:54.865Z",
            "libraryAccess" : "limited",
            "copiedFromLibrary" : null,
            "copiedFromContentType" : null,
            "contentType" : "normal",
            "productTypes" : {
              "_id" : "5a02125e35fd2f3b4cd15165",
              "education" : true,
              "recruitment" : true
            },
            "collection" : "commons",
            "protected" : true,
            "requiresUpgrade" : false,
            "defaultLanguage" : null,
            "enforceAllTestsOnPublish" : true,
            "enabledServices" : [],
            "yamlConfig" : null,
            "successMode" : "specs",
            "languages" : [
              {
                "id" : "5a02125e35fd2f3b4cd15166",
                "name" : "javascript",
                "setup" : "var a = ",
                "exampleTestCases" : "Test.expect(a == 1)",
                "exampleWallTime" : null,
                "testFramework" : "cw-2",
                "languageVersion" : "6.x",
                "languageVersionName" : "Node v6.11.0",
                "challengeReferenceIds" : [],
                "availableTestFrameworks" : [
                  "cw-2",
                  "mocha_bdd",
                  "mocha_tdd",
                  "karma_bdd",
                  "karma_tdd"
                ],
                "totalTestCases" : 1,
                "weightedTestCases" : 1,
                "tagTestCases" : null,
                "hiddenTestCases" : 0,
                "testCases" : "MAzTBJfYG8xIsK0QVVIYJDewZVsj8xl+nuMKykBd8eo=\n--fQbz2qN32x2EQPYXRHlyEg==--u"
              }
            ]
          }
        },
        {
          "id" : "5a02125e35fd2f3b4cd1516b",
          "challengeId" : "5a02125e35fd2f3b4cd15168",
          "required" : 1,
          "position" : 4,
          "disabledLanguages" : [],
          "challenge" : {
            "id" : "5a02125e35fd2f3b4cd15168",
            "$type" : "CodeChallenge",
            "teamId" : "5a02125e35fd2f3b4cd1513a",
            "createdById" : "5a02125e35fd2f3b4cd15141",
            "copiedFromId" : null,
            "title" : "Email Search #32",
            "instructions" : "Complete the solution",
            "difficulty" : 1,
            "summary" : null,
            "purpose" : null,
            "topics" : [
              "Algorithms"
            ],
            "buckets" : null,
            "estimatedTime" : 2,
            "state" : "draft",
            "publishedAt" : null,
            "createdAt" : "2017-11-07T20:06:54.880Z",
            "updatedAt" : "2017-11-07T20:06:54.880Z",
            "libraryAccess" : "limited",
            "copiedFromLibrary" : null,
            "copiedFromContentType" : null,
            "contentType" : "normal",
            "productTypes" : {
              "_id" : "5a02125e35fd2f3b4cd15169",
              "education" : true,
              "recruitment" : true
            },
            "collection" : "commons",
            "protected" : true,
            "requiresUpgrade" : false,
            "defaultLanguage" : null,
            "enforceAllTestsOnPublish" : true,
            "enabledServices" : [],
            "yamlConfig" : null,
            "successMode" : "specs",
            "languages" : [
              {
                "id" : "5a02125e35fd2f3b4cd1516a",
                "name" : "javascript",
                "setup" : "var a = ",
                "exampleTestCases" : "Test.expect(a == 1)",
                "exampleWallTime" : null,
                "testFramework" : "cw-2",
                "languageVersion" : "6.x",
                "languageVersionName" : "Node v6.11.0",
                "challengeReferenceIds" : [],
                "availableTestFrameworks" : [
                  "cw-2",
                  "mocha_bdd",
                  "mocha_tdd",
                  "karma_bdd",
                  "karma_tdd"
                ],
                "totalTestCases" : 1,
                "weightedTestCases" : 1,
                "tagTestCases" : null,
                "hiddenTestCases" : 0,
                "testCases" : "l0ZuYsM451gUJwGIcHPptTFTz9S1N7P282x+TjfeWQE=\n--M1Bzjrfpmw7GoEzDE7bJmA==--u"
              }
            ]
          }
        },
        {
          "id" : "5a02125e35fd2f3b4cd1516f",
          "challengeId" : "5a02125e35fd2f3b4cd1516c",
          "required" : 1,
          "position" : 5,
          "disabledLanguages" : [],
          "challenge" : {
            "id" : "5a02125e35fd2f3b4cd1516c",
            "$type" : "CodeChallenge",
            "teamId" : "5a02125e35fd2f3b4cd1513a",
            "createdById" : "5a02125e35fd2f3b4cd15141",
            "copiedFromId" : null,
            "title" : "Repeated Algorithm #33",
            "instructions" : "Complete the solution",
            "difficulty" : 1,
            "summary" : null,
            "purpose" : null,
            "topics" : [
              "Algorithms"
            ],
            "buckets" : null,
            "estimatedTime" : 2,
            "state" : "draft",
            "publishedAt" : null,
            "createdAt" : "2017-11-07T20:06:54.895Z",
            "updatedAt" : "2017-11-07T20:06:54.895Z",
            "libraryAccess" : "limited",
            "copiedFromLibrary" : null,
            "copiedFromContentType" : null,
            "contentType" : "normal",
            "productTypes" : {
              "_id" : "5a02125e35fd2f3b4cd1516d",
              "education" : true,
              "recruitment" : true
            },
            "collection" : "commons",
            "protected" : true,
            "requiresUpgrade" : false,
            "defaultLanguage" : null,
            "enforceAllTestsOnPublish" : true,
            "enabledServices" : [],
            "yamlConfig" : null,
            "successMode" : "specs",
            "languages" : [
              {
                "id" : "5a02125e35fd2f3b4cd1516e",
                "name" : "javascript",
                "setup" : "var a = ",
                "exampleTestCases" : "Test.expect(a == 1)",
                "exampleWallTime" : null,
                "testFramework" : "cw-2",
                "languageVersion" : "6.x",
                "languageVersionName" : "Node v6.11.0",
                "challengeReferenceIds" : [],
                "availableTestFrameworks" : [
                  "cw-2",
                  "mocha_bdd",
                  "mocha_tdd",
                  "karma_bdd",
                  "karma_tdd"
                ],
                "totalTestCases" : 1,
                "weightedTestCases" : 1,
                "tagTestCases" : null,
                "hiddenTestCases" : 0,
                "testCases" : "PK/wF3PJqOZWrKbddZyFlmh/AhEPfLwowQ0sSeT3Cn0=\n--moZFukQactWrirHiBqHbTQ==--u"
              }
            ]
          }
        },
        {
          "id" : "5a02125e35fd2f3b4cd15173",
          "challengeId" : "5a02125e35fd2f3b4cd15170",
          "required" : 1,
          "position" : 6,
          "disabledLanguages" : [],
          "challenge" : {
            "id" : "5a02125e35fd2f3b4cd15170",
            "$type" : "CodeChallenge",
            "teamId" : "5a02125e35fd2f3b4cd1513a",
            "createdById" : "5a02125e35fd2f3b4cd15141",
            "copiedFromId" : null,
            "title" : "Actor Strings #34",
            "instructions" : "Complete the solution",
            "difficulty" : 1,
            "summary" : null,
            "purpose" : null,
            "topics" : [
              "Logic"
            ],
            "buckets" : null,
            "estimatedTime" : 2,
            "state" : "draft",
            "publishedAt" : null,
            "createdAt" : "2017-11-07T20:06:54.911Z",
            "updatedAt" : "2017-11-07T20:06:54.911Z",
            "libraryAccess" : "limited",
            "copiedFromLibrary" : null,
            "copiedFromContentType" : null,
            "contentType" : "normal",
            "productTypes" : {
              "_id" : "5a02125e35fd2f3b4cd15171",
              "education" : true,
              "recruitment" : true
            },
            "collection" : "commons",
            "protected" : true,
            "requiresUpgrade" : false,
            "defaultLanguage" : null,
            "enforceAllTestsOnPublish" : true,
            "enabledServices" : [],
            "yamlConfig" : null,
            "successMode" : "specs",
            "languages" : [
              {
                "id" : "5a02125e35fd2f3b4cd15172",
                "name" : "javascript",
                "setup" : "var a = ",
                "exampleTestCases" : "Test.expect(a == 1)",
                "exampleWallTime" : null,
                "testFramework" : "cw-2",
                "languageVersion" : "6.x",
                "languageVersionName" : "Node v6.11.0",
                "challengeReferenceIds" : [],
                "availableTestFrameworks" : [
                  "cw-2",
                  "mocha_bdd",
                  "mocha_tdd",
                  "karma_bdd",
                  "karma_tdd"
                ],
                "totalTestCases" : 1,
                "weightedTestCases" : 1,
                "tagTestCases" : null,
                "hiddenTestCases" : 0,
                "testCases" : "FNRHuT1QKomVo/XOuLCEA0BtZLxIzgyH3YVA9tu10lg=\n--nt4zIKKZcLEgez5bqBXOMg==--u"
              }
            ]
          }
        }
      ],
      "purpose" : "Et odio ex expedita. Molestiae maxime dolores laboriosam sint. Et autem tenetur perspiciatis.",
      "demoLandingOrder" : 1000
    },
    {
      "id" : "5a02125e35fd2f3b4cd15174",
      "title" : "Mid-Level Rails Engineer #28",
      "state" : "published",
      "defaultLanguage" : null,
      "defaultInviteMessage" : null,
      "teamId" : "5a02125e35fd2f3b4cd1513a",
      "inviteOnly" : false,
      "softDeletedAt" : null,
      "enforcedTimeLimit" : null,
      "copiedFromId" : null,
      "isTemplate" : true,
      "isPractice" : false,
      "isDemo" : false,
      "galleryImage" : null,
      "summary" : "A alias dolor voluptatibus. Consequatur dignissimos eum qui doloremque aut hic. Omnis aut eum. Corrupti est numquam.",
      "challengeItems" : [
        {
          "id" : "5a02125e35fd2f3b4cd15178",
          "challengeId" : "5a02125e35fd2f3b4cd15175",
          "required" : 1,
          "position" : 1,
          "disabledLanguages" : [],
          "challenge" : {
            "id" : "5a02125e35fd2f3b4cd15175",
            "$type" : "CodeChallenge",
            "teamId" : "5a02125e35fd2f3b4cd1513a",
            "createdById" : "5a02125e35fd2f3b4cd15141",
            "copiedFromId" : null,
            "title" : "Sequence Lists #35",
            "instructions" : "Complete the solution",
            "difficulty" : 1,
            "summary" : null,
            "purpose" : null,
            "topics" : [
              "Fundamentals"
            ],
            "buckets" : null,
            "estimatedTime" : 2,
            "state" : "draft",
            "publishedAt" : null,
            "createdAt" : "2017-11-07T20:06:54.933Z",
            "updatedAt" : "2017-11-07T20:06:54.933Z",
            "libraryAccess" : "limited",
            "copiedFromLibrary" : null,
            "copiedFromContentType" : null,
            "contentType" : "normal",
            "productTypes" : {
              "_id" : "5a02125e35fd2f3b4cd15176",
              "education" : true,
              "recruitment" : true
            },
            "collection" : "commons",
            "protected" : true,
            "requiresUpgrade" : false,
            "defaultLanguage" : null,
            "enforceAllTestsOnPublish" : true,
            "enabledServices" : [],
            "yamlConfig" : null,
            "successMode" : "specs",
            "languages" : [
              {
                "id" : "5a02125e35fd2f3b4cd15177",
                "name" : "javascript",
                "setup" : "var a = ",
                "exampleTestCases" : "Test.expect(a == 1)",
                "exampleWallTime" : null,
                "testFramework" : "cw-2",
                "languageVersion" : "6.x",
                "languageVersionName" : "Node v6.11.0",
                "challengeReferenceIds" : [],
                "availableTestFrameworks" : [
                  "cw-2",
                  "mocha_bdd",
                  "mocha_tdd",
                  "karma_bdd",
                  "karma_tdd"
                ],
                "totalTestCases" : 1,
                "weightedTestCases" : 1,
                "tagTestCases" : null,
                "hiddenTestCases" : 0,
                "testCases" : "671CI+bxfiGGsDSOFQAmXRAV+FhVxoA6W+jVcZcwISk=\n--9TdqJJZxGhM7Jna5xQo7nw==--u"
              }
            ]
          }
        },
        {
          "id" : "5a02125e35fd2f3b4cd1517c",
          "challengeId" : "5a02125e35fd2f3b4cd15179",
          "required" : 1,
          "position" : 2,
          "disabledLanguages" : [],
          "challenge" : {
            "id" : "5a02125e35fd2f3b4cd15179",
            "$type" : "CodeChallenge",
            "teamId" : "5a02125e35fd2f3b4cd1513a",
            "createdById" : "5a02125e35fd2f3b4cd15141",
            "copiedFromId" : null,
            "title" : "Polymorphic Process #36",
            "instructions" : "Complete the solution",
            "difficulty" : 1,
            "summary" : null,
            "purpose" : null,
            "topics" : [
              "Algorithms"
            ],
            "buckets" : null,
            "estimatedTime" : 2,
            "state" : "draft",
            "publishedAt" : null,
            "createdAt" : "2017-11-07T20:06:54.957Z",
            "updatedAt" : "2017-11-07T20:06:54.957Z",
            "libraryAccess" : "limited",
            "copiedFromLibrary" : null,
            "copiedFromContentType" : null,
            "contentType" : "normal",
            "productTypes" : {
              "_id" : "5a02125e35fd2f3b4cd1517a",
              "education" : true,
              "recruitment" : true
            },
            "collection" : "commons",
            "protected" : true,
            "requiresUpgrade" : false,
            "defaultLanguage" : null,
            "enforceAllTestsOnPublish" : true,
            "enabledServices" : [],
            "yamlConfig" : null,
            "successMode" : "specs",
            "languages" : [
              {
                "id" : "5a02125e35fd2f3b4cd1517b",
                "name" : "javascript",
                "setup" : "var a = ",
                "exampleTestCases" : "Test.expect(a == 1)",
                "exampleWallTime" : null,
                "testFramework" : "cw-2",
                "languageVersion" : "6.x",
                "languageVersionName" : "Node v6.11.0",
                "challengeReferenceIds" : [],
                "availableTestFrameworks" : [
                  "cw-2",
                  "mocha_bdd",
                  "mocha_tdd",
                  "karma_bdd",
                  "karma_tdd"
                ],
                "totalTestCases" : 1,
                "weightedTestCases" : 1,
                "tagTestCases" : null,
                "hiddenTestCases" : 0,
                "testCases" : "Ou/K1+kpLxxkPBDrgvoGoUaU9CoiSJ8PmoWN56K1s00=\n--8j45XRRJZJsNpH0AHgrwoQ==--u"
              }
            ]
          }
        },
        {
          "id" : "5a02125f35fd2f3b4cd15180",
          "challengeId" : "5a02125e35fd2f3b4cd1517d",
          "required" : 1,
          "position" : 3,
          "disabledLanguages" : [],
          "challenge" : {
            "id" : "5a02125e35fd2f3b4cd1517d",
            "$type" : "CodeChallenge",
            "teamId" : "5a02125e35fd2f3b4cd1513a",
            "createdById" : "5a02125e35fd2f3b4cd15141",
            "copiedFromId" : null,
            "title" : "Utility Puzzle #37",
            "instructions" : "Complete the solution",
            "difficulty" : 1,
            "summary" : null,
            "purpose" : null,
            "topics" : [
              "Meta-programming"
            ],
            "buckets" : null,
            "estimatedTime" : 2,
            "state" : "draft",
            "publishedAt" : null,
            "createdAt" : "2017-11-07T20:06:54.997Z",
            "updatedAt" : "2017-11-07T20:06:54.997Z",
            "libraryAccess" : "limited",
            "copiedFromLibrary" : null,
            "copiedFromContentType" : null,
            "contentType" : "normal",
            "productTypes" : {
              "_id" : "5a02125e35fd2f3b4cd1517e",
              "education" : true,
              "recruitment" : true
            },
            "collection" : "commons",
            "protected" : true,
            "requiresUpgrade" : false,
            "defaultLanguage" : null,
            "enforceAllTestsOnPublish" : true,
            "enabledServices" : [],
            "yamlConfig" : null,
            "successMode" : "specs",
            "languages" : [
              {
                "id" : "5a02125e35fd2f3b4cd1517f",
                "name" : "javascript",
                "setup" : "var a = ",
                "exampleTestCases" : "Test.expect(a == 1)",
                "exampleWallTime" : null,
                "testFramework" : "cw-2",
                "languageVersion" : "6.x",
                "languageVersionName" : "Node v6.11.0",
                "challengeReferenceIds" : [],
                "availableTestFrameworks" : [
                  "cw-2",
                  "mocha_bdd",
                  "mocha_tdd",
                  "karma_bdd",
                  "karma_tdd"
                ],
                "totalTestCases" : 1,
                "weightedTestCases" : 1,
                "tagTestCases" : null,
                "hiddenTestCases" : 0,
                "testCases" : "5ldbbK4j+fEecDqV51rq8E0Tb3ZNAwsLMzNp2Z9G3HY=\n--RiFuao42NylwKQaGBplGTQ==--u"
              }
            ]
          }
        },
        {
          "id" : "5a02125f35fd2f3b4cd15184",
          "challengeId" : "5a02125f35fd2f3b4cd15181",
          "required" : 1,
          "position" : 4,
          "disabledLanguages" : [],
          "challenge" : {
            "id" : "5a02125f35fd2f3b4cd15181",
            "$type" : "CodeChallenge",
            "teamId" : "5a02125e35fd2f3b4cd1513a",
            "createdById" : "5a02125e35fd2f3b4cd15141",
            "copiedFromId" : null,
            "title" : "Super Numbers #38",
            "instructions" : "Complete the solution",
            "difficulty" : 1,
            "summary" : null,
            "purpose" : null,
            "topics" : [
              "Algorithms"
            ],
            "buckets" : null,
            "estimatedTime" : 2,
            "state" : "draft",
            "publishedAt" : null,
            "createdAt" : "2017-11-07T20:06:55.022Z",
            "updatedAt" : "2017-11-07T20:06:55.022Z",
            "libraryAccess" : "limited",
            "copiedFromLibrary" : null,
            "copiedFromContentType" : null,
            "contentType" : "normal",
            "productTypes" : {
              "_id" : "5a02125f35fd2f3b4cd15182",
              "education" : true,
              "recruitment" : true
            },
            "collection" : "commons",
            "protected" : true,
            "requiresUpgrade" : false,
            "defaultLanguage" : null,
            "enforceAllTestsOnPublish" : true,
            "enabledServices" : [],
            "yamlConfig" : null,
            "successMode" : "specs",
            "languages" : [
              {
                "id" : "5a02125f35fd2f3b4cd15183",
                "name" : "javascript",
                "setup" : "var a = ",
                "exampleTestCases" : "Test.expect(a == 1)",
                "exampleWallTime" : null,
                "testFramework" : "cw-2",
                "languageVersion" : "6.x",
                "languageVersionName" : "Node v6.11.0",
                "challengeReferenceIds" : [],
                "availableTestFrameworks" : [
                  "cw-2",
                  "mocha_bdd",
                  "mocha_tdd",
                  "karma_bdd",
                  "karma_tdd"
                ],
                "totalTestCases" : 1,
                "weightedTestCases" : 1,
                "tagTestCases" : null,
                "hiddenTestCases" : 0,
                "testCases" : "5sZA5IRpjJFIhrdE90IPjKDuGRYaXh6yKGn6v7H6Mgg=\n--0eAeEqilQkkzgXhaMdN7zg==--u"
              }
            ]
          }
        },
        {
          "id" : "5a02125f35fd2f3b4cd15188",
          "challengeId" : "5a02125f35fd2f3b4cd15185",
          "required" : 1,
          "position" : 5,
          "disabledLanguages" : [],
          "challenge" : {
            "id" : "5a02125f35fd2f3b4cd15185",
            "$type" : "CodeChallenge",
            "teamId" : "5a02125e35fd2f3b4cd1513a",
            "createdById" : "5a02125e35fd2f3b4cd15141",
            "copiedFromId" : null,
            "title" : "Actor Generator #39",
            "instructions" : "Complete the solution",
            "difficulty" : 1,
            "summary" : null,
            "purpose" : null,
            "topics" : [
              "Logic"
            ],
            "buckets" : null,
            "estimatedTime" : 2,
            "state" : "draft",
            "publishedAt" : null,
            "createdAt" : "2017-11-07T20:06:55.040Z",
            "updatedAt" : "2017-11-07T20:06:55.040Z",
            "libraryAccess" : "limited",
            "copiedFromLibrary" : null,
            "copiedFromContentType" : null,
            "contentType" : "normal",
            "productTypes" : {
              "_id" : "5a02125f35fd2f3b4cd15186",
              "education" : true,
              "recruitment" : true
            },
            "collection" : "commons",
            "protected" : true,
            "requiresUpgrade" : false,
            "defaultLanguage" : null,
            "enforceAllTestsOnPublish" : true,
            "enabledServices" : [],
            "yamlConfig" : null,
            "successMode" : "specs",
            "languages" : [
              {
                "id" : "5a02125f35fd2f3b4cd15187",
                "name" : "javascript",
                "setup" : "var a = ",
                "exampleTestCases" : "Test.expect(a == 1)",
                "exampleWallTime" : null,
                "testFramework" : "cw-2",
                "languageVersion" : "6.x",
                "languageVersionName" : "Node v6.11.0",
                "challengeReferenceIds" : [],
                "availableTestFrameworks" : [
                  "cw-2",
                  "mocha_bdd",
                  "mocha_tdd",
                  "karma_bdd",
                  "karma_tdd"
                ],
                "totalTestCases" : 1,
                "weightedTestCases" : 1,
                "tagTestCases" : null,
                "hiddenTestCases" : 0,
                "testCases" : "q2l0OAtLDbx2i1k7NJsYaQEP/BZgEyZRcKcVBW2PsZY=\n--zV9qDFMr1dE8rgr3d+qapQ==--u"
              }
            ]
          }
        },
        {
          "id" : "5a02125f35fd2f3b4cd1518c",
          "challengeId" : "5a02125f35fd2f3b4cd15189",
          "required" : 1,
          "position" : 6,
          "disabledLanguages" : [],
          "challenge" : {
            "id" : "5a02125f35fd2f3b4cd15189",
            "$type" : "CodeChallenge",
            "teamId" : "5a02125e35fd2f3b4cd1513a",
            "createdById" : "5a02125e35fd2f3b4cd15141",
            "copiedFromId" : null,
            "title" : "Balanced Monad #40",
            "instructions" : "Complete the solution",
            "difficulty" : 1,
            "summary" : null,
            "purpose" : null,
            "topics" : [
              "Fundamentals"
            ],
            "buckets" : null,
            "estimatedTime" : 2,
            "state" : "draft",
            "publishedAt" : null,
            "createdAt" : "2017-11-07T20:06:55.055Z",
            "updatedAt" : "2017-11-07T20:06:55.055Z",
            "libraryAccess" : "limited",
            "copiedFromLibrary" : null,
            "copiedFromContentType" : null,
            "contentType" : "normal",
            "productTypes" : {
              "_id" : "5a02125f35fd2f3b4cd1518a",
              "education" : true,
              "recruitment" : true
            },
            "collection" : "commons",
            "protected" : true,
            "requiresUpgrade" : false,
            "defaultLanguage" : null,
            "enforceAllTestsOnPublish" : true,
            "enabledServices" : [],
            "yamlConfig" : null,
            "successMode" : "specs",
            "languages" : [
              {
                "id" : "5a02125f35fd2f3b4cd1518b",
                "name" : "javascript",
                "setup" : "var a = ",
                "exampleTestCases" : "Test.expect(a == 1)",
                "exampleWallTime" : null,
                "testFramework" : "cw-2",
                "languageVersion" : "6.x",
                "languageVersionName" : "Node v6.11.0",
                "challengeReferenceIds" : [],
                "availableTestFrameworks" : [
                  "cw-2",
                  "mocha_bdd",
                  "mocha_tdd",
                  "karma_bdd",
                  "karma_tdd"
                ],
                "totalTestCases" : 1,
                "weightedTestCases" : 1,
                "tagTestCases" : null,
                "hiddenTestCases" : 0,
                "testCases" : "mO1Ocytw1cnaxJYAoYMYNMRhhrJPvID0U3D0fS9OMZ8=\n--vcw3Tqiq+DtoXhpyEp7uCg==--u"
              }
            ]
          }
        }
      ],
      "purpose" : "Pariatur repudiandae corrupti doloribus sit. Aut dolor quas dolores sit tenetur quia et. Blanditiis repellat quam illo. Libero ratione odit repellat quae earum itaque eligendi.",
      "demoLandingOrder" : 1000
    },
    {
      "id" : "5a02125f35fd2f3b4cd1518d",
      "title" : "Mid-Level Django Engineer #29",
      "state" : "published",
      "defaultLanguage" : null,
      "defaultInviteMessage" : null,
      "teamId" : "5a02125e35fd2f3b4cd1513a",
      "inviteOnly" : false,
      "softDeletedAt" : null,
      "enforcedTimeLimit" : null,
      "copiedFromId" : null,
      "isTemplate" : true,
      "isPractice" : false,
      "isDemo" : false,
      "galleryImage" : null,
      "summary" : "Ducimus optio libero tenetur quam nobis fuga in. Rerum atque quaerat aspernatur ex autem fugit. Consequatur deleniti et sint sunt. Voluptates veniam atque. Ex vel veniam voluptatem.",
      "challengeItems" : [
        {
          "id" : "5a02125f35fd2f3b4cd15191",
          "challengeId" : "5a02125f35fd2f3b4cd1518e",
          "required" : 1,
          "position" : 1,
          "disabledLanguages" : [],
          "challenge" : {
            "id" : "5a02125f35fd2f3b4cd1518e",
            "$type" : "CodeChallenge",
            "teamId" : "5a02125e35fd2f3b4cd1513a",
            "createdById" : "5a02125e35fd2f3b4cd15141",
            "copiedFromId" : null,
            "title" : "Node Parser #41",
            "instructions" : "Complete the solution",
            "difficulty" : 1,
            "summary" : null,
            "purpose" : null,
            "topics" : [
              "Logic"
            ],
            "buckets" : null,
            "estimatedTime" : 2,
            "state" : "draft",
            "publishedAt" : null,
            "createdAt" : "2017-11-07T20:06:55.078Z",
            "updatedAt" : "2017-11-07T20:06:55.078Z",
            "libraryAccess" : "limited",
            "copiedFromLibrary" : null,
            "copiedFromContentType" : null,
            "contentType" : "normal",
            "productTypes" : {
              "_id" : "5a02125f35fd2f3b4cd1518f",
              "education" : true,
              "recruitment" : true
            },
            "collection" : "commons",
            "protected" : true,
            "requiresUpgrade" : false,
            "defaultLanguage" : null,
            "enforceAllTestsOnPublish" : true,
            "enabledServices" : [],
            "yamlConfig" : null,
            "successMode" : "specs",
            "languages" : [
              {
                "id" : "5a02125f35fd2f3b4cd15190",
                "name" : "javascript",
                "setup" : "var a = ",
                "exampleTestCases" : "Test.expect(a == 1)",
                "exampleWallTime" : null,
                "testFramework" : "cw-2",
                "languageVersion" : "6.x",
                "languageVersionName" : "Node v6.11.0",
                "challengeReferenceIds" : [],
                "availableTestFrameworks" : [
                  "cw-2",
                  "mocha_bdd",
                  "mocha_tdd",
                  "karma_bdd",
                  "karma_tdd"
                ],
                "totalTestCases" : 1,
                "weightedTestCases" : 1,
                "tagTestCases" : null,
                "hiddenTestCases" : 0,
                "testCases" : "EHE39ltLDahcMFok9ehY39rI93Uw+Wk4qk6Yo+QJ/Eo=\n--U6GDT/Ap/ERxqfm2iGJN2Q==--u"
              }
            ]
          }
        },
        {
          "id" : "5a02125f35fd2f3b4cd15195",
          "challengeId" : "5a02125f35fd2f3b4cd15192",
          "required" : 1,
          "position" : 2,
          "disabledLanguages" : [],
          "challenge" : {
            "id" : "5a02125f35fd2f3b4cd15192",
            "$type" : "CodeChallenge",
            "teamId" : "5a02125e35fd2f3b4cd1513a",
            "createdById" : "5a02125e35fd2f3b4cd15141",
            "copiedFromId" : null,
            "title" : "Small Events #42",
            "instructions" : "Complete the solution",
            "difficulty" : 1,
            "summary" : null,
            "purpose" : null,
            "topics" : [
              "Algorithms"
            ],
            "buckets" : null,
            "estimatedTime" : 2,
            "state" : "draft",
            "publishedAt" : null,
            "createdAt" : "2017-11-07T20:06:55.126Z",
            "updatedAt" : "2017-11-07T20:06:55.126Z",
            "libraryAccess" : "limited",
            "copiedFromLibrary" : null,
            "copiedFromContentType" : null,
            "contentType" : "normal",
            "productTypes" : {
              "_id" : "5a02125f35fd2f3b4cd15193",
              "education" : true,
              "recruitment" : true
            },
            "collection" : "commons",
            "protected" : true,
            "requiresUpgrade" : false,
            "defaultLanguage" : null,
            "enforceAllTestsOnPublish" : true,
            "enabledServices" : [],
            "yamlConfig" : null,
            "successMode" : "specs",
            "languages" : [
              {
                "id" : "5a02125f35fd2f3b4cd15194",
                "name" : "javascript",
                "setup" : "var a = ",
                "exampleTestCases" : "Test.expect(a == 1)",
                "exampleWallTime" : null,
                "testFramework" : "cw-2",
                "languageVersion" : "6.x",
                "languageVersionName" : "Node v6.11.0",
                "challengeReferenceIds" : [],
                "availableTestFrameworks" : [
                  "cw-2",
                  "mocha_bdd",
                  "mocha_tdd",
                  "karma_bdd",
                  "karma_tdd"
                ],
                "totalTestCases" : 1,
                "weightedTestCases" : 1,
                "tagTestCases" : null,
                "hiddenTestCases" : 0,
                "testCases" : "BJsp6dqtCVG7OLlN9rgIoRSyONmeeQg1vBHtCLAO2bU=\n--qL/y0+HTT/LliBtX7UKZQw==--u"
              }
            ]
          }
        },
        {
          "id" : "5a02125f35fd2f3b4cd15199",
          "challengeId" : "5a02125f35fd2f3b4cd15196",
          "required" : 1,
          "position" : 3,
          "disabledLanguages" : [],
          "challenge" : {
            "id" : "5a02125f35fd2f3b4cd15196",
            "$type" : "CodeChallenge",
            "teamId" : "5a02125e35fd2f3b4cd1513a",
            "createdById" : "5a02125e35fd2f3b4cd15141",
            "copiedFromId" : null,
            "title" : "Small Process #43",
            "instructions" : "Complete the solution",
            "difficulty" : 1,
            "summary" : null,
            "purpose" : null,
            "topics" : [
              "Fundamentals"
            ],
            "buckets" : null,
            "estimatedTime" : 2,
            "state" : "draft",
            "publishedAt" : null,
            "createdAt" : "2017-11-07T20:06:55.143Z",
            "updatedAt" : "2017-11-07T20:06:55.143Z",
            "libraryAccess" : "limited",
            "copiedFromLibrary" : null,
            "copiedFromContentType" : null,
            "contentType" : "normal",
            "productTypes" : {
              "_id" : "5a02125f35fd2f3b4cd15197",
              "education" : true,
              "recruitment" : true
            },
            "collection" : "commons",
            "protected" : true,
            "requiresUpgrade" : false,
            "defaultLanguage" : null,
            "enforceAllTestsOnPublish" : true,
            "enabledServices" : [],
            "yamlConfig" : null,
            "successMode" : "specs",
            "languages" : [
              {
                "id" : "5a02125f35fd2f3b4cd15198",
                "name" : "javascript",
                "setup" : "var a = ",
                "exampleTestCases" : "Test.expect(a == 1)",
                "exampleWallTime" : null,
                "testFramework" : "cw-2",
                "languageVersion" : "6.x",
                "languageVersionName" : "Node v6.11.0",
                "challengeReferenceIds" : [],
                "availableTestFrameworks" : [
                  "cw-2",
                  "mocha_bdd",
                  "mocha_tdd",
                  "karma_bdd",
                  "karma_tdd"
                ],
                "totalTestCases" : 1,
                "weightedTestCases" : 1,
                "tagTestCases" : null,
                "hiddenTestCases" : 0,
                "testCases" : "ae0vL4PNTaWN9iuGbpVCbabk3NOLRrtAUbrpJULbkwI=\n--qjgpZptyQZrh9+VsagqO7w==--u"
              }
            ]
          }
        },
        {
          "id" : "5a02125f35fd2f3b4cd1519d",
          "challengeId" : "5a02125f35fd2f3b4cd1519a",
          "required" : 1,
          "position" : 4,
          "disabledLanguages" : [],
          "challenge" : {
            "id" : "5a02125f35fd2f3b4cd1519a",
            "$type" : "CodeChallenge",
            "teamId" : "5a02125e35fd2f3b4cd1513a",
            "createdById" : "5a02125e35fd2f3b4cd15141",
            "copiedFromId" : null,
            "title" : "Large Class #44",
            "instructions" : "Complete the solution",
            "difficulty" : 1,
            "summary" : null,
            "purpose" : null,
            "topics" : [
              "Fundamentals"
            ],
            "buckets" : null,
            "estimatedTime" : 2,
            "state" : "draft",
            "publishedAt" : null,
            "createdAt" : "2017-11-07T20:06:55.158Z",
            "updatedAt" : "2017-11-07T20:06:55.158Z",
            "libraryAccess" : "limited",
            "copiedFromLibrary" : null,
            "copiedFromContentType" : null,
            "contentType" : "normal",
            "productTypes" : {
              "_id" : "5a02125f35fd2f3b4cd1519b",
              "education" : true,
              "recruitment" : true
            },
            "collection" : "commons",
            "protected" : true,
            "requiresUpgrade" : false,
            "defaultLanguage" : null,
            "enforceAllTestsOnPublish" : true,
            "enabledServices" : [],
            "yamlConfig" : null,
            "successMode" : "specs",
            "languages" : [
              {
                "id" : "5a02125f35fd2f3b4cd1519c",
                "name" : "javascript",
                "setup" : "var a = ",
                "exampleTestCases" : "Test.expect(a == 1)",
                "exampleWallTime" : null,
                "testFramework" : "cw-2",
                "languageVersion" : "6.x",
                "languageVersionName" : "Node v6.11.0",
                "challengeReferenceIds" : [],
                "availableTestFrameworks" : [
                  "cw-2",
                  "mocha_bdd",
                  "mocha_tdd",
                  "karma_bdd",
                  "karma_tdd"
                ],
                "totalTestCases" : 1,
                "weightedTestCases" : 1,
                "tagTestCases" : null,
                "hiddenTestCases" : 0,
                "testCases" : "CEAaTI9l8UwXVc/gY3f91Gnp4PJAAhBouwHNjupzGMQ=\n--Q9ZsZXdfF9gvyDSp6VZjpQ==--u"
              }
            ]
          }
        },
        {
          "id" : "5a02125f35fd2f3b4cd151a1",
          "challengeId" : "5a02125f35fd2f3b4cd1519e",
          "required" : 1,
          "position" : 5,
          "disabledLanguages" : [],
          "challenge" : {
            "id" : "5a02125f35fd2f3b4cd1519e",
            "$type" : "CodeChallenge",
            "teamId" : "5a02125e35fd2f3b4cd1513a",
            "createdById" : "5a02125e35fd2f3b4cd15141",
            "copiedFromId" : null,
            "title" : "Heavy Sorting #45",
            "instructions" : "Complete the solution",
            "difficulty" : 1,
            "summary" : null,
            "purpose" : null,
            "topics" : [
              "Fundamentals"
            ],
            "buckets" : null,
            "estimatedTime" : 2,
            "state" : "draft",
            "publishedAt" : null,
            "createdAt" : "2017-11-07T20:06:55.173Z",
            "updatedAt" : "2017-11-07T20:06:55.173Z",
            "libraryAccess" : "limited",
            "copiedFromLibrary" : null,
            "copiedFromContentType" : null,
            "contentType" : "normal",
            "productTypes" : {
              "_id" : "5a02125f35fd2f3b4cd1519f",
              "education" : true,
              "recruitment" : true
            },
            "collection" : "commons",
            "protected" : true,
            "requiresUpgrade" : false,
            "defaultLanguage" : null,
            "enforceAllTestsOnPublish" : true,
            "enabledServices" : [],
            "yamlConfig" : null,
            "successMode" : "specs",
            "languages" : [
              {
                "id" : "5a02125f35fd2f3b4cd151a0",
                "name" : "javascript",
                "setup" : "var a = ",
                "exampleTestCases" : "Test.expect(a == 1)",
                "exampleWallTime" : null,
                "testFramework" : "cw-2",
                "languageVersion" : "6.x",
                "languageVersionName" : "Node v6.11.0",
                "challengeReferenceIds" : [],
                "availableTestFrameworks" : [
                  "cw-2",
                  "mocha_bdd",
                  "mocha_tdd",
                  "karma_bdd",
                  "karma_tdd"
                ],
                "totalTestCases" : 1,
                "weightedTestCases" : 1,
                "tagTestCases" : null,
                "hiddenTestCases" : 0,
                "testCases" : "HR7z0UU8AIeJTDcJEyTkmHwi94nQQQ7k8YXnQl0zhDQ=\n--8q1OHAdyzLqYEdJ5ArGoKw==--u"
              }
            ]
          }
        },
        {
          "id" : "5a02125f35fd2f3b4cd151a5",
          "challengeId" : "5a02125f35fd2f3b4cd151a2",
          "required" : 1,
          "position" : 6,
          "disabledLanguages" : [],
          "challenge" : {
            "id" : "5a02125f35fd2f3b4cd151a2",
            "$type" : "CodeChallenge",
            "teamId" : "5a02125e35fd2f3b4cd1513a",
            "createdById" : "5a02125e35fd2f3b4cd15141",
            "copiedFromId" : null,
            "title" : "Magic Items #46",
            "instructions" : "Complete the solution",
            "difficulty" : 1,
            "summary" : null,
            "purpose" : null,
            "topics" : [
              "Algorithms"
            ],
            "buckets" : null,
            "estimatedTime" : 2,
            "state" : "draft",
            "publishedAt" : null,
            "createdAt" : "2017-11-07T20:06:55.192Z",
            "updatedAt" : "2017-11-07T20:06:55.192Z",
            "libraryAccess" : "limited",
            "copiedFromLibrary" : null,
            "copiedFromContentType" : null,
            "contentType" : "normal",
            "productTypes" : {
              "_id" : "5a02125f35fd2f3b4cd151a3",
              "education" : true,
              "recruitment" : true
            },
            "collection" : "commons",
            "protected" : true,
            "requiresUpgrade" : false,
            "defaultLanguage" : null,
            "enforceAllTestsOnPublish" : true,
            "enabledServices" : [],
            "yamlConfig" : null,
            "successMode" : "specs",
            "languages" : [
              {
                "id" : "5a02125f35fd2f3b4cd151a4",
                "name" : "javascript",
                "setup" : "var a = ",
                "exampleTestCases" : "Test.expect(a == 1)",
                "exampleWallTime" : null,
                "testFramework" : "cw-2",
                "languageVersion" : "6.x",
                "languageVersionName" : "Node v6.11.0",
                "challengeReferenceIds" : [],
                "availableTestFrameworks" : [
                  "cw-2",
                  "mocha_bdd",
                  "mocha_tdd",
                  "karma_bdd",
                  "karma_tdd"
                ],
                "totalTestCases" : 1,
                "weightedTestCases" : 1,
                "tagTestCases" : null,
                "hiddenTestCases" : 0,
                "testCases" : "NRRnc/UfvcOnlNFnv9E0GauBCD359lxTsHvxTg8feqg=\n--bA6E2z2mu3v5kEPBgYGfhA==--u"
              }
            ]
          }
        }
      ],
      "purpose" : "Explicabo aut ipsa commodi. Sit quaerat perferendis nostrum rem. Necessitatibus molestiae qui. Id omnis enim aut.",
      "demoLandingOrder" : 1000
    },
    {
      "id" : "5a02125f35fd2f3b4cd151a6",
      "title" : "Junior Full-Stack Developer #30",
      "state" : "published",
      "defaultLanguage" : null,
      "defaultInviteMessage" : null,
      "teamId" : "5a02125e35fd2f3b4cd1513a",
      "inviteOnly" : false,
      "softDeletedAt" : null,
      "enforcedTimeLimit" : null,
      "copiedFromId" : null,
      "isTemplate" : true,
      "isPractice" : false,
      "isDemo" : false,
      "galleryImage" : null,
      "summary" : "Ipsum voluptates sint modi. Corrupti ad nihil soluta ut accusamus consequuntur deserunt. Est dolores aspernatur vero in error.",
      "challengeItems" : [
        {
          "id" : "5a02125f35fd2f3b4cd151aa",
          "challengeId" : "5a02125f35fd2f3b4cd151a7",
          "required" : 1,
          "position" : 1,
          "disabledLanguages" : [],
          "challenge" : {
            "id" : "5a02125f35fd2f3b4cd151a7",
            "$type" : "CodeChallenge",
            "teamId" : "5a02125e35fd2f3b4cd1513a",
            "createdById" : "5a02125e35fd2f3b4cd15141",
            "copiedFromId" : null,
            "title" : "Fibonacci Numbers #47",
            "instructions" : "Complete the solution",
            "difficulty" : 1,
            "summary" : null,
            "purpose" : null,
            "topics" : [
              "Meta-programming"
            ],
            "buckets" : null,
            "estimatedTime" : 2,
            "state" : "draft",
            "publishedAt" : null,
            "createdAt" : "2017-11-07T20:06:55.217Z",
            "updatedAt" : "2017-11-07T20:06:55.217Z",
            "libraryAccess" : "limited",
            "copiedFromLibrary" : null,
            "copiedFromContentType" : null,
            "contentType" : "normal",
            "productTypes" : {
              "_id" : "5a02125f35fd2f3b4cd151a8",
              "education" : true,
              "recruitment" : true
            },
            "collection" : "commons",
            "protected" : true,
            "requiresUpgrade" : false,
            "defaultLanguage" : null,
            "enforceAllTestsOnPublish" : true,
            "enabledServices" : [],
            "yamlConfig" : null,
            "successMode" : "specs",
            "languages" : [
              {
                "id" : "5a02125f35fd2f3b4cd151a9",
                "name" : "javascript",
                "setup" : "var a = ",
                "exampleTestCases" : "Test.expect(a == 1)",
                "exampleWallTime" : null,
                "testFramework" : "cw-2",
                "languageVersion" : "6.x",
                "languageVersionName" : "Node v6.11.0",
                "challengeReferenceIds" : [],
                "availableTestFrameworks" : [
                  "cw-2",
                  "mocha_bdd",
                  "mocha_tdd",
                  "karma_bdd",
                  "karma_tdd"
                ],
                "totalTestCases" : 1,
                "weightedTestCases" : 1,
                "tagTestCases" : null,
                "hiddenTestCases" : 0,
                "testCases" : "LWaQ0IJE52aWyGmeHJXOAhTovl6RJLvturUYVsHVI2I=\n--1j8BkWbl1r+8GSOXsjNgrA==--u"
              }
            ]
          }
        },
        {
          "id" : "5a02125f35fd2f3b4cd151ae",
          "challengeId" : "5a02125f35fd2f3b4cd151ab",
          "required" : 1,
          "position" : 2,
          "disabledLanguages" : [],
          "challenge" : {
            "id" : "5a02125f35fd2f3b4cd151ab",
            "$type" : "CodeChallenge",
            "teamId" : "5a02125e35fd2f3b4cd1513a",
            "createdById" : "5a02125e35fd2f3b4cd15141",
            "copiedFromId" : null,
            "title" : "Node Substring #48",
            "instructions" : "Complete the solution",
            "difficulty" : 1,
            "summary" : null,
            "purpose" : null,
            "topics" : [
              "Fundamentals"
            ],
            "buckets" : null,
            "estimatedTime" : 2,
            "state" : "draft",
            "publishedAt" : null,
            "createdAt" : "2017-11-07T20:06:55.262Z",
            "updatedAt" : "2017-11-07T20:06:55.262Z",
            "libraryAccess" : "limited",
            "copiedFromLibrary" : null,
            "copiedFromContentType" : null,
            "contentType" : "normal",
            "productTypes" : {
              "_id" : "5a02125f35fd2f3b4cd151ac",
              "education" : true,
              "recruitment" : true
            },
            "collection" : "commons",
            "protected" : true,
            "requiresUpgrade" : false,
            "defaultLanguage" : null,
            "enforceAllTestsOnPublish" : true,
            "enabledServices" : [],
            "yamlConfig" : null,
            "successMode" : "specs",
            "languages" : [
              {
                "id" : "5a02125f35fd2f3b4cd151ad",
                "name" : "javascript",
                "setup" : "var a = ",
                "exampleTestCases" : "Test.expect(a == 1)",
                "exampleWallTime" : null,
                "testFramework" : "cw-2",
                "languageVersion" : "6.x",
                "languageVersionName" : "Node v6.11.0",
                "challengeReferenceIds" : [],
                "availableTestFrameworks" : [
                  "cw-2",
                  "mocha_bdd",
                  "mocha_tdd",
                  "karma_bdd",
                  "karma_tdd"
                ],
                "totalTestCases" : 1,
                "weightedTestCases" : 1,
                "tagTestCases" : null,
                "hiddenTestCases" : 0,
                "testCases" : "zw4JWAygK/ilRDuIIZVgiZOazgJIilJylGXq9q2eUVs=\n--OB1HptA00m2qoRd9rd74Hg==--u"
              }
            ]
          }
        },
        {
          "id" : "5a02125f35fd2f3b4cd151b2",
          "challengeId" : "5a02125f35fd2f3b4cd151af",
          "required" : 1,
          "position" : 3,
          "disabledLanguages" : [],
          "challenge" : {
            "id" : "5a02125f35fd2f3b4cd151af",
            "$type" : "CodeChallenge",
            "teamId" : "5a02125e35fd2f3b4cd1513a",
            "createdById" : "5a02125e35fd2f3b4cd15141",
            "copiedFromId" : null,
            "title" : "Super Methods #49",
            "instructions" : "Complete the solution",
            "difficulty" : 1,
            "summary" : null,
            "purpose" : null,
            "topics" : [
              "Algorithms"
            ],
            "buckets" : null,
            "estimatedTime" : 2,
            "state" : "draft",
            "publishedAt" : null,
            "createdAt" : "2017-11-07T20:06:55.278Z",
            "updatedAt" : "2017-11-07T20:06:55.278Z",
            "libraryAccess" : "limited",
            "copiedFromLibrary" : null,
            "copiedFromContentType" : null,
            "contentType" : "normal",
            "productTypes" : {
              "_id" : "5a02125f35fd2f3b4cd151b0",
              "education" : true,
              "recruitment" : true
            },
            "collection" : "commons",
            "protected" : true,
            "requiresUpgrade" : false,
            "defaultLanguage" : null,
            "enforceAllTestsOnPublish" : true,
            "enabledServices" : [],
            "yamlConfig" : null,
            "successMode" : "specs",
            "languages" : [
              {
                "id" : "5a02125f35fd2f3b4cd151b1",
                "name" : "javascript",
                "setup" : "var a = ",
                "exampleTestCases" : "Test.expect(a == 1)",
                "exampleWallTime" : null,
                "testFramework" : "cw-2",
                "languageVersion" : "6.x",
                "languageVersionName" : "Node v6.11.0",
                "challengeReferenceIds" : [],
                "availableTestFrameworks" : [
                  "cw-2",
                  "mocha_bdd",
                  "mocha_tdd",
                  "karma_bdd",
                  "karma_tdd"
                ],
                "totalTestCases" : 1,
                "weightedTestCases" : 1,
                "tagTestCases" : null,
                "hiddenTestCases" : 0,
                "testCases" : "j+VdIG4LK3hdHfKg62mTcdK9ncqrycslMuXYYTofRM8=\n--O9Zm+ht/ghyePLzSHhTeHQ==--u"
              }
            ]
          }
        },
        {
          "id" : "5a02125f35fd2f3b4cd151b6",
          "challengeId" : "5a02125f35fd2f3b4cd151b3",
          "required" : 1,
          "position" : 4,
          "disabledLanguages" : [],
          "challenge" : {
            "id" : "5a02125f35fd2f3b4cd151b3",
            "$type" : "CodeChallenge",
            "teamId" : "5a02125e35fd2f3b4cd1513a",
            "createdById" : "5a02125e35fd2f3b4cd15141",
            "copiedFromId" : null,
            "title" : "Password Objects #50",
            "instructions" : "Complete the solution",
            "difficulty" : 1,
            "summary" : null,
            "purpose" : null,
            "topics" : [
              "Algorithms"
            ],
            "buckets" : null,
            "estimatedTime" : 2,
            "state" : "draft",
            "publishedAt" : null,
            "createdAt" : "2017-11-07T20:06:55.293Z",
            "updatedAt" : "2017-11-07T20:06:55.293Z",
            "libraryAccess" : "limited",
            "copiedFromLibrary" : null,
            "copiedFromContentType" : null,
            "contentType" : "normal",
            "productTypes" : {
              "_id" : "5a02125f35fd2f3b4cd151b4",
              "education" : true,
              "recruitment" : true
            },
            "collection" : "commons",
            "protected" : true,
            "requiresUpgrade" : false,
            "defaultLanguage" : null,
            "enforceAllTestsOnPublish" : true,
            "enabledServices" : [],
            "yamlConfig" : null,
            "successMode" : "specs",
            "languages" : [
              {
                "id" : "5a02125f35fd2f3b4cd151b5",
                "name" : "javascript",
                "setup" : "var a = ",
                "exampleTestCases" : "Test.expect(a == 1)",
                "exampleWallTime" : null,
                "testFramework" : "cw-2",
                "languageVersion" : "6.x",
                "languageVersionName" : "Node v6.11.0",
                "challengeReferenceIds" : [],
                "availableTestFrameworks" : [
                  "cw-2",
                  "mocha_bdd",
                  "mocha_tdd",
                  "karma_bdd",
                  "karma_tdd"
                ],
                "totalTestCases" : 1,
                "weightedTestCases" : 1,
                "tagTestCases" : null,
                "hiddenTestCases" : 0,
                "testCases" : "DgfdWAM/HAU7NuLkJGLXK1SvBwScK5DaX+9Mb4T8svQ=\n--KHdN0YfUfaxHkaT+es1NbA==--u"
              }
            ]
          }
        },
        {
          "id" : "5a02125f35fd2f3b4cd151ba",
          "challengeId" : "5a02125f35fd2f3b4cd151b7",
          "required" : 1,
          "position" : 5,
          "disabledLanguages" : [],
          "challenge" : {
            "id" : "5a02125f35fd2f3b4cd151b7",
            "$type" : "CodeChallenge",
            "teamId" : "5a02125e35fd2f3b4cd1513a",
            "createdById" : "5a02125e35fd2f3b4cd15141",
            "copiedFromId" : null,
            "title" : "Insane Lists #51",
            "instructions" : "Complete the solution",
            "difficulty" : 1,
            "summary" : null,
            "purpose" : null,
            "topics" : [
              "Algorithms"
            ],
            "buckets" : null,
            "estimatedTime" : 2,
            "state" : "draft",
            "publishedAt" : null,
            "createdAt" : "2017-11-07T20:06:55.307Z",
            "updatedAt" : "2017-11-07T20:06:55.307Z",
            "libraryAccess" : "limited",
            "copiedFromLibrary" : null,
            "copiedFromContentType" : null,
            "contentType" : "normal",
            "productTypes" : {
              "_id" : "5a02125f35fd2f3b4cd151b8",
              "education" : true,
              "recruitment" : true
            },
            "collection" : "commons",
            "protected" : true,
            "requiresUpgrade" : false,
            "defaultLanguage" : null,
            "enforceAllTestsOnPublish" : true,
            "enabledServices" : [],
            "yamlConfig" : null,
            "successMode" : "specs",
            "languages" : [
              {
                "id" : "5a02125f35fd2f3b4cd151b9",
                "name" : "javascript",
                "setup" : "var a = ",
                "exampleTestCases" : "Test.expect(a == 1)",
                "exampleWallTime" : null,
                "testFramework" : "cw-2",
                "languageVersion" : "6.x",
                "languageVersionName" : "Node v6.11.0",
                "challengeReferenceIds" : [],
                "availableTestFrameworks" : [
                  "cw-2",
                  "mocha_bdd",
                  "mocha_tdd",
                  "karma_bdd",
                  "karma_tdd"
                ],
                "totalTestCases" : 1,
                "weightedTestCases" : 1,
                "tagTestCases" : null,
                "hiddenTestCases" : 0,
                "testCases" : "cBdhdft2eKGw5gbeP1YhqddiZ46rvfnUmS9dm5IDM4c=\n--2dQY6W2H0tL7vj8jTZyyog==--u"
              }
            ]
          }
        },
        {
          "id" : "5a02125f35fd2f3b4cd151be",
          "challengeId" : "5a02125f35fd2f3b4cd151bb",
          "required" : 1,
          "position" : 6,
          "disabledLanguages" : [],
          "challenge" : {
            "id" : "5a02125f35fd2f3b4cd151bb",
            "$type" : "CodeChallenge",
            "teamId" : "5a02125e35fd2f3b4cd1513a",
            "createdById" : "5a02125e35fd2f3b4cd15141",
            "copiedFromId" : null,
            "title" : "Password Sequence #52",
            "instructions" : "Complete the solution",
            "difficulty" : 1,
            "summary" : null,
            "purpose" : null,
            "topics" : [
              "Meta-programming"
            ],
            "buckets" : null,
            "estimatedTime" : 2,
            "state" : "draft",
            "publishedAt" : null,
            "createdAt" : "2017-11-07T20:06:55.322Z",
            "updatedAt" : "2017-11-07T20:06:55.322Z",
            "libraryAccess" : "limited",
            "copiedFromLibrary" : null,
            "copiedFromContentType" : null,
            "contentType" : "normal",
            "productTypes" : {
              "_id" : "5a02125f35fd2f3b4cd151bc",
              "education" : true,
              "recruitment" : true
            },
            "collection" : "commons",
            "protected" : true,
            "requiresUpgrade" : false,
            "defaultLanguage" : null,
            "enforceAllTestsOnPublish" : true,
            "enabledServices" : [],
            "yamlConfig" : null,
            "successMode" : "specs",
            "languages" : [
              {
                "id" : "5a02125f35fd2f3b4cd151bd",
                "name" : "javascript",
                "setup" : "var a = ",
                "exampleTestCases" : "Test.expect(a == 1)",
                "exampleWallTime" : null,
                "testFramework" : "cw-2",
                "languageVersion" : "6.x",
                "languageVersionName" : "Node v6.11.0",
                "challengeReferenceIds" : [],
                "availableTestFrameworks" : [
                  "cw-2",
                  "mocha_bdd",
                  "mocha_tdd",
                  "karma_bdd",
                  "karma_tdd"
                ],
                "totalTestCases" : 1,
                "weightedTestCases" : 1,
                "tagTestCases" : null,
                "hiddenTestCases" : 0,
                "testCases" : "/5FvPFac/I9X7jbUnC/hA+2yksa4pzL5x9gqhm+Pyoo=\n--5p0vPG5wIouI9lQKLhxNaA==--u"
              }
            ]
          }
        }
      ],
      "purpose" : "Iure nemo neque sunt temporibus velit. Odit laboriosam sit error quia. Quibusdam impedit magnam voluptatibus dolorem. Est iusto ea. Molestias molestiae repudiandae.",
      "demoLandingOrder" : 1000
    }
  ],
  "currentPage" : 1,
  "totalPages" : 1,
  "totalCount" : 5,
  "meta" : {
    "timestamp" : "2017-11-07T12:06:55.861-08:00",
    "includes" : [
      "challenge_items.challenge"
    ]
  }
}

Import

Endpoint

PUT /v1/assessment_templates/:id/import

Parameters

Name Description
id base16 ObjectId

Request

Route

PUT /v1/assessment_templates/5a02126135fd2f3b4cd15280/import

Headers

Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVhMDIxMjYxMzVmZDJmM2I0Y2QxNTMwNSIsImlkIjoiNWEwMjEyNjEzNWZkMmYzYjRjZDE1MzA2Iiwic2VjcmV0IjoiNU1mY01RPT0ifQ.F-SCXRgVEbjpFo1fwRlfGMA0WecdJ5bBgXGguJ95VrY
Content-Type: application/x-www-form-urlencoded

Body

data[title]=Assessment+Title

Response

Simulated Response

Status

200

Headers

Content-Type: application/json; charset=utf-8

Body

{
  "id" : "5a02126235fd2f3b4cd1531a",
  "type" : "Assessment",
  "data" : {
    "id" : "5a02126235fd2f3b4cd1531a",
    "title" : "Assessment Title",
    "state" : "published",
    "defaultLanguage" : null,
    "defaultInviteMessage" : null,
    "teamId" : "5a02126135fd2f3b4cd15300",
    "inviteOnly" : true,
    "softDeletedAt" : null,
    "enforcedTimeLimit" : null,
    "copiedFromId" : "5a02126135fd2f3b4cd15280",
    "isTemplate" : false,
    "isPractice" : false,
    "isDemo" : false,
    "galleryImage" : null,
    "summary" : "Saepe sed eum et praesentium. Officia et expedita debitis ea. Provident soluta modi sint. Expedita eos incidunt eveniet.",
    "challengeItems" : [
      {
        "id" : "5a02126235fd2f3b4cd1532d",
        "challengeId" : "5a02126235fd2f3b4cd1531c",
        "required" : 1,
        "position" : 1,
        "disabledLanguages" : []
      },
      {
        "id" : "5a02126235fd2f3b4cd1532e",
        "challengeId" : "5a02126235fd2f3b4cd1531f",
        "required" : 1,
        "position" : 2,
        "disabledLanguages" : []
      },
      {
        "id" : "5a02126235fd2f3b4cd1532f",
        "challengeId" : "5a02126235fd2f3b4cd15322",
        "required" : 1,
        "position" : 3,
        "disabledLanguages" : []
      },
      {
        "id" : "5a02126235fd2f3b4cd15330",
        "challengeId" : "5a02126235fd2f3b4cd15325",
        "required" : 1,
        "position" : 4,
        "disabledLanguages" : []
      },
      {
        "id" : "5a02126235fd2f3b4cd15331",
        "challengeId" : "5a02126235fd2f3b4cd15328",
        "required" : 1,
        "position" : 5,
        "disabledLanguages" : []
      },
      {
        "id" : "5a02126235fd2f3b4cd15332",
        "challengeId" : "5a02126235fd2f3b4cd1532b",
        "required" : 1,
        "position" : 6,
        "disabledLanguages" : []
      }
    ],
    "purpose" : "Cumque doloribus est ut qui. Ducimus ipsum cumque reiciendis. Delectus necessitatibus illum accusantium molestias dolor. Non fuga pariatur voluptas enim.",
    "demoLandingOrder" : 1000,
    "publishedAt" : "2017-11-07T20:06:58.311Z",
    "archivedAt" : null,
    "createdAt" : "2017-11-07T20:06:58.308Z",
    "assessmentResultsSummary" : {
      "_id" : "5a02126235fd2f3b4cd15334"
    },
    "buckets" : null,
    "assignmentTeamMemberIds" : [],
    "redirectUrl" : null,
    "webhookUrl" : null,
    "submissionMessage" : null,
    "assignmentBuckets" : null,
    "assignmentRole" : null,
    "workflowPaths" : []
  },
  "meta" : {
    "enums" : {
      "assignmentRole" : [
        {
          "value" : "owner",
          "text" : "Owner"
        },
        {
          "value" : "inviter",
          "text" : "Inviter"
        },
        {
          "value" : "reviewer",
          "text" : "Reviewer"
        },
        {
          "value" : "blind_reviewer",
          "text" : "Blind reviewer"
        },
        {
          "value" : "any",
          "text" : "Any"
        }
      ],
      "assignmentRoleSchedule" : [
        {
          "value" : "random",
          "text" : "Random"
        }
      ],
      "defaultLanguage" : [
        {
          "value" : "coffeescript",
          "text" : "CoffeeScript"
        },
        {
          "value" : "javascript",
          "text" : "JavaScript"
        },
        {
          "value" : "python",
          "text" : "Python"
        },
        {
          "value" : "ruby",
          "text" : "Ruby"
        },
        {
          "value" : "clojure",
          "text" : "Clojure"
        },
        {
          "value" : "haskell",
          "text" : "Haskell"
        },
        {
          "value" : "csharp",
          "text" : "C#"
        },
        {
          "value" : "solidity",
          "text" : "Solidity"
        },
        {
          "value" : "java",
          "text" : "Java"
        },
        {
          "value" : "elixir",
          "text" : "Elixir"
        },
        {
          "value" : "typescript",
          "text" : "TypeScript"
        },
        {
          "value" : "cpp",
          "text" : "C++"
        },
        {
          "value" : "php",
          "text" : "PHP"
        },
        {
          "value" : "sql",
          "text" : "SQL"
        },
        {
          "value" : "swift",
          "text" : "Swift"
        },
        {
          "value" : "shell",
          "text" : "Shell"
        },
        {
          "value" : "fsharp",
          "text" : "F#"
        },
        {
          "value" : "ocaml",
          "text" : "OCaml"
        },
        {
          "value" : "erlang",
          "text" : "Erlang"
        },
        {
          "value" : "objc",
          "text" : "Objective-C"
        },
        {
          "value" : "c",
          "text" : "C"
        },
        {
          "value" : "go",
          "text" : "Go"
        }
      ],
      "state" : [
        {
          "value" : "draft",
          "text" : "Draft"
        },
        {
          "value" : "published",
          "text" : "Published"
        },
        {
          "value" : "archived",
          "text" : "Archived"
        }
      ],
      "workflowPaths" : {
        "assignmentRole" : [
          {
            "value" : "owner",
            "text" : "Owner"
          },
          {
            "value" : "inviter",
            "text" : "Inviter"
          },
          {
            "value" : "reviewer",
            "text" : "Reviewer"
          },
          {
            "value" : "blind_reviewer",
            "text" : "Blind reviewer"
          },
          {
            "value" : "any",
            "text" : "Any"
          }
        ],
        "assignmentRoleSchedule" : [
          {
            "value" : "random",
            "text" : "Random"
          }
        ],
        "assignmentTeamCandidateState" : [
          {
            "value" : "approved",
            "text" : "Approved"
          },
          {
            "value" : "rejected",
            "text" : "Rejected"
          },
          {
            "value" : "archived",
            "text" : "Archived"
          }
        ],
        "timeType" : [
          {
            "value" : "total",
            "text" : "Total"
          },
          {
            "value" : "accumulated",
            "text" : "Accumulated"
          }
        ],
        "conditionsOp" : [
          {
            "value" : "and",
            "text" : "And"
          },
          {
            "value" : "or",
            "text" : "Or"
          }
        ]
      }
    },
    "timestamp" : "2017-11-07T12:06:58.337-08:00",
    "includes" : []
  }
}

Assessments

List

Endpoint

GET /v1/assessments

Parameters

Name Description
includes Valid values are: team, created_by, assessment_results, challenge
order_by ie: "title DESC"
page Default = 1

Request

Route

GET /v1/assessments

Headers

Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVhMDIxMjYzMzVmZDJmM2I0Y2QxNTM5OSIsImlkIjoiNWEwMjEyNjMzNWZkMmYzYjRjZDE1MzlhIiwic2VjcmV0IjoiZDJOcFd3PT0ifQ.b3KxppKDkHTH8t2bp8tSG9UhhnJBrb7qa6htRSMDjYo

Response

Simulated Response

Status

200

Headers

Content-Type: application/json; charset=utf-8

Body

{
  "type" : "Assessment",
  "data" : [
    {
      "id" : "5a02126235fd2f3b4cd1537c",
      "title" : "Mid-Level JavaScript Developer #46",
      "state" : "published",
      "defaultLanguage" : null,
      "defaultInviteMessage" : null,
      "teamId" : "5a02126235fd2f3b4cd15377",
      "inviteOnly" : false,
      "softDeletedAt" : null,
      "enforcedTimeLimit" : null,
      "copiedFromId" : null,
      "isTemplate" : false,
      "isPractice" : false,
      "isDemo" : false,
      "galleryImage" : null,
      "summary" : "Labore voluptatem doloremque est et vitae possimus. Repellat sed accusantium blanditiis inventore recusandae. Iusto quis et omnis.",
      "challengeItems" : [
        {
          "id" : "5a02126235fd2f3b4cd15383",
          "challengeId" : "5a02126235fd2f3b4cd15380",
          "required" : 1,
          "position" : 1,
          "disabledLanguages" : []
        },
        {
          "id" : "5a02126235fd2f3b4cd15387",
          "challengeId" : "5a02126235fd2f3b4cd15384",
          "required" : 1,
          "position" : 2,
          "disabledLanguages" : []
        }
      ],
      "purpose" : "Est aliquam vero. Nostrum ducimus aut mollitia illum voluptatem officiis reiciendis. Sapiente alias est magni quos veritatis modi. Eius molestiae recusandae commodi quia. Ea debitis cumque qui adipisci architecto.",
      "demoLandingOrder" : 1000,
      "publishedAt" : "2017-11-07T20:06:58.935Z",
      "archivedAt" : null,
      "createdAt" : "2017-11-07T20:06:58.955Z",
      "assessmentResultsSummary" : {
        "_id" : "5a02126335fd2f3b4cd1538e",
        "all" : 2,
        "started" : 2
      },
      "buckets" : null,
      "assignmentTeamMemberIds" : [],
      "redirectUrl" : null,
      "webhookUrl" : null,
      "submissionMessage" : null,
      "assignmentBuckets" : null,
      "assignmentRole" : null,
      "workflowPaths" : []
    }
  ],
  "currentPage" : 1,
  "totalPages" : 1,
  "totalCount" : 1,
  "meta" : {
    "timestamp" : "2017-11-07T12:06:59.166-08:00",
    "includes" : []
  }
}

Get

Returns assessment for both authenticated and unauthenticated users. Only admins and team members can see unpublished assessments.

Endpoint

GET /v1/assessments/:id

Parameters

Name Description
id base16 ObjectId
includes Valid values are: team, challenge, created_by

Request

Route

GET /v1/assessments/5a02126335fd2f3b4cd153a1

Headers

Response

Simulated Response

Status

200

Headers

Content-Type: application/json; charset=utf-8

Body

{
  "id" : "5a02126335fd2f3b4cd153a1",
  "type" : "Assessment",
  "data" : {
    "id" : "5a02126335fd2f3b4cd153a1",
    "title" : "Senior Full-Stack Developer #47",
    "state" : "published",
    "defaultLanguage" : null,
    "defaultInviteMessage" : null,
    "teamId" : "5a02126335fd2f3b4cd1539c",
    "inviteOnly" : false,
    "softDeletedAt" : null,
    "enforcedTimeLimit" : null,
    "copiedFromId" : null,
    "isTemplate" : false,
    "isPractice" : false,
    "isDemo" : false,
    "galleryImage" : null,
    "summary" : "Quidem consequatur rerum nulla sint. Quae aliquid provident dolorum. Voluptatibus voluptatum sunt. Rem nihil voluptas unde nisi vel. Labore perspiciatis aut quae nisi repellat inventore pariatur.",
    "challengeItems" : [
      {
        "id" : "5a02126335fd2f3b4cd153a8",
        "challengeId" : "5a02126335fd2f3b4cd153a5",
        "required" : 1,
        "position" : 1,
        "disabledLanguages" : []
      },
      {
        "id" : "5a02126335fd2f3b4cd153ac",
        "challengeId" : "5a02126335fd2f3b4cd153a9",
        "required" : 1,
        "position" : 2,
        "disabledLanguages" : []
      }
    ]
  },
  "meta" : {
    "enums" : {
      "assignmentRole" : [
        {
          "value" : "owner",
          "text" : "Owner"
        },
        {
          "value" : "inviter",
          "text" : "Inviter"
        },
        {
          "value" : "reviewer",
          "text" : "Reviewer"
        },
        {
          "value" : "blind_reviewer",
          "text" : "Blind reviewer"
        },
        {
          "value" : "any",
          "text" : "Any"
        }
      ],
      "assignmentRoleSchedule" : [
        {
          "value" : "random",
          "text" : "Random"
        }
      ],
      "defaultLanguage" : [
        {
          "value" : "coffeescript",
          "text" : "CoffeeScript"
        },
        {
          "value" : "javascript",
          "text" : "JavaScript"
        },
        {
          "value" : "python",
          "text" : "Python"
        },
        {
          "value" : "ruby",
          "text" : "Ruby"
        },
        {
          "value" : "clojure",
          "text" : "Clojure"
        },
        {
          "value" : "haskell",
          "text" : "Haskell"
        },
        {
          "value" : "csharp",
          "text" : "C#"
        },
        {
          "value" : "solidity",
          "text" : "Solidity"
        },
        {
          "value" : "java",
          "text" : "Java"
        },
        {
          "value" : "elixir",
          "text" : "Elixir"
        },
        {
          "value" : "typescript",
          "text" : "TypeScript"
        },
        {
          "value" : "cpp",
          "text" : "C++"
        },
        {
          "value" : "php",
          "text" : "PHP"
        },
        {
          "value" : "sql",
          "text" : "SQL"
        },
        {
          "value" : "swift",
          "text" : "Swift"
        },
        {
          "value" : "shell",
          "text" : "Shell"
        },
        {
          "value" : "fsharp",
          "text" : "F#"
        },
        {
          "value" : "ocaml",
          "text" : "OCaml"
        },
        {
          "value" : "erlang",
          "text" : "Erlang"
        },
        {
          "value" : "objc",
          "text" : "Objective-C"
        },
        {
          "value" : "c",
          "text" : "C"
        },
        {
          "value" : "go",
          "text" : "Go"
        }
      ],
      "state" : [
        {
          "value" : "draft",
          "text" : "Draft"
        },
        {
          "value" : "published",
          "text" : "Published"
        },
        {
          "value" : "archived",
          "text" : "Archived"
        }
      ],
      "workflowPaths" : {
        "assignmentRole" : [
          {
            "value" : "owner",
            "text" : "Owner"
          },
          {
            "value" : "inviter",
            "text" : "Inviter"
          },
          {
            "value" : "reviewer",
            "text" : "Reviewer"
          },
          {
            "value" : "blind_reviewer",
            "text" : "Blind reviewer"
          },
          {
            "value" : "any",
            "text" : "Any"
          }
        ],
        "assignmentRoleSchedule" : [
          {
            "value" : "random",
            "text" : "Random"
          }
        ],
        "assignmentTeamCandidateState" : [
          {
            "value" : "approved",
            "text" : "Approved"
          },
          {
            "value" : "rejected",
            "text" : "Rejected"
          },
          {
            "value" : "archived",
            "text" : "Archived"
          }
        ],
        "timeType" : [
          {
            "value" : "total",
            "text" : "Total"
          },
          {
            "value" : "accumulated",
            "text" : "Accumulated"
          }
        ],
        "conditionsOp" : [
          {
            "value" : "and",
            "text" : "And"
          },
          {
            "value" : "or",
            "text" : "Or"
          }
        ]
      }
    },
    "timestamp" : "2017-11-07T12:06:59.429-08:00",
    "includes" : []
  }
}

Create

Endpoint

POST /v1/assessments

Parameters

Name Description
data.title required data.title
data.summary data.summary
data.purpose data.purpose

Request

Route

POST /v1/assessments

Headers

Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVhMDIxMjYzMzVmZDJmM2I0Y2QxNTNlZCIsImlkIjoiNWEwMjEyNjMzNWZkMmYzYjRjZDE1M2VlIiwic2VjcmV0IjoibVFKenlRPT0ifQ.Zyqed-XCKC58132pEWCHT4C5B4QIU_y6ZgGSvPhCiU0
Content-Type: application/x-www-form-urlencoded

Body

data[title]=Angular+Developer

Response

Simulated Response

Status

200

Headers

Content-Type: application/json; charset=utf-8

Body

{
  "id" : "5a02126435fd2f3b4cd15409",
  "type" : "Assessment",
  "data" : {
    "id" : "5a02126435fd2f3b4cd15409",
    "title" : "Angular Developer",
    "state" : "draft",
    "defaultLanguage" : null,
    "defaultInviteMessage" : null,
    "teamId" : "5a02126335fd2f3b4cd153e7",
    "inviteOnly" : true,
    "softDeletedAt" : null,
    "enforcedTimeLimit" : null,
    "copiedFromId" : null,
    "isTemplate" : false,
    "isPractice" : false,
    "isDemo" : false,
    "galleryImage" : null,
    "summary" : null,
    "challengeItems" : [],
    "purpose" : null,
    "demoLandingOrder" : 1000,
    "publishedAt" : null,
    "archivedAt" : null,
    "createdAt" : "2017-11-07T20:07:00.112Z",
    "assessmentResultsSummary" : {
      "_id" : "5a02126435fd2f3b4cd1540a"
    },
    "buckets" : null,
    "assignmentTeamMemberIds" : [],
    "redirectUrl" : null,
    "webhookUrl" : null,
    "submissionMessage" : null,
    "assignmentBuckets" : null,
    "assignmentRole" : null,
    "workflowPaths" : []
  },
  "meta" : {
    "enums" : {
      "assignmentRole" : [
        {
          "value" : "owner",
          "text" : "Owner"
        },
        {
          "value" : "inviter",
          "text" : "Inviter"
        },
        {
          "value" : "reviewer",
          "text" : "Reviewer"
        },
        {
          "value" : "blind_reviewer",
          "text" : "Blind reviewer"
        },
        {
          "value" : "any",
          "text" : "Any"
        }
      ],
      "assignmentRoleSchedule" : [
        {
          "value" : "random",
          "text" : "Random"
        }
      ],
      "defaultLanguage" : [
        {
          "value" : "coffeescript",
          "text" : "CoffeeScript"
        },
        {
          "value" : "javascript",
          "text" : "JavaScript"
        },
        {
          "value" : "python",
          "text" : "Python"
        },
        {
          "value" : "ruby",
          "text" : "Ruby"
        },
        {
          "value" : "clojure",
          "text" : "Clojure"
        },
        {
          "value" : "haskell",
          "text" : "Haskell"
        },
        {
          "value" : "csharp",
          "text" : "C#"
        },
        {
          "value" : "solidity",
          "text" : "Solidity"
        },
        {
          "value" : "java",
          "text" : "Java"
        },
        {
          "value" : "elixir",
          "text" : "Elixir"
        },
        {
          "value" : "typescript",
          "text" : "TypeScript"
        },
        {
          "value" : "cpp",
          "text" : "C++"
        },
        {
          "value" : "php",
          "text" : "PHP"
        },
        {
          "value" : "sql",
          "text" : "SQL"
        },
        {
          "value" : "swift",
          "text" : "Swift"
        },
        {
          "value" : "shell",
          "text" : "Shell"
        },
        {
          "value" : "fsharp",
          "text" : "F#"
        },
        {
          "value" : "ocaml",
          "text" : "OCaml"
        },
        {
          "value" : "erlang",
          "text" : "Erlang"
        },
        {
          "value" : "objc",
          "text" : "Objective-C"
        },
        {
          "value" : "c",
          "text" : "C"
        },
        {
          "value" : "go",
          "text" : "Go"
        }
      ],
      "state" : [
        {
          "value" : "draft",
          "text" : "Draft"
        },
        {
          "value" : "published",
          "text" : "Published"
        },
        {
          "value" : "archived",
          "text" : "Archived"
        }
      ],
      "workflowPaths" : {
        "assignmentRole" : [
          {
            "value" : "owner",
            "text" : "Owner"
          },
          {
            "value" : "inviter",
            "text" : "Inviter"
          },
          {
            "value" : "reviewer",
            "text" : "Reviewer"
          },
          {
            "value" : "blind_reviewer",
            "text" : "Blind reviewer"
          },
          {
            "value" : "any",
            "text" : "Any"
          }
        ],
        "assignmentRoleSchedule" : [
          {
            "value" : "random",
            "text" : "Random"
          }
        ],
        "assignmentTeamCandidateState" : [
          {
            "value" : "approved",
            "text" : "Approved"
          },
          {
            "value" : "rejected",
            "text" : "Rejected"
          },
          {
            "value" : "archived",
            "text" : "Archived"
          }
        ],
        "timeType" : [
          {
            "value" : "total",
            "text" : "Total"
          },
          {
            "value" : "accumulated",
            "text" : "Accumulated"
          }
        ],
        "conditionsOp" : [
          {
            "value" : "and",
            "text" : "And"
          },
          {
            "value" : "or",
            "text" : "Or"
          }
        ]
      }
    },
    "timestamp" : "2017-11-07T12:07:00.126-08:00",
    "includes" : []
  }
}

Update

Endpoint

PUT /v1/assessments/:id

Parameters

Name Description
id base16 ObjectId
data.title data.title
data.summary data.summary
data.purpose data.purpose

Request

Route

PUT /v1/assessments/5a02126435fd2f3b4cd15410

Headers

Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVhMDIxMjY0MzVmZDJmM2I0Y2QxNTQxMSIsImlkIjoiNWEwMjEyNjQzNWZkMmYzYjRjZDE1NDEyIiwic2VjcmV0IjoiVVdjTXd3PT0ifQ.cqVrtzOC3OVURXBrH86gwoLmSJp32tNP4eCdk-sgCX0
Content-Type: application/x-www-form-urlencoded

Body

data[summary]=Junior+to+mid-level

Response

Simulated Response

Status

200

Headers

Content-Type: application/json; charset=utf-8

Body

{
  "id" : "5a02126435fd2f3b4cd15410",
  "type" : "Assessment",
  "data" : {
    "id" : "5a02126435fd2f3b4cd15410",
    "title" : "Senior Full-Stack Developer #50",
    "state" : "published",
    "defaultLanguage" : null,
    "defaultInviteMessage" : null,
    "teamId" : "5a02126435fd2f3b4cd1540b",
    "inviteOnly" : false,
    "softDeletedAt" : null,
    "enforcedTimeLimit" : null,
    "copiedFromId" : null,
    "isTemplate" : false,
    "isPractice" : false,
    "isDemo" : false,
    "galleryImage" : null,
    "summary" : "Junior to mid-level",
    "challengeItems" : [
      {
        "id" : "5a02126435fd2f3b4cd15417",
        "challengeId" : "5a02126435fd2f3b4cd15414",
        "required" : 1,
        "position" : 1,
        "disabledLanguages" : []
      },
      {
        "id" : "5a02126435fd2f3b4cd1541b",
        "challengeId" : "5a02126435fd2f3b4cd15418",
        "required" : 1,
        "position" : 2,
        "disabledLanguages" : []
      }
    ],
    "purpose" : "Quia natus rem. Perspiciatis consequuntur velit ut. Rem eius aut inventore natus tempora amet. Et est et consequatur quia.",
    "demoLandingOrder" : 1000,
    "publishedAt" : "2017-11-07T20:07:00.181Z",
    "archivedAt" : null,
    "createdAt" : "2017-11-07T20:07:00.213Z",
    "assessmentResultsSummary" : {
      "_id" : "5a02126435fd2f3b4cd15422",
      "all" : 2,
      "started" : 2
    },
    "buckets" : null,
    "assignmentTeamMemberIds" : [],
    "redirectUrl" : null,
    "webhookUrl" : null,
    "submissionMessage" : null,
    "assignmentBuckets" : null,
    "assignmentRole" : null,
    "workflowPaths" : []
  },
  "meta" : {
    "enums" : {
      "assignmentRole" : [
        {
          "value" : "owner",
          "text" : "Owner"
        },
        {
          "value" : "inviter",
          "text" : "Inviter"
        },
        {
          "value" : "reviewer",
          "text" : "Reviewer"
        },
        {
          "value" : "blind_reviewer",
          "text" : "Blind reviewer"
        },
        {
          "value" : "any",
          "text" : "Any"
        }
      ],
      "assignmentRoleSchedule" : [
        {
          "value" : "random",
          "text" : "Random"
        }
      ],
      "defaultLanguage" : [
        {
          "value" : "coffeescript",
          "text" : "CoffeeScript"
        },
        {
          "value" : "javascript",
          "text" : "JavaScript"
        },
        {
          "value" : "python",
          "text" : "Python"
        },
        {
          "value" : "ruby",
          "text" : "Ruby"
        },
        {
          "value" : "clojure",
          "text" : "Clojure"
        },
        {
          "value" : "haskell",
          "text" : "Haskell"
        },
        {
          "value" : "csharp",
          "text" : "C#"
        },
        {
          "value" : "solidity",
          "text" : "Solidity"
        },
        {
          "value" : "java",
          "text" : "Java"
        },
        {
          "value" : "elixir",
          "text" : "Elixir"
        },
        {
          "value" : "typescript",
          "text" : "TypeScript"
        },
        {
          "value" : "cpp",
          "text" : "C++"
        },
        {
          "value" : "php",
          "text" : "PHP"
        },
        {
          "value" : "sql",
          "text" : "SQL"
        },
        {
          "value" : "swift",
          "text" : "Swift"
        },
        {
          "value" : "shell",
          "text" : "Shell"
        },
        {
          "value" : "fsharp",
          "text" : "F#"
        },
        {
          "value" : "ocaml",
          "text" : "OCaml"
        },
        {
          "value" : "erlang",
          "text" : "Erlang"
        },
        {
          "value" : "objc",
          "text" : "Objective-C"
        },
        {
          "value" : "c",
          "text" : "C"
        },
        {
          "value" : "go",
          "text" : "Go"
        }
      ],
      "state" : [
        {
          "value" : "draft",
          "text" : "Draft"
        },
        {
          "value" : "published",
          "text" : "Published"
        },
        {
          "value" : "archived",
          "text" : "Archived"
        }
      ],
      "workflowPaths" : {
        "assignmentRole" : [
          {
            "value" : "owner",
            "text" : "Owner"
          },
          {
            "value" : "inviter",
            "text" : "Inviter"
          },
          {
            "value" : "reviewer",
            "text" : "Reviewer"
          },
          {
            "value" : "blind_reviewer",
            "text" : "Blind reviewer"
          },
          {
            "value" : "any",
            "text" : "Any"
          }
        ],
        "assignmentRoleSchedule" : [
          {
            "value" : "random",
            "text" : "Random"
          }
        ],
        "assignmentTeamCandidateState" : [
          {
            "value" : "approved",
            "text" : "Approved"
          },
          {
            "value" : "rejected",
            "text" : "Rejected"
          },
          {
            "value" : "archived",
            "text" : "Archived"
          }
        ],
        "timeType" : [
          {
            "value" : "total",
            "text" : "Total"
          },
          {
            "value" : "accumulated",
            "text" : "Accumulated"
          }
        ],
        "conditionsOp" : [
          {
            "value" : "and",
            "text" : "And"
          },
          {
            "value" : "or",
            "text" : "Or"
          }
        ]
      }
    },
    "timestamp" : "2017-11-07T12:07:00.382-08:00",
    "includes" : []
  }
}

Publish

Endpoint

PUT /v1/assessments/:id/publish

Parameters

Name Description
id base16 ObjectId

Request

Route

PUT /v1/assessments/5a02126435fd2f3b4cd15432/publish

Headers

Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVhMDIxMjY0MzVmZDJmM2I0Y2QxNTQzMyIsImlkIjoiNWEwMjEyNjQzNWZkMmYzYjRjZDE1NDM0Iiwic2VjcmV0IjoiVVdKeGNnPT0ifQ.80x6iVrHdDI3Mz2y0VeWseodjItCnHebBj_YNS_JVUI
Content-Type: application/x-www-form-urlencoded

Response

Simulated Response

Status

200

Headers

Content-Type: application/json; charset=utf-8

Body

{
  "id" : "5a02126435fd2f3b4cd15432",
  "type" : "Assessment",
  "data" : {
    "id" : "5a02126435fd2f3b4cd15432",
    "title" : "Senior Web Engineer #51",
    "state" : "published",
    "defaultLanguage" : null,
    "defaultInviteMessage" : null,
    "teamId" : "5a02126435fd2f3b4cd1542d",
    "inviteOnly" : false,
    "softDeletedAt" : null,
    "enforcedTimeLimit" : null,
    "copiedFromId" : null,
    "isTemplate" : false,
    "isPractice" : false,
    "isDemo" : false,
    "galleryImage" : null,
    "summary" : "Quis exercitationem occaecati. Atque vel corrupti esse rerum. Ut id quo ut dicta est architecto dignissimos. Ipsa rerum aut id vel. Id quae possimus cum aut animi aut dolor.",
    "challengeItems" : [],
    "purpose" : "Est rerum et laboriosam et aut. Fugiat eum veniam optio et voluptatem. Ex in labore est incidunt sapiente voluptatum ea. Quia magni eaque sunt voluptas adipisci.",
    "demoLandingOrder" : 1000,
    "publishedAt" : "2017-11-07T20:07:00.464Z",
    "archivedAt" : null,
    "createdAt" : "2017-11-07T20:07:00.432Z",
    "assessmentResultsSummary" : {
      "_id" : "5a02126435fd2f3b4cd15436"
    },
    "buckets" : null,
    "assignmentTeamMemberIds" : [],
    "redirectUrl" : null,
    "webhookUrl" : null,
    "submissionMessage" : null,
    "assignmentBuckets" : null,
    "assignmentRole" : null,
    "workflowPaths" : []
  },
  "meta" : {
    "enums" : {
      "assignmentRole" : [
        {
          "value" : "owner",
          "text" : "Owner"
        },
        {
          "value" : "inviter",
          "text" : "Inviter"
        },
        {
          "value" : "reviewer",
          "text" : "Reviewer"
        },
        {
          "value" : "blind_reviewer",
          "text" : "Blind reviewer"
        },
        {
          "value" : "any",
          "text" : "Any"
        }
      ],
      "assignmentRoleSchedule" : [
        {
          "value" : "random",
          "text" : "Random"
        }
      ],
      "defaultLanguage" : [
        {
          "value" : "coffeescript",
          "text" : "CoffeeScript"
        },
        {
          "value" : "javascript",
          "text" : "JavaScript"
        },
        {
          "value" : "python",
          "text" : "Python"
        },
        {
          "value" : "ruby",
          "text" : "Ruby"
        },
        {
          "value" : "clojure",
          "text" : "Clojure"
        },
        {
          "value" : "haskell",
          "text" : "Haskell"
        },
        {
          "value" : "csharp",
          "text" : "C#"
        },
        {
          "value" : "solidity",
          "text" : "Solidity"
        },
        {
          "value" : "java",
          "text" : "Java"
        },
        {
          "value" : "elixir",
          "text" : "Elixir"
        },
        {
          "value" : "typescript",
          "text" : "TypeScript"
        },
        {
          "value" : "cpp",
          "text" : "C++"
        },
        {
          "value" : "php",
          "text" : "PHP"
        },
        {
          "value" : "sql",
          "text" : "SQL"
        },
        {
          "value" : "swift",
          "text" : "Swift"
        },
        {
          "value" : "shell",
          "text" : "Shell"
        },
        {
          "value" : "fsharp",
          "text" : "F#"
        },
        {
          "value" : "ocaml",
          "text" : "OCaml"
        },
        {
          "value" : "erlang",
          "text" : "Erlang"
        },
        {
          "value" : "objc",
          "text" : "Objective-C"
        },
        {
          "value" : "c",
          "text" : "C"
        },
        {
          "value" : "go",
          "text" : "Go"
        }
      ],
      "state" : [
        {
          "value" : "draft",
          "text" : "Draft"
        },
        {
          "value" : "published",
          "text" : "Published"
        },
        {
          "value" : "archived",
          "text" : "Archived"
        }
      ],
      "workflowPaths" : {
        "assignmentRole" : [
          {
            "value" : "owner",
            "text" : "Owner"
          },
          {
            "value" : "inviter",
            "text" : "Inviter"
          },
          {
            "value" : "reviewer",
            "text" : "Reviewer"
          },
          {
            "value" : "blind_reviewer",
            "text" : "Blind reviewer"
          },
          {
            "value" : "any",
            "text" : "Any"
          }
        ],
        "assignmentRoleSchedule" : [
          {
            "value" : "random",
            "text" : "Random"
          }
        ],
        "assignmentTeamCandidateState" : [
          {
            "value" : "approved",
            "text" : "Approved"
          },
          {
            "value" : "rejected",
            "text" : "Rejected"
          },
          {
            "value" : "archived",
            "text" : "Archived"
          }
        ],
        "timeType" : [
          {
            "value" : "total",
            "text" : "Total"
          },
          {
            "value" : "accumulated",
            "text" : "Accumulated"
          }
        ],
        "conditionsOp" : [
          {
            "value" : "and",
            "text" : "And"
          },
          {
            "value" : "or",
            "text" : "Or"
          }
        ]
      }
    },
    "timestamp" : "2017-11-07T12:07:00.480-08:00",
    "includes" : []
  }
}

Un-publish

Endpoint

PUT /v1/assessments/:id/unpublish

Parameters

Name Description
id base16 ObjectId

Request

Route

PUT /v1/assessments/5a02126435fd2f3b4cd15449/unpublish

Headers

Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVhMDIxMjY0MzVmZDJmM2I0Y2QxNTQ0YSIsImlkIjoiNWEwMjEyNjQzNWZkMmYzYjRjZDE1NDRiIiwic2VjcmV0IjoiL1dBQkVBPT0ifQ.qZP9VcZUAdSCQvhAjY83LkNW661Km4Fawo9gnfY7PTw
Content-Type: application/x-www-form-urlencoded

Response

Simulated Response

Status

200

Headers

Content-Type: application/json; charset=utf-8

Body

{
  "id" : "5a02126435fd2f3b4cd15449",
  "type" : "Assessment",
  "data" : {
    "id" : "5a02126435fd2f3b4cd15449",
    "title" : "Senior Front-End Developer #53",
    "state" : "draft",
    "defaultLanguage" : null,
    "defaultInviteMessage" : null,
    "teamId" : "5a02126435fd2f3b4cd15444",
    "inviteOnly" : false,
    "softDeletedAt" : null,
    "enforcedTimeLimit" : null,
    "copiedFromId" : null,
    "isTemplate" : false,
    "isPractice" : false,
    "isDemo" : false,
    "galleryImage" : null,
    "summary" : "Beatae harum adipisci facere mollitia eveniet quia. Et qui ut molestiae velit sapiente. Dolorem magni dolores voluptatem id labore.",
    "challengeItems" : [
      {
        "id" : "5a02126435fd2f3b4cd15450",
        "challengeId" : "5a02126435fd2f3b4cd1544d",
        "required" : 1,
        "position" : 1,
        "disabledLanguages" : []
      },
      {
        "id" : "5a02126435fd2f3b4cd15454",
        "challengeId" : "5a02126435fd2f3b4cd15451",
        "required" : 1,
        "position" : 2,
        "disabledLanguages" : []
      }
    ],
    "purpose" : "Aut et quia. Veniam provident repellendus sit. Et tenetur et beatae aut sunt voluptas id.",
    "demoLandingOrder" : 1000,
    "publishedAt" : null,
    "archivedAt" : null,
    "createdAt" : "2017-11-07T20:07:00.659Z",
    "assessmentResultsSummary" : {
      "_id" : "5a02126435fd2f3b4cd1545b",
      "all" : 2,
      "started" : 2
    },
    "buckets" : null,
    "assignmentTeamMemberIds" : [],
    "redirectUrl" : null,
    "webhookUrl" : null,
    "submissionMessage" : null,
    "assignmentBuckets" : null,
    "assignmentRole" : null,
    "workflowPaths" : []
  },
  "meta" : {
    "enums" : {
      "assignmentRole" : [
        {
          "value" : "owner",
          "text" : "Owner"
        },
        {
          "value" : "inviter",
          "text" : "Inviter"
        },
        {
          "value" : "reviewer",
          "text" : "Reviewer"
        },
        {
          "value" : "blind_reviewer",
          "text" : "Blind reviewer"
        },
        {
          "value" : "any",
          "text" : "Any"
        }
      ],
      "assignmentRoleSchedule" : [
        {
          "value" : "random",
          "text" : "Random"
        }
      ],
      "defaultLanguage" : [
        {
          "value" : "coffeescript",
          "text" : "CoffeeScript"
        },
        {
          "value" : "javascript",
          "text" : "JavaScript"
        },
        {
          "value" : "python",
          "text" : "Python"
        },
        {
          "value" : "ruby",
          "text" : "Ruby"
        },
        {
          "value" : "clojure",
          "text" : "Clojure"
        },
        {
          "value" : "haskell",
          "text" : "Haskell"
        },
        {
          "value" : "csharp",
          "text" : "C#"
        },
        {
          "value" : "solidity",
          "text" : "Solidity"
        },
        {
          "value" : "java",
          "text" : "Java"
        },
        {
          "value" : "elixir",
          "text" : "Elixir"
        },
        {
          "value" : "typescript",
          "text" : "TypeScript"
        },
        {
          "value" : "cpp",
          "text" : "C++"
        },
        {
          "value" : "php",
          "text" : "PHP"
        },
        {
          "value" : "sql",
          "text" : "SQL"
        },
        {
          "value" : "swift",
          "text" : "Swift"
        },
        {
          "value" : "shell",
          "text" : "Shell"
        },
        {
          "value" : "fsharp",
          "text" : "F#"
        },
        {
          "value" : "ocaml",
          "text" : "OCaml"
        },
        {
          "value" : "erlang",
          "text" : "Erlang"
        },
        {
          "value" : "objc",
          "text" : "Objective-C"
        },
        {
          "value" : "c",
          "text" : "C"
        },
        {
          "value" : "go",
          "text" : "Go"
        }
      ],
      "state" : [
        {
          "value" : "draft",
          "text" : "Draft"
        },
        {
          "value" : "published",
          "text" : "Published"
        },
        {
          "value" : "archived",
          "text" : "Archived"
        }
      ],
      "workflowPaths" : {
        "assignmentRole" : [
          {
            "value" : "owner",
            "text" : "Owner"
          },
          {
            "value" : "inviter",
            "text" : "Inviter"
          },
          {
            "value" : "reviewer",
            "text" : "Reviewer"
          },
          {
            "value" : "blind_reviewer",
            "text" : "Blind reviewer"
          },
          {
            "value" : "any",
            "text" : "Any"
          }
        ],
        "assignmentRoleSchedule" : [
          {
            "value" : "random",
            "text" : "Random"
          }
        ],
        "assignmentTeamCandidateState" : [
          {
            "value" : "approved",
            "text" : "Approved"
          },
          {
            "value" : "rejected",
            "text" : "Rejected"
          },
          {
            "value" : "archived",
            "text" : "Archived"
          }
        ],
        "timeType" : [
          {
            "value" : "total",
            "text" : "Total"
          },
          {
            "value" : "accumulated",
            "text" : "Accumulated"
          }
        ],
        "conditionsOp" : [
          {
            "value" : "and",
            "text" : "And"
          },
          {
            "value" : "or",
            "text" : "Or"
          }
        ]
      }
    },
    "timestamp" : "2017-11-07T12:07:00.905-08:00",
    "includes" : []
  }
}

Archive

Archives the assessment

Endpoint

PUT /v1/assessments/:id/archive

Parameters

Name Description
id base16 ObjectId

Request

Route

PUT /v1/assessments/5a02126435fd2f3b4cd1546b/archive

Headers

Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVhMDIxMjY0MzVmZDJmM2I0Y2QxNTQ2YyIsImlkIjoiNWEwMjEyNjQzNWZkMmYzYjRjZDE1NDZkIiwic2VjcmV0IjoiVlFBL3hnPT0ifQ.0GuU80_uQT-zefU3EleDFLUuOt3W1OzBIX7WeBbHfPI
Content-Type: application/x-www-form-urlencoded

Response

Simulated Response

Status

200

Headers

Content-Type: application/json; charset=utf-8

Body

{
  "id" : "5a02126435fd2f3b4cd1546b",
  "type" : "Assessment",
  "data" : {
    "id" : "5a02126435fd2f3b4cd1546b",
    "title" : "Mid-Level Node Developer #54",
    "state" : "archived",
    "defaultLanguage" : null,
    "defaultInviteMessage" : null,
    "teamId" : "5a02126435fd2f3b4cd15466",
    "inviteOnly" : false,
    "softDeletedAt" : null,
    "enforcedTimeLimit" : null,
    "copiedFromId" : null,
    "isTemplate" : false,
    "isPractice" : false,
    "isDemo" : false,
    "galleryImage" : null,
    "summary" : "Voluptate ab sed quod. Laudantium ut eligendi corporis dolor voluptatem. Voluptatum omnis voluptatem. Aspernatur et maiores quibusdam sit quam dolor.",
    "challengeItems" : [
      {
        "id" : "5a02126435fd2f3b4cd15472",
        "challengeId" : "5a02126435fd2f3b4cd1546f",
        "required" : 1,
        "position" : 1,
        "disabledLanguages" : []
      },
      {
        "id" : "5a02126535fd2f3b4cd15476",
        "challengeId" : "5a02126535fd2f3b4cd15473",
        "required" : 1,
        "position" : 2,
        "disabledLanguages" : []
      }
    ],
    "purpose" : "Culpa laboriosam quis qui dicta. Ut est distinctio molestias eaque veritatis illum. Quibusdam autem dolor. Impedit reprehenderit ratione nobis magni praesentium est.",
    "demoLandingOrder" : 1000,
    "publishedAt" : "2017-11-07T20:07:00.984Z",
    "archivedAt" : "2017-11-07T20:07:01.203Z",
    "createdAt" : "2017-11-07T20:07:01.008Z",
    "assessmentResultsSummary" : {
      "_id" : "5a02126535fd2f3b4cd1547d",
      "all" : 2,
      "started" : 2
    },
    "buckets" : null,
    "assignmentTeamMemberIds" : [],
    "redirectUrl" : null,
    "webhookUrl" : null,
    "submissionMessage" : null,
    "assignmentBuckets" : null,
    "assignmentRole" : null,
    "workflowPaths" : []
  },
  "meta" : {
    "enums" : {
      "assignmentRole" : [
        {
          "value" : "owner",
          "text" : "Owner"
        },
        {
          "value" : "inviter",
          "text" : "Inviter"
        },
        {
          "value" : "reviewer",
          "text" : "Reviewer"
        },
        {
          "value" : "blind_reviewer",
          "text" : "Blind reviewer"
        },
        {
          "value" : "any",
          "text" : "Any"
        }
      ],
      "assignmentRoleSchedule" : [
        {
          "value" : "random",
          "text" : "Random"
        }
      ],
      "defaultLanguage" : [
        {
          "value" : "coffeescript",
          "text" : "CoffeeScript"
        },
        {
          "value" : "javascript",
          "text" : "JavaScript"
        },
        {
          "value" : "python",
          "text" : "Python"
        },
        {
          "value" : "ruby",
          "text" : "Ruby"
        },
        {
          "value" : "clojure",
          "text" : "Clojure"
        },
        {
          "value" : "haskell",
          "text" : "Haskell"
        },
        {
          "value" : "csharp",
          "text" : "C#"
        },
        {
          "value" : "solidity",
          "text" : "Solidity"
        },
        {
          "value" : "java",
          "text" : "Java"
        },
        {
          "value" : "elixir",
          "text" : "Elixir"
        },
        {
          "value" : "typescript",
          "text" : "TypeScript"
        },
        {
          "value" : "cpp",
          "text" : "C++"
        },
        {
          "value" : "php",
          "text" : "PHP"
        },
        {
          "value" : "sql",
          "text" : "SQL"
        },
        {
          "value" : "swift",
          "text" : "Swift"
        },
        {
          "value" : "shell",
          "text" : "Shell"
        },
        {
          "value" : "fsharp",
          "text" : "F#"
        },
        {
          "value" : "ocaml",
          "text" : "OCaml"
        },
        {
          "value" : "erlang",
          "text" : "Erlang"
        },
        {
          "value" : "objc",
          "text" : "Objective-C"
        },
        {
          "value" : "c",
          "text" : "C"
        },
        {
          "value" : "go",
          "text" : "Go"
        }
      ],
      "state" : [
        {
          "value" : "draft",
          "text" : "Draft"
        },
        {
          "value" : "published",
          "text" : "Published"
        },
        {
          "value" : "archived",
          "text" : "Archived"
        }
      ],
      "workflowPaths" : {
        "assignmentRole" : [
          {
            "value" : "owner",
            "text" : "Owner"
          },
          {
            "value" : "inviter",
            "text" : "Inviter"
          },
          {
            "value" : "reviewer",
            "text" : "Reviewer"
          },
          {
            "value" : "blind_reviewer",
            "text" : "Blind reviewer"
          },
          {
            "value" : "any",
            "text" : "Any"
          }
        ],
        "assignmentRoleSchedule" : [
          {
            "value" : "random",
            "text" : "Random"
          }
        ],
        "assignmentTeamCandidateState" : [
          {
            "value" : "approved",
            "text" : "Approved"
          },
          {
            "value" : "rejected",
            "text" : "Rejected"
          },
          {
            "value" : "archived",
            "text" : "Archived"
          }
        ],
        "timeType" : [
          {
            "value" : "total",
            "text" : "Total"
          },
          {
            "value" : "accumulated",
            "text" : "Accumulated"
          }
        ],
        "conditionsOp" : [
          {
            "value" : "and",
            "text" : "And"
          },
          {
            "value" : "or",
            "text" : "Or"
          }
        ]
      }
    },
    "timestamp" : "2017-11-07T12:07:01.247-08:00",
    "includes" : []
  }
}

Unarchive

Unarchives the assessment

Endpoint

PUT /v1/assessments/:id/unarchive

Parameters

Name Description
id base16 ObjectId

Request

Route

PUT /v1/assessments/5a02126535fd2f3b4cd154af/unarchive

Headers

Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVhMDIxMjY1MzVmZDJmM2I0Y2QxNTQ4ZSIsImlkIjoiNWEwMjEyNjUzNWZkMmYzYjRjZDE1NDhmIiwic2VjcmV0IjoiZFduaGtRPT0ifQ.rvomWbdmYLzn-iWw2fO-X-G360bDAbZCUS4-jJOW6fE
Content-Type: application/x-www-form-urlencoded

Response

Simulated Response

Status

200

Headers

Content-Type: application/json; charset=utf-8

Body

{
  "id" : "5a02126535fd2f3b4cd154af",
  "type" : "Assessment",
  "data" : {
    "id" : "5a02126535fd2f3b4cd154af",
    "title" : "Senior Angular Engineer #56",
    "state" : "draft",
    "defaultLanguage" : null,
    "defaultInviteMessage" : null,
    "teamId" : "5a02126535fd2f3b4cd154aa",
    "inviteOnly" : false,
    "softDeletedAt" : null,
    "enforcedTimeLimit" : null,
    "copiedFromId" : null,
    "isTemplate" : false,
    "isPractice" : false,
    "isDemo" : false,
    "galleryImage" : null,
    "summary" : "",
    "challengeItems" : []
  },
  "meta" : {
    "enums" : {
      "assignmentRole" : [
        {
          "value" : "owner",
          "text" : "Owner"
        },
        {
          "value" : "inviter",
          "text" : "Inviter"
        },
        {
          "value" : "reviewer",
          "text" : "Reviewer"
        },
        {
          "value" : "blind_reviewer",
          "text" : "Blind reviewer"
        },
        {
          "value" : "any",
          "text" : "Any"
        }
      ],
      "assignmentRoleSchedule" : [
        {
          "value" : "random",
          "text" : "Random"
        }
      ],
      "defaultLanguage" : [
        {
          "value" : "coffeescript",
          "text" : "CoffeeScript"
        },
        {
          "value" : "javascript",
          "text" : "JavaScript"
        },
        {
          "value" : "python",
          "text" : "Python"
        },
        {
          "value" : "ruby",
          "text" : "Ruby"
        },
        {
          "value" : "clojure",
          "text" : "Clojure"
        },
        {
          "value" : "haskell",
          "text" : "Haskell"
        },
        {
          "value" : "csharp",
          "text" : "C#"
        },
        {
          "value" : "solidity",
          "text" : "Solidity"
        },
        {
          "value" : "java",
          "text" : "Java"
        },
        {
          "value" : "elixir",
          "text" : "Elixir"
        },
        {
          "value" : "typescript",
          "text" : "TypeScript"
        },
        {
          "value" : "cpp",
          "text" : "C++"
        },
        {
          "value" : "php",
          "text" : "PHP"
        },
        {
          "value" : "sql",
          "text" : "SQL"
        },
        {
          "value" : "swift",
          "text" : "Swift"
        },
        {
          "value" : "shell",
          "text" : "Shell"
        },
        {
          "value" : "fsharp",
          "text" : "F#"
        },
        {
          "value" : "ocaml",
          "text" : "OCaml"
        },
        {
          "value" : "erlang",
          "text" : "Erlang"
        },
        {
          "value" : "objc",
          "text" : "Objective-C"
        },
        {
          "value" : "c",
          "text" : "C"
        },
        {
          "value" : "go",
          "text" : "Go"
        }
      ],
      "state" : [
        {
          "value" : "draft",
          "text" : "Draft"
        },
        {
          "value" : "published",
          "text" : "Published"
        },
        {
          "value" : "archived",
          "text" : "Archived"
        }
      ],
      "workflowPaths" : {
        "assignmentRole" : [
          {
            "value" : "owner",
            "text" : "Owner"
          },
          {
            "value" : "inviter",
            "text" : "Inviter"
          },
          {
            "value" : "reviewer",
            "text" : "Reviewer"
          },
          {
            "value" : "blind_reviewer",
            "text" : "Blind reviewer"
          },
          {
            "value" : "any",
            "text" : "Any"
          }
        ],
        "assignmentRoleSchedule" : [
          {
            "value" : "random",
            "text" : "Random"
          }
        ],
        "assignmentTeamCandidateState" : [
          {
            "value" : "approved",
            "text" : "Approved"
          },
          {
            "value" : "rejected",
            "text" : "Rejected"
          },
          {
            "value" : "archived",
            "text" : "Archived"
          }
        ],
        "timeType" : [
          {
            "value" : "total",
            "text" : "Total"
          },
          {
            "value" : "accumulated",
            "text" : "Accumulated"
          }
        ],
        "conditionsOp" : [
          {
            "value" : "and",
            "text" : "And"
          },
          {
            "value" : "or",
            "text" : "Or"
          }
        ]
      }
    },
    "timestamp" : "2017-11-07T12:07:01.594-08:00",
    "includes" : []
  }
}

Recover

Recovers the assessment

Endpoint

PUT /v1/assessments/:id/recover

Parameters

Name Description
id base16 ObjectId

Request

Route

PUT /v1/assessments/5a02126635fd2f3b4cd154f7/recover

Headers

Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVhMDIxMjY1MzVmZDJmM2I0Y2QxNTRkYiIsImlkIjoiNWEwMjEyNjUzNWZkMmYzYjRjZDE1NGRjIiwic2VjcmV0IjoiNnZhQTh3PT0ifQ.Z1lSGi-a337bS5XTSFPt1zZkNtrS4e3HM3XwS2-ZHY0
Content-Type: application/x-www-form-urlencoded

Response

Simulated Response

Status

200

Headers

Content-Type: application/json; charset=utf-8

Body

{
  "id" : "5a02126635fd2f3b4cd154f7",
  "type" : "Assessment",
  "data" : {
    "id" : "5a02126635fd2f3b4cd154f7",
    "title" : "Senior Angular Developer #59",
    "state" : "archived",
    "defaultLanguage" : null,
    "defaultInviteMessage" : null,
    "teamId" : "5a02126535fd2f3b4cd154d5",
    "inviteOnly" : false,
    "softDeletedAt" : null,
    "enforcedTimeLimit" : null,
    "copiedFromId" : null,
    "isTemplate" : false,
    "isPractice" : false,
    "isDemo" : false,
    "galleryImage" : null,
    "summary" : "Laborum non quia qui temporibus. Expedita velit non. Dolores reprehenderit eum accusamus voluptate veritatis et. Et dignissimos autem rerum esse qui id.",
    "challengeItems" : [],
    "purpose" : "Illo at aperiam repudiandae repellendus autem. Quaerat voluptates ut consequatur. Quaerat quia corporis accusamus ut. Quas minus quis reprehenderit sunt ut. Numquam voluptas id.",
    "demoLandingOrder" : 1000,
    "publishedAt" : null,
    "archivedAt" : "2017-11-07T20:07:02.120Z",
    "createdAt" : "2017-11-07T20:07:02.125Z",
    "assessmentResultsSummary" : {
      "_id" : "5a02126635fd2f3b4cd154f8"
    },
    "buckets" : null,
    "assignmentTeamMemberIds" : [],
    "redirectUrl" : null,
    "webhookUrl" : null,
    "submissionMessage" : null,
    "assignmentBuckets" : null,
    "assignmentRole" : null,
    "workflowPaths" : []
  },
  "meta" : {
    "enums" : {
      "assignmentRole" : [
        {
          "value" : "owner",
          "text" : "Owner"
        },
        {
          "value" : "inviter",
          "text" : "Inviter"
        },
        {
          "value" : "reviewer",
          "text" : "Reviewer"
        },
        {
          "value" : "blind_reviewer",
          "text" : "Blind reviewer"
        },
        {
          "value" : "any",
          "text" : "Any"
        }
      ],
      "assignmentRoleSchedule" : [
        {
          "value" : "random",
          "text" : "Random"
        }
      ],
      "defaultLanguage" : [
        {
          "value" : "coffeescript",
          "text" : "CoffeeScript"
        },
        {
          "value" : "javascript",
          "text" : "JavaScript"
        },
        {
          "value" : "python",
          "text" : "Python"
        },
        {
          "value" : "ruby",
          "text" : "Ruby"
        },
        {
          "value" : "clojure",
          "text" : "Clojure"
        },
        {
          "value" : "haskell",
          "text" : "Haskell"
        },
        {
          "value" : "csharp",
          "text" : "C#"
        },
        {
          "value" : "solidity",
          "text" : "Solidity"
        },
        {
          "value" : "java",
          "text" : "Java"
        },
        {
          "value" : "elixir",
          "text" : "Elixir"
        },
        {
          "value" : "typescript",
          "text" : "TypeScript"
        },
        {
          "value" : "cpp",
          "text" : "C++"
        },
        {
          "value" : "php",
          "text" : "PHP"
        },
        {
          "value" : "sql",
          "text" : "SQL"
        },
        {
          "value" : "swift",
          "text" : "Swift"
        },
        {
          "value" : "shell",
          "text" : "Shell"
        },
        {
          "value" : "fsharp",
          "text" : "F#"
        },
        {
          "value" : "ocaml",
          "text" : "OCaml"
        },
        {
          "value" : "erlang",
          "text" : "Erlang"
        },
        {
          "value" : "objc",
          "text" : "Objective-C"
        },
        {
          "value" : "c",
          "text" : "C"
        },
        {
          "value" : "go",
          "text" : "Go"
        }
      ],
      "state" : [
        {
          "value" : "draft",
          "text" : "Draft"
        },
        {
          "value" : "published",
          "text" : "Published"
        },
        {
          "value" : "archived",
          "text" : "Archived"
        }
      ],
      "workflowPaths" : {
        "assignmentRole" : [
          {
            "value" : "owner",
            "text" : "Owner"
          },
          {
            "value" : "inviter",
            "text" : "Inviter"
          },
          {
            "value" : "reviewer",
            "text" : "Reviewer"
          },
          {
            "value" : "blind_reviewer",
            "text" : "Blind reviewer"
          },
          {
            "value" : "any",
            "text" : "Any"
          }
        ],
        "assignmentRoleSchedule" : [
          {
            "value" : "random",
            "text" : "Random"
          }
        ],
        "assignmentTeamCandidateState" : [
          {
            "value" : "approved",
            "text" : "Approved"
          },
          {
            "value" : "rejected",
            "text" : "Rejected"
          },
          {
            "value" : "archived",
            "text" : "Archived"
          }
        ],
        "timeType" : [
          {
            "value" : "total",
            "text" : "Total"
          },
          {
            "value" : "accumulated",
            "text" : "Accumulated"
          }
        ],
        "conditionsOp" : [
          {
            "value" : "and",
            "text" : "And"
          },
          {
            "value" : "or",
            "text" : "Or"
          }
        ]
      }
    },
    "timestamp" : "2017-11-07T12:07:02.179-08:00",
    "includes" : []
  }
}

Challenges

List

Returns all global and team challenges

Endpoint

GET /v1/challenges

Parameters

Name Description
collection if provided will filter by either "team" or "global" challenges
includes Valid values are: team, created_by, solutions
templates If set to true, will return only templates. By default everything but templates are returned
$type The subtype to filter by. Useful as a replacement for using the type specific endpoint

Request

Route

GET /v1/challenges

Headers

Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVhMDIxMjZmMzVmZDJmM2I0Y2QxNTViOCIsImlkIjoiNWEwMjEyNmYzNWZkMmYzYjRjZDE1NWI5Iiwic2VjcmV0IjoiRHRuVjZ3PT0ifQ.JG2ewhBv1sgMT5jOSCa2cc2ci3FR9_uSiBcs59vXMJ0

Response

Simulated Response

Status

200

Headers

Content-Type: application/json; charset=utf-8

Body

{
  "type" : "CodeChallenge",
  "data" : [
    {
      "id" : "5a02126f35fd2f3b4cd155b7",
      "$type" : "CodeChallenge",
      "teamId" : "5a02126f35fd2f3b4cd155b2",
      "createdById" : "5a02126f35fd2f3b4cd155b9",
      "copiedFromId" : null,
      "title" : "Happy Calculator #133",
      "instructions" : "Complete the solution",
      "difficulty" : 1,
      "summary" : null,
      "purpose" : null,
      "topics" : [
        "Meta-programming"
      ],
      "buckets" : null,
      "estimatedTime" : 2,
      "state" : "published",
      "publishedAt" : "2017-11-07T20:07:11.290Z",
      "createdAt" : "2017-11-07T20:07:11.296Z",
      "updatedAt" : "2017-11-07T20:07:11.296Z",
      "libraryAccess" : null,
      "copiedFromLibrary" : null,
      "copiedFromContentType" : null,
      "contentType" : "normal",
      "productTypes" : {
        "_id" : "5a02126f35fd2f3b4cd155bb",
        "education" : true,
        "recruitment" : true
      },
      "collection" : "team",
      "protected" : false,
      "requiresUpgrade" : false,
      "defaultLanguage" : null,
      "enforceAllTestsOnPublish" : true,
      "enabledServices" : [],
      "yamlConfig" : null,
      "successMode" : "specs",
      "languages" : [
        {
          "id" : "5a02126f35fd2f3b4cd155bc",
          "name" : "javascript",
          "setup" : "var a = ",
          "exampleTestCases" : "Test.expect(a == 1)",
          "exampleWallTime" : null,
          "testFramework" : "cw-2",
          "languageVersion" : "6.x",
          "languageVersionName" : "Node v6.11.0",
          "challengeReferenceIds" : [],
          "availableTestFrameworks" : [
            "cw-2",
            "mocha_bdd",
            "mocha_tdd",
            "karma_bdd",
            "karma_tdd"
          ],
          "totalTestCases" : 1,
          "weightedTestCases" : 1,
          "tagTestCases" : null,
          "hiddenTestCases" : 0,
          "testCases" : "Test.expect(a == 1)",
          "preloaded" : null,
          "solution" : "var a = 1;",
          "validationHash" : 0,
          "exampleValidationHash" : 0
        }
      ]
    },
    {
      "id" : "5a02126f35fd2f3b4cd155bd",
      "$type" : "CodeChallenge",
      "teamId" : "5a02126135fd2f3b4cd1527b",
      "createdById" : "5a02126f35fd2f3b4cd155bf",
      "copiedFromId" : null,
      "title" : "Small Monad #134",
      "instructions" : "Complete the solution",
      "difficulty" : 1,
      "summary" : null,
      "purpose" : null,
      "topics" : [
        "Meta-programming"
      ],
      "buckets" : null,
      "estimatedTime" : 2,
      "state" : "published",
      "publishedAt" : "2017-11-07T20:07:11.314Z",
      "createdAt" : "2017-11-07T20:07:11.319Z",
      "updatedAt" : "2017-11-07T20:07:11.319Z",
      "libraryAccess" : "limited",
      "copiedFromLibrary" : null,
      "copiedFromContentType" : null,
      "contentType" : "normal",
      "productTypes" : {
        "_id" : "5a02126f35fd2f3b4cd155c0",
        "education" : true,
        "recruitment" : true
      },
      "collection" : "commons",
      "protected" : true,
      "requiresUpgrade" : false,
      "defaultLanguage" : null,
      "enforceAllTestsOnPublish" : true,
      "enabledServices" : [],
      "yamlConfig" : null,
      "successMode" : "specs",
      "languages" : [
        {
          "id" : "5a02126f35fd2f3b4cd155c1",
          "name" : "javascript",
          "setup" : "var a = ",
          "exampleTestCases" : "Test.expect(a == 1)",
          "exampleWallTime" : null,
          "testFramework" : "cw-2",
          "languageVersion" : "6.x",
          "languageVersionName" : "Node v6.11.0",
          "challengeReferenceIds" : [],
          "availableTestFrameworks" : [
            "cw-2",
            "mocha_bdd",
            "mocha_tdd",
            "karma_bdd",
            "karma_tdd"
          ],
          "totalTestCases" : 1,
          "weightedTestCases" : 1,
          "tagTestCases" : null,
          "hiddenTestCases" : 0,
          "testCases" : "XDP9g6uyVPZqp+/nBahVvynUJpy/QkGQ87sh+Te2+I8=\n--DRg8jp4JwTuiIwQ95sd6iw==--u"
        }
      ]
    },
    {
      "id" : "5a02126f35fd2f3b4cd155c7",
      "$type" : "CodeChallenge",
      "teamId" : "5a02126135fd2f3b4cd1527b",
      "createdById" : "5a02126f35fd2f3b4cd155c9",
      "copiedFromId" : null,
      "title" : "Cipher Problem #136",
      "instructions" : "Complete the solution",
      "difficulty" : 1,
      "summary" : null,
      "purpose" : null,
      "topics" : [
        "Fundamentals"
      ],
      "buckets" : [
        "Templates"
      ],
      "estimatedTime" : 2,
      "state" : "published",
      "publishedAt" : "2017-11-07T20:07:11.382Z",
      "createdAt" : "2017-11-07T20:07:11.388Z",
      "updatedAt" : "2017-11-07T20:07:11.388Z",
      "libraryAccess" : "limited",
      "copiedFromLibrary" : null,
      "copiedFromContentType" : null,
      "contentType" : "template",
      "productTypes" : {
        "_id" : "5a02126f35fd2f3b4cd155ca",
        "education" : true,
        "recruitment" : true
      },
      "collection" : "commons",
      "protected" : false,
      "requiresUpgrade" : false,
      "defaultLanguage" : null,
      "enforceAllTestsOnPublish" : true,
      "enabledServices" : [],
      "yamlConfig" : null,
      "successMode" : "specs",
      "languages" : [
        {
          "id" : "5a02126f35fd2f3b4cd155cb",
          "name" : "javascript",
          "setup" : "var a = ",
          "exampleTestCases" : "Test.expect(a == 1)",
          "exampleWallTime" : null,
          "testFramework" : "cw-2",
          "languageVersion" : "6.x",
          "languageVersionName" : "Node v6.11.0",
          "challengeReferenceIds" : [],
          "availableTestFrameworks" : [
            "cw-2",
            "mocha_bdd",
            "mocha_tdd",
            "karma_bdd",
            "karma_tdd"
          ],
          "totalTestCases" : 1,
          "weightedTestCases" : 1,
          "tagTestCases" : null,
          "hiddenTestCases" : 0,
          "testCases" : "Test.expect(a == 1)",
          "preloaded" : null,
          "solution" : "var a = 1;",
          "validationHash" : 0,
          "exampleValidationHash" : 0
        }
      ]
    }
  ],
  "currentPage" : 1,
  "totalPages" : 1,
  "totalCount" : 3,
  "meta" : {
    "timestamp" : "2017-11-07T12:07:11.517-08:00",
    "includes" : []
  }
}

Get

Endpoint

GET /v1/challenges/:id

Parameters

Name Description
id base16 ObjectId

Request

Route

GET /v1/challenges/5a02127035fd2f3b4cd15638

Headers

Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVhMDIxMjcwMzVmZDJmM2I0Y2QxNTYzOSIsImlkIjoiNWEwMjEyNzAzNWZkMmYzYjRjZDE1NjNhIiwic2VjcmV0Ijoibk5ROEpRPT0ifQ._XzCV_YpMtCttYQm1yWx_zERoB-NkH7rXFcVXaDR0_I

Response

Simulated Response

Status

200

Headers

Content-Type: application/json; charset=utf-8

Body

{
  "id" : "5a02127035fd2f3b4cd15638",
  "type" : "CodeChallenge",
  "data" : {
    "id" : "5a02127035fd2f3b4cd15638",
    "$type" : "CodeChallenge",
    "teamId" : "5a02127035fd2f3b4cd15633",
    "createdById" : "5a02127035fd2f3b4cd1563a",
    "copiedFromId" : null,
    "title" : "Inverted Methods #154",
    "instructions" : "Complete the solution",
    "difficulty" : 1,
    "summary" : null,
    "purpose" : null,
    "topics" : [
      "Meta-programming"
    ],
    "buckets" : null,
    "estimatedTime" : 2,
    "state" : "published",
    "publishedAt" : "2017-11-07T20:07:12.238Z",
    "createdAt" : "2017-11-07T20:07:12.244Z",
    "updatedAt" : "2017-11-07T20:07:12.244Z",
    "libraryAccess" : null,
    "copiedFromLibrary" : null,
    "copiedFromContentType" : null,
    "contentType" : "normal",
    "productTypes" : {
      "_id" : "5a02127035fd2f3b4cd1563c",
      "education" : true,
      "recruitment" : true
    },
    "collection" : "team",
    "protected" : false,
    "requiresUpgrade" : false,
    "defaultLanguage" : null,
    "enforceAllTestsOnPublish" : true,
    "enabledServices" : [],
    "yamlConfig" : null,
    "successMode" : "specs",
    "languages" : [
      {
        "id" : "5a02127035fd2f3b4cd1563d",
        "name" : "javascript",
        "setup" : "var a = ",
        "exampleTestCases" : "Test.expect(a == 1)",
        "exampleWallTime" : null,
        "testFramework" : "cw-2",
        "languageVersion" : "6.x",
        "languageVersionName" : "Node v6.11.0",
        "challengeReferenceIds" : [],
        "availableTestFrameworks" : [
          "cw-2",
          "mocha_bdd",
          "mocha_tdd",
          "karma_bdd",
          "karma_tdd"
        ],
        "totalTestCases" : 1,
        "weightedTestCases" : 1,
        "tagTestCases" : null,
        "hiddenTestCases" : 0,
        "testCases" : "Test.expect(a == 1)",
        "preloaded" : null,
        "solution" : "var a = 1;",
        "validationHash" : 0,
        "exampleValidationHash" : 0
      }
    ]
  },
  "meta" : {
    "enums" : {
      "successMode" : [
        {
          "value" : "specs",
          "text" : "Specs"
        },
        {
          "value" : "assertions",
          "text" : "Assertions"
        }
      ],
      "languages" : {
        "name" : [
          {
            "value" : "coffeescript",
            "text" : "Coffeescript"
          },
          {
            "value" : "javascript",
            "text" : "Javascript"
          },
          {
            "value" : "python",
            "text" : "Python"
          },
          {
            "value" : "ruby",
            "text" : "Ruby"
          },
          {
            "value" : "clojure",
            "text" : "Clojure"
          },
          {
            "value" : "haskell",
            "text" : "Haskell"
          },
          {
            "value" : "csharp",
            "text" : "Csharp"
          },
          {
            "value" : "solidity",
            "text" : "Solidity"
          },
          {
            "value" : "java",
            "text" : "Java"
          },
          {
            "value" : "elixir",
            "text" : "Elixir"
          },
          {
            "value" : "typescript",
            "text" : "Typescript"
          },
          {
            "value" : "cpp",
            "text" : "Cpp"
          },
          {
            "value" : "php",
            "text" : "Php"
          },
          {
            "value" : "sql",
            "text" : "Sql"
          },
          {
            "value" : "swift",
            "text" : "Swift"
          },
          {
            "value" : "shell",
            "text" : "Shell"
          },
          {
            "value" : "fsharp",
            "text" : "Fsharp"
          },
          {
            "value" : "ocaml",
            "text" : "Ocaml"
          },
          {
            "value" : "erlang",
            "text" : "Erlang"
          },
          {
            "value" : "objc",
            "text" : "Objc"
          },
          {
            "value" : "c",
            "text" : "C"
          },
          {
            "value" : "go",
            "text" : "Go"
          }
        ]
      }
    },
    "timestamp" : "2017-11-07T12:07:12.271-08:00",
    "includes" : []
  }
}

Create (Code Challenge)

Endpoint

POST /v1/challenges

Parameters

Name Description
data.$type required The type of challenge to create
data.title data.title
data.instructions data.instructions
data.purpose data.purpose
data.summary data.summary
data.estimated_time data.estimated time
data.difficulty data.difficulty
data.topics data.topics
data.state The state of the challenge, can be published, draft or archived
data.enforce_all_tests_on_publish Code Challenge only field: True if all tests should pass on publish, otherwise only a single test must pass. Default is true for new records
data.languages Code Challenge only field: An array of language objects.

Request

Route

POST /v1/challenges

Headers

Content-Type: application/json
Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVhMDIxMjcwMzVmZDJmM2I0Y2QxNTY0NCIsImlkIjoiNWEwMjEyNzAzNWZkMmYzYjRjZDE1NjQ1Iiwic2VjcmV0IjoiWG95Z3h3PT0ifQ.znzlLuWNpxF8IBEWwc8QlShQNI87Yf0-WXIu8cvpWOI

Body

{
  "data" : {
    "$type" : "CodeChallenge",
    "title" : "test challenge",
    "purpose" : "abc",
    "enforceAllTestsOnPublish" : false,
    "state" : "published",
    "instructions" : "Do some work",
    "languages" : [
      {
        "name" : "javascript",
        "solution" : "var a = 2",
        "test_cases" : "Test.assertEquals(a,2)"
      }
    ]
  }
}

Response

Simulated Response

Status

200

Headers

Content-Type: application/json; charset=utf-8

Body

{
  "id" : "5a02127035fd2f3b4cd15649",
  "type" : "CodeChallenge",
  "data" : {
    "id" : "5a02127035fd2f3b4cd15649",
    "$type" : "CodeChallenge",
    "teamId" : "5a02127035fd2f3b4cd1563e",
    "createdById" : "5a02127035fd2f3b4cd15645",
    "copiedFromId" : null,
    "title" : "test challenge",
    "instructions" : "Do some work",
    "difficulty" : null,
    "summary" : null,
    "purpose" : "abc",
    "topics" : null,
    "buckets" : null,
    "estimatedTime" : null,
    "state" : "published",
    "publishedAt" : "2017-11-07T20:07:12.371Z",
    "createdAt" : "2017-11-07T20:07:12.378Z",
    "updatedAt" : "2017-11-07T20:07:12.378Z",
    "libraryAccess" : null,
    "copiedFromLibrary" : null,
    "copiedFromContentType" : null,
    "contentType" : "normal",
    "productTypes" : {
      "_id" : "5a02127035fd2f3b4cd15640",
      "education" : true,
      "recruitment" : true
    },
    "collection" : "team",
    "protected" : false,
    "requiresUpgrade" : false,
    "defaultLanguage" : null,
    "enforceAllTestsOnPublish" : false,
    "enabledServices" : [],
    "yamlConfig" : null,
    "successMode" : "specs",
    "languages" : [
      {
        "id" : "5a02127035fd2f3b4cd1564b",
        "name" : "javascript",
        "setup" : null,
        "exampleTestCases" : null,
        "exampleWallTime" : null,
        "testFramework" : "cw-2",
        "languageVersion" : "6.x",
        "languageVersionName" : "Node v6.11.0",
        "challengeReferenceIds" : [],
        "availableTestFrameworks" : [
          "cw-2",
          "mocha_bdd",
          "mocha_tdd",
          "karma_bdd",
          "karma_tdd"
        ],
        "totalTestCases" : 0,
        "weightedTestCases" : 0,
        "tagTestCases" : null,
        "hiddenTestCases" : 0,
        "testCases" : "Test.assertEquals(a,2)",
        "preloaded" : null,
        "solution" : "var a = 2",
        "validationHash" : 0,
        "exampleValidationHash" : 0
      }
    ]
  },
  "meta" : {
    "enums" : {
      "successMode" : [
        {
          "value" : "specs",
          "text" : "Specs"
        },
        {
          "value" : "assertions",
          "text" : "Assertions"
        }
      ],
      "languages" : {
        "name" : [
          {
            "value" : "coffeescript",
            "text" : "Coffeescript"
          },
          {
            "value" : "javascript",
            "text" : "Javascript"
          },
          {
            "value" : "python",
            "text" : "Python"
          },
          {
            "value" : "ruby",
            "text" : "Ruby"
          },
          {
            "value" : "clojure",
            "text" : "Clojure"
          },
          {
            "value" : "haskell",
            "text" : "Haskell"
          },
          {
            "value" : "csharp",
            "text" : "Csharp"
          },
          {
            "value" : "solidity",
            "text" : "Solidity"
          },
          {
            "value" : "java",
            "text" : "Java"
          },
          {
            "value" : "elixir",
            "text" : "Elixir"
          },
          {
            "value" : "typescript",
            "text" : "Typescript"
          },
          {
            "value" : "cpp",
            "text" : "Cpp"
          },
          {
            "value" : "php",
            "text" : "Php"
          },
          {
            "value" : "sql",
            "text" : "Sql"
          },
          {
            "value" : "swift",
            "text" : "Swift"
          },
          {
            "value" : "shell",
            "text" : "Shell"
          },
          {
            "value" : "fsharp",
            "text" : "Fsharp"
          },
          {
            "value" : "ocaml",
            "text" : "Ocaml"
          },
          {
            "value" : "erlang",
            "text" : "Erlang"
          },
          {
            "value" : "objc",
            "text" : "Objc"
          },
          {
            "value" : "c",
            "text" : "C"
          },
          {
            "value" : "go",
            "text" : "Go"
          }
        ]
      }
    },
    "timestamp" : "2017-11-07T12:07:12.391-08:00",
    "includes" : []
  }
}

Create (Quiz Challenge)

Endpoint

POST /v1/challenges

Parameters

Name Description
data.title data.title
data.instructions data.instructions
data.purpose data.purpose
data.summary data.summary
data.estimated_time data.estimated time
data.difficulty data.difficulty
data.topics data.topics
data.state The state of the challenge, can be published, draft or archived

Request

Route

POST /v1/challenges

Headers

Content-Type: application/json
Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVhMDIxMjcwMzVmZDJmM2I0Y2QxNTY1MiIsImlkIjoiNWEwMjEyNzAzNWZkMmYzYjRjZDE1NjUzIiwic2VjcmV0IjoiUWVNV0tRPT0ifQ.JXnVsLzdJUXXtXm2OnRdLOpeXgpqI1zXEHfE9SA5D2M

Body

{
  "data" : {
    "$type" : "QuizChallenge",
    "title" : "test challenge",
    "purpose" : "abc",
    "state" : "draft",
    "instructions" : "Do some work"
  }
}

Response

Simulated Response

Status

200

Headers

Content-Type: application/json; charset=utf-8

Body

{
  "id" : "5a02127035fd2f3b4cd15658",
  "type" : "QuizChallenge",
  "data" : {
    "id" : "5a02127035fd2f3b4cd15658",
    "$type" : "QuizChallenge",
    "teamId" : "5a02127035fd2f3b4cd1564c",
    "createdById" : "5a02127035fd2f3b4cd15653",
    "copiedFromId" : null,
    "title" : "test challenge",
    "instructions" : "Do some work",
    "difficulty" : null,
    "summary" : null,
    "purpose" : "abc",
    "topics" : null,
    "buckets" : null,
    "estimatedTime" : null,
    "state" : "draft",
    "publishedAt" : null,
    "createdAt" : "2017-11-07T20:07:12.491Z",
    "updatedAt" : "2017-11-07T20:07:12.491Z",
    "libraryAccess" : null,
    "copiedFromLibrary" : null,
    "copiedFromContentType" : null,
    "contentType" : "normal",
    "productTypes" : {
      "_id" : "5a02127035fd2f3b4cd1564e",
      "education" : true,
      "recruitment" : true
    },
    "collection" : "team",
    "protected" : false,
    "requiresUpgrade" : false,
    "questions" : []
  },
  "meta" : {
    "timestamp" : "2017-11-07T12:07:12.500-08:00",
    "includes" : []
  }
}

Update

Endpoint

PUT /v1/challenges/:id

Parameters

Name Description
id required base16 ObjectId
data.title data.title
data.instructions data.instructions
data.purpose data.purpose
data.summary data.summary
data.estimated_time data.estimated time
data.difficulty data.difficulty
data.topics data.topics
data.languages CodeChallenge only field: An array of language objects. Provide a removed: true value if you wish to remove an existing challenge language

Request

Route

PUT /v1/challenges/5a02127035fd2f3b4cd1565f

Headers

Content-Type: application/json
Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVhMDIxMjcwMzVmZDJmM2I0Y2QxNTY2MCIsImlkIjoiNWEwMjEyNzAzNWZkMmYzYjRjZDE1NjYxIiwic2VjcmV0IjoiTlMxUVpBPT0ifQ.t2pGc-F1SsqR7U_qGrG1XD5fOVjn_6qAKJ_PmmjJuAc

Body

{
  "data" : {
    "languages" : [
      {
        "name" : "ruby",
        "solution" : "a = 1"
      }
    ]
  }
}

Response

Simulated Response

Status

200

Headers

Content-Type: application/json; charset=utf-8

Body

{
  "id" : "5a02127035fd2f3b4cd1565f",
  "type" : "CodeChallenge",
  "data" : {
    "id" : "5a02127035fd2f3b4cd1565f",
    "$type" : "CodeChallenge",
    "teamId" : "5a02127035fd2f3b4cd1565a",
    "createdById" : "5a02127035fd2f3b4cd15661",
    "copiedFromId" : null,
    "title" : "Utility Game #157",
    "instructions" : "Complete the solution",
    "difficulty" : 1,
    "summary" : null,
    "purpose" : null,
    "topics" : [
      "Algorithms"
    ],
    "buckets" : null,
    "estimatedTime" : 2,
    "state" : "draft",
    "publishedAt" : null,
    "createdAt" : "2017-11-07T20:07:12.550Z",
    "updatedAt" : "2017-11-07T20:07:12.550Z",
    "libraryAccess" : null,
    "copiedFromLibrary" : null,
    "copiedFromContentType" : null,
    "contentType" : "normal",
    "productTypes" : {
      "_id" : "5a02127035fd2f3b4cd15663",
      "education" : true,
      "recruitment" : true
    },
    "collection" : "team",
    "protected" : false,
    "requiresUpgrade" : false,
    "defaultLanguage" : null,
    "enforceAllTestsOnPublish" : true,
    "enabledServices" : [],
    "yamlConfig" : null,
    "successMode" : "specs",
    "languages" : [
      {
        "id" : "5a02127035fd2f3b4cd15665",
        "name" : "ruby",
        "setup" : null,
        "exampleTestCases" : null,
        "exampleWallTime" : null,
        "testFramework" : "cw-2",
        "languageVersion" : "2.3.x",
        "languageVersionName" : "MRI 2.3.0",
        "challengeReferenceIds" : [],
        "availableTestFrameworks" : [
          "cw-2",
          "rspec"
        ],
        "totalTestCases" : 0,
        "weightedTestCases" : 0,
        "tagTestCases" : null,
        "hiddenTestCases" : 0,
        "testCases" : null,
        "preloaded" : null,
        "solution" : "a = 1",
        "validationHash" : 0,
        "exampleValidationHash" : 0
      }
    ]
  },
  "meta" : {
    "enums" : {
      "successMode" : [
        {
          "value" : "specs",
          "text" : "Specs"
        },
        {
          "value" : "assertions",
          "text" : "Assertions"
        }
      ],
      "languages" : {
        "name" : [
          {
            "value" : "coffeescript",
            "text" : "Coffeescript"
          },
          {
            "value" : "javascript",
            "text" : "Javascript"
          },
          {
            "value" : "python",
            "text" : "Python"
          },
          {
            "value" : "ruby",
            "text" : "Ruby"
          },
          {
            "value" : "clojure",
            "text" : "Clojure"
          },
          {
            "value" : "haskell",
            "text" : "Haskell"
          },
          {
            "value" : "csharp",
            "text" : "Csharp"
          },
          {
            "value" : "solidity",
            "text" : "Solidity"
          },
          {
            "value" : "java",
            "text" : "Java"
          },
          {
            "value" : "elixir",
            "text" : "Elixir"
          },
          {
            "value" : "typescript",
            "text" : "Typescript"
          },
          {
            "value" : "cpp",
            "text" : "Cpp"
          },
          {
            "value" : "php",
            "text" : "Php"
          },
          {
            "value" : "sql",
            "text" : "Sql"
          },
          {
            "value" : "swift",
            "text" : "Swift"
          },
          {
            "value" : "shell",
            "text" : "Shell"
          },
          {
            "value" : "fsharp",
            "text" : "Fsharp"
          },
          {
            "value" : "ocaml",
            "text" : "Ocaml"
          },
          {
            "value" : "erlang",
            "text" : "Erlang"
          },
          {
            "value" : "objc",
            "text" : "Objc"
          },
          {
            "value" : "c",
            "text" : "C"
          },
          {
            "value" : "go",
            "text" : "Go"
          }
        ]
      }
    },
    "timestamp" : "2017-11-07T12:07:12.611-08:00",
    "includes" : []
  }
}

Delete

Endpoint

DELETE /v1/challenges/:id

Request

Route

DELETE /v1/challenges/5a02127035fd2f3b4cd1566b

Headers

Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVhMDIxMjcwMzVmZDJmM2I0Y2QxNTY2YyIsImlkIjoiNWEwMjEyNzAzNWZkMmYzYjRjZDE1NjZkIiwic2VjcmV0Ijoiam12bUxnPT0ifQ.A4Bx-6QYAfoJYnfLtRBfCt4VX5QyI9hVUw_DOWEVy3c
Content-Type: application/x-www-form-urlencoded

Response

Simulated Response

Status

204

Headers

Un-Publish

Endpoint

PUT /v1/challenges/:id/unpublish

Parameters

Name Description
id required base16 ObjectId

Request

Route

PUT /v1/challenges/5a02127035fd2f3b4cd15676/unpublish

Headers

Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVhMDIxMjcwMzVmZDJmM2I0Y2QxNTY3NyIsImlkIjoiNWEwMjEyNzAzNWZkMmYzYjRjZDE1Njc4Iiwic2VjcmV0IjoiY2RpVHNnPT0ifQ.pI5nFwXg5wy5ZI56VvJwJ4NsnEiiuFzwU97zYz0wur8
Content-Type: application/x-www-form-urlencoded

Response

Simulated Response

Status

200

Headers

Content-Type: application/json; charset=utf-8

Body

{
  "id" : "5a02127035fd2f3b4cd15676",
  "type" : "CodeChallenge",
  "data" : {
    "id" : "5a02127035fd2f3b4cd15676",
    "$type" : "CodeChallenge",
    "teamId" : "5a02127035fd2f3b4cd15671",
    "createdById" : "5a02127035fd2f3b4cd15678",
    "copiedFromId" : null,
    "title" : "Magic Encoding #159",
    "instructions" : "Complete the solution",
    "difficulty" : 1,
    "summary" : null,
    "purpose" : null,
    "topics" : [
      "Meta-programming"
    ],
    "buckets" : null,
    "estimatedTime" : 2,
    "state" : "draft",
    "publishedAt" : null,
    "createdAt" : "2017-11-07T20:07:12.758Z",
    "updatedAt" : "2017-11-07T20:07:12.778Z",
    "libraryAccess" : null,
    "copiedFromLibrary" : null,
    "copiedFromContentType" : null,
    "contentType" : "normal",
    "productTypes" : {
      "_id" : "5a02127035fd2f3b4cd1567a",
      "education" : true,
      "recruitment" : true
    },
    "collection" : "team",
    "protected" : false,
    "requiresUpgrade" : false,
    "defaultLanguage" : null,
    "enforceAllTestsOnPublish" : true,
    "enabledServices" : [],
    "yamlConfig" : null,
    "successMode" : "specs",
    "languages" : [
      {
        "id" : "5a02127035fd2f3b4cd1567b",
        "name" : "javascript",
        "setup" : "var a = ",
        "exampleTestCases" : "Test.expect(a == 1)",
        "exampleWallTime" : null,
        "testFramework" : "cw-2",
        "languageVersion" : "6.x",
        "languageVersionName" : "Node v6.11.0",
        "challengeReferenceIds" : [],
        "availableTestFrameworks" : [
          "cw-2",
          "mocha_bdd",
          "mocha_tdd",
          "karma_bdd",
          "karma_tdd"
        ],
        "totalTestCases" : 1,
        "weightedTestCases" : 1,
        "tagTestCases" : null,
        "hiddenTestCases" : 0,
        "testCases" : "Test.expect(a == 1)",
        "preloaded" : null,
        "solution" : "var a = 1;",
        "validationHash" : 0,
        "exampleValidationHash" : 0
      }
    ]
  },
  "meta" : {
    "enums" : {
      "successMode" : [
        {
          "value" : "specs",
          "text" : "Specs"
        },
        {
          "value" : "assertions",
          "text" : "Assertions"
        }
      ],
      "languages" : {
        "name" : [
          {
            "value" : "coffeescript",
            "text" : "Coffeescript"
          },
          {
            "value" : "javascript",
            "text" : "Javascript"
          },
          {
            "value" : "python",
            "text" : "Python"
          },
          {
            "value" : "ruby",
            "text" : "Ruby"
          },
          {
            "value" : "clojure",
            "text" : "Clojure"
          },
          {
            "value" : "haskell",
            "text" : "Haskell"
          },
          {
            "value" : "csharp",
            "text" : "Csharp"
          },
          {
            "value" : "solidity",
            "text" : "Solidity"
          },
          {
            "value" : "java",
            "text" : "Java"
          },
          {
            "value" : "elixir",
            "text" : "Elixir"
          },
          {
            "value" : "typescript",
            "text" : "Typescript"
          },
          {
            "value" : "cpp",
            "text" : "Cpp"
          },
          {
            "value" : "php",
            "text" : "Php"
          },
          {
            "value" : "sql",
            "text" : "Sql"
          },
          {
            "value" : "swift",
            "text" : "Swift"
          },
          {
            "value" : "shell",
            "text" : "Shell"
          },
          {
            "value" : "fsharp",
            "text" : "Fsharp"
          },
          {
            "value" : "ocaml",
            "text" : "Ocaml"
          },
          {
            "value" : "erlang",
            "text" : "Erlang"
          },
          {
            "value" : "objc",
            "text" : "Objc"
          },
          {
            "value" : "c",
            "text" : "C"
          },
          {
            "value" : "go",
            "text" : "Go"
          }
        ]
      }
    },
    "timestamp" : "2017-11-07T12:07:12.793-08:00",
    "includes" : []
  }
}

Publish

Endpoint

PUT /v1/challenges/:id/publish

Parameters

Name Description
id required base16 ObjectId

Request

Route

PUT /v1/challenges/5a02127035fd2f3b4cd15681/publish

Headers

Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVhMDIxMjcwMzVmZDJmM2I0Y2QxNTY4MiIsImlkIjoiNWEwMjEyNzAzNWZkMmYzYjRjZDE1NjgzIiwic2VjcmV0IjoiUlFlRk9BPT0ifQ.Uv6cXOQm2yp7Sj0_Sx3g44Cu9hq1S-6v6lv2NOpOhQA
Content-Type: application/x-www-form-urlencoded

Response

Simulated Response

Status

200

Headers

Content-Type: application/json; charset=utf-8

Body

{
  "id" : "5a02127035fd2f3b4cd15681",
  "type" : "CodeChallenge",
  "data" : {
    "id" : "5a02127035fd2f3b4cd15681",
    "$type" : "CodeChallenge",
    "teamId" : "5a02127035fd2f3b4cd1567c",
    "createdById" : "5a02127035fd2f3b4cd15683",
    "copiedFromId" : null,
    "title" : "Binding Enumerator #160",
    "instructions" : "Complete the solution",
    "difficulty" : 1,
    "summary" : null,
    "purpose" : null,
    "topics" : [
      "Fundamentals"
    ],
    "buckets" : null,
    "estimatedTime" : 2,
    "state" : "published",
    "publishedAt" : "2017-11-07T20:07:12.879Z",
    "createdAt" : "2017-11-07T20:07:12.865Z",
    "updatedAt" : "2017-11-07T20:07:12.882Z",
    "libraryAccess" : null,
    "copiedFromLibrary" : null,
    "copiedFromContentType" : null,
    "contentType" : "normal",
    "productTypes" : {
      "_id" : "5a02127035fd2f3b4cd15685",
      "education" : true,
      "recruitment" : true
    },
    "collection" : "team",
    "protected" : false,
    "requiresUpgrade" : false,
    "defaultLanguage" : null,
    "enforceAllTestsOnPublish" : true,
    "enabledServices" : [],
    "yamlConfig" : null,
    "successMode" : "specs",
    "languages" : [
      {
        "id" : "5a02127035fd2f3b4cd15686",
        "name" : "javascript",
        "setup" : "var a = ",
        "exampleTestCases" : "Test.expect(a == 1)",
        "exampleWallTime" : null,
        "testFramework" : "cw-2",
        "languageVersion" : "6.x",
        "languageVersionName" : "Node v6.11.0",
        "challengeReferenceIds" : [],
        "availableTestFrameworks" : [
          "cw-2",
          "mocha_bdd",
          "mocha_tdd",
          "karma_bdd",
          "karma_tdd"
        ],
        "totalTestCases" : 1,
        "weightedTestCases" : 1,
        "tagTestCases" : null,
        "hiddenTestCases" : 0,
        "testCases" : "Test.expect(a == 1)",
        "preloaded" : null,
        "solution" : "var a = 1;",
        "validationHash" : 0,
        "exampleValidationHash" : 0
      }
    ]
  },
  "meta" : {
    "enums" : {
      "successMode" : [
        {
          "value" : "specs",
          "text" : "Specs"
        },
        {
          "value" : "assertions",
          "text" : "Assertions"
        }
      ],
      "languages" : {
        "name" : [
          {
            "value" : "coffeescript",
            "text" : "Coffeescript"
          },
          {
            "value" : "javascript",
            "text" : "Javascript"
          },
          {
            "value" : "python",
            "text" : "Python"
          },
          {
            "value" : "ruby",
            "text" : "Ruby"
          },
          {
            "value" : "clojure",
            "text" : "Clojure"
          },
          {
            "value" : "haskell",
            "text" : "Haskell"
          },
          {
            "value" : "csharp",
            "text" : "Csharp"
          },
          {
            "value" : "solidity",
            "text" : "Solidity"
          },
          {
            "value" : "java",
            "text" : "Java"
          },
          {
            "value" : "elixir",
            "text" : "Elixir"
          },
          {
            "value" : "typescript",
            "text" : "Typescript"
          },
          {
            "value" : "cpp",
            "text" : "Cpp"
          },
          {
            "value" : "php",
            "text" : "Php"
          },
          {
            "value" : "sql",
            "text" : "Sql"
          },
          {
            "value" : "swift",
            "text" : "Swift"
          },
          {
            "value" : "shell",
            "text" : "Shell"
          },
          {
            "value" : "fsharp",
            "text" : "Fsharp"
          },
          {
            "value" : "ocaml",
            "text" : "Ocaml"
          },
          {
            "value" : "erlang",
            "text" : "Erlang"
          },
          {
            "value" : "objc",
            "text" : "Objc"
          },
          {
            "value" : "c",
            "text" : "C"
          },
          {
            "value" : "go",
            "text" : "Go"
          }
        ]
      }
    },
    "timestamp" : "2017-11-07T12:07:12.896-08:00",
    "includes" : []
  }
}

Archive

Endpoint

PUT /v1/challenges/:id/archive

Parameters

Name Description
id required base16 ObjectId

Request

Route

PUT /v1/challenges/5a02127035fd2f3b4cd1568c/archive

Headers

Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVhMDIxMjcwMzVmZDJmM2I0Y2QxNTY4ZCIsImlkIjoiNWEwMjEyNzAzNWZkMmYzYjRjZDE1NjhlIiwic2VjcmV0IjoiZVhTc09nPT0ifQ.HRXfUBfbf_xg5-Bkq91vPeyDOB_T618B-N1yumtaSqo
Content-Type: application/x-www-form-urlencoded

Response

Simulated Response

Status

200

Headers

Content-Type: application/json; charset=utf-8

Body

{
  "id" : "5a02127035fd2f3b4cd1568c",
  "type" : "CodeChallenge",
  "data" : {
    "id" : "5a02127035fd2f3b4cd1568c",
    "$type" : "CodeChallenge",
    "teamId" : "5a02127035fd2f3b4cd15687",
    "createdById" : "5a02127035fd2f3b4cd1568e",
    "copiedFromId" : null,
    "title" : "Sequence Puzzle #161",
    "instructions" : "Complete the solution",
    "difficulty" : 1,
    "summary" : null,
    "purpose" : null,
    "topics" : [
      "Fundamentals"
    ],
    "buckets" : null,
    "estimatedTime" : 2,
    "state" : "archived",
    "publishedAt" : "2017-11-07T20:07:12.939Z",
    "createdAt" : "2017-11-07T20:07:12.945Z",
    "updatedAt" : "2017-11-07T20:07:12.963Z",
    "libraryAccess" : null,
    "copiedFromLibrary" : null,
    "copiedFromContentType" : null,
    "contentType" : "normal",
    "productTypes" : {
      "_id" : "5a02127035fd2f3b4cd15690",
      "education" : true,
      "recruitment" : true
    },
    "collection" : "team",
    "protected" : false,
    "requiresUpgrade" : false,
    "defaultLanguage" : null,
    "enforceAllTestsOnPublish" : true,
    "enabledServices" : [],
    "yamlConfig" : null,
    "successMode" : "specs",
    "languages" : [
      {
        "id" : "5a02127035fd2f3b4cd15691",
        "name" : "javascript",
        "setup" : "var a = ",
        "exampleTestCases" : "Test.expect(a == 1)",
        "exampleWallTime" : null,
        "testFramework" : "cw-2",
        "languageVersion" : "6.x",
        "languageVersionName" : "Node v6.11.0",
        "challengeReferenceIds" : [],
        "availableTestFrameworks" : [
          "cw-2",
          "mocha_bdd",
          "mocha_tdd",
          "karma_bdd",
          "karma_tdd"
        ],
        "totalTestCases" : 1,
        "weightedTestCases" : 1,
        "tagTestCases" : null,
        "hiddenTestCases" : 0,
        "testCases" : "Test.expect(a == 1)",
        "preloaded" : null,
        "solution" : "var a = 1;",
        "validationHash" : 0,
        "exampleValidationHash" : 0
      }
    ]
  },
  "meta" : {
    "enums" : {
      "successMode" : [
        {
          "value" : "specs",
          "text" : "Specs"
        },
        {
          "value" : "assertions",
          "text" : "Assertions"
        }
      ],
      "languages" : {
        "name" : [
          {
            "value" : "coffeescript",
            "text" : "Coffeescript"
          },
          {
            "value" : "javascript",
            "text" : "Javascript"
          },
          {
            "value" : "python",
            "text" : "Python"
          },
          {
            "value" : "ruby",
            "text" : "Ruby"
          },
          {
            "value" : "clojure",
            "text" : "Clojure"
          },
          {
            "value" : "haskell",
            "text" : "Haskell"
          },
          {
            "value" : "csharp",
            "text" : "Csharp"
          },
          {
            "value" : "solidity",
            "text" : "Solidity"
          },
          {
            "value" : "java",
            "text" : "Java"
          },
          {
            "value" : "elixir",
            "text" : "Elixir"
          },
          {
            "value" : "typescript",
            "text" : "Typescript"
          },
          {
            "value" : "cpp",
            "text" : "Cpp"
          },
          {
            "value" : "php",
            "text" : "Php"
          },
          {
            "value" : "sql",
            "text" : "Sql"
          },
          {
            "value" : "swift",
            "text" : "Swift"
          },
          {
            "value" : "shell",
            "text" : "Shell"
          },
          {
            "value" : "fsharp",
            "text" : "Fsharp"
          },
          {
            "value" : "ocaml",
            "text" : "Ocaml"
          },
          {
            "value" : "erlang",
            "text" : "Erlang"
          },
          {
            "value" : "objc",
            "text" : "Objc"
          },
          {
            "value" : "c",
            "text" : "C"
          },
          {
            "value" : "go",
            "text" : "Go"
          }
        ]
      }
    },
    "timestamp" : "2017-11-07T12:07:12.979-08:00",
    "includes" : []
  }
}

Un-archive

Endpoint

PUT /v1/challenges/:id/unarchive

Parameters

Name Description
id required base16 ObjectId

Request

Route

PUT /v1/challenges/5a02127135fd2f3b4cd156a5/unarchive

Headers

Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVhMDIxMjcxMzVmZDJmM2I0Y2QxNTZhNiIsImlkIjoiNWEwMjEyNzEzNWZkMmYzYjRjZDE1NmE3Iiwic2VjcmV0IjoiTklRSy9RPT0ifQ.IWzhvqvGL_h1Va5Sn78524C8j3VfTYRuWz_5V-6gKHQ
Content-Type: application/x-www-form-urlencoded

Response

Simulated Response

Status

200

Headers

Content-Type: application/json; charset=utf-8

Body

{
  "id" : "5a02127135fd2f3b4cd156a5",
  "type" : "CodeChallenge",
  "data" : {
    "id" : "5a02127135fd2f3b4cd156a5",
    "$type" : "CodeChallenge",
    "teamId" : "5a02127135fd2f3b4cd156a0",
    "createdById" : "5a02127135fd2f3b4cd156a7",
    "copiedFromId" : null,
    "title" : "Actor Lists #163",
    "instructions" : "Complete the solution",
    "difficulty" : 1,
    "summary" : null,
    "purpose" : null,
    "topics" : [
      "Fundamentals"
    ],
    "buckets" : null,
    "estimatedTime" : 2,
    "state" : "published",
    "publishedAt" : "2017-11-07T20:07:13.148Z",
    "createdAt" : "2017-11-07T20:07:13.135Z",
    "updatedAt" : "2017-11-07T20:07:13.152Z",
    "libraryAccess" : null,
    "copiedFromLibrary" : null,
    "copiedFromContentType" : null,
    "contentType" : "normal",
    "productTypes" : {
      "_id" : "5a02127135fd2f3b4cd156a9",
      "education" : true,
      "recruitment" : true
    },
    "collection" : "team",
    "protected" : false,
    "requiresUpgrade" : false,
    "defaultLanguage" : null,
    "enforceAllTestsOnPublish" : true,
    "enabledServices" : [],
    "yamlConfig" : null,
    "successMode" : "specs",
    "languages" : [
      {
        "id" : "5a02127135fd2f3b4cd156aa",
        "name" : "javascript",
        "setup" : "var a = ",
        "exampleTestCases" : "Test.expect(a == 1)",
        "exampleWallTime" : null,
        "testFramework" : "cw-2",
        "languageVersion" : "6.x",
        "languageVersionName" : "Node v6.11.0",
        "challengeReferenceIds" : [],
        "availableTestFrameworks" : [
          "cw-2",
          "mocha_bdd",
          "mocha_tdd",
          "karma_bdd",
          "karma_tdd"
        ],
        "totalTestCases" : 1,
        "weightedTestCases" : 1,
        "tagTestCases" : null,
        "hiddenTestCases" : 0,
        "testCases" : "Test.expect(a == 1)",
        "preloaded" : null,
        "solution" : "var a = 1;",
        "validationHash" : 0,
        "exampleValidationHash" : 0
      }
    ]
  },
  "meta" : {
    "enums" : {
      "successMode" : [
        {
          "value" : "specs",
          "text" : "Specs"
        },
        {
          "value" : "assertions",
          "text" : "Assertions"
        }
      ],
      "languages" : {
        "name" : [
          {
            "value" : "coffeescript",
            "text" : "Coffeescript"
          },
          {
            "value" : "javascript",
            "text" : "Javascript"
          },
          {
            "value" : "python",
            "text" : "Python"
          },
          {
            "value" : "ruby",
            "text" : "Ruby"
          },
          {
            "value" : "clojure",
            "text" : "Clojure"
          },
          {
            "value" : "haskell",
            "text" : "Haskell"
          },
          {
            "value" : "csharp",
            "text" : "Csharp"
          },
          {
            "value" : "solidity",
            "text" : "Solidity"
          },
          {
            "value" : "java",
            "text" : "Java"
          },
          {
            "value" : "elixir",
            "text" : "Elixir"
          },
          {
            "value" : "typescript",
            "text" : "Typescript"
          },
          {
            "value" : "cpp",
            "text" : "Cpp"
          },
          {
            "value" : "php",
            "text" : "Php"
          },
          {
            "value" : "sql",
            "text" : "Sql"
          },
          {
            "value" : "swift",
            "text" : "Swift"
          },
          {
            "value" : "shell",
            "text" : "Shell"
          },
          {
            "value" : "fsharp",
            "text" : "Fsharp"
          },
          {
            "value" : "ocaml",
            "text" : "Ocaml"
          },
          {
            "value" : "erlang",
            "text" : "Erlang"
          },
          {
            "value" : "objc",
            "text" : "Objc"
          },
          {
            "value" : "c",
            "text" : "C"
          },
          {
            "value" : "go",
            "text" : "Go"
          }
        ]
      }
    },
    "timestamp" : "2017-11-07T12:07:13.164-08:00",
    "includes" : []
  }
}

Import

Imports a challenge into the team library. Can also be used to copy challenges

Endpoint

POST /v1/challenges/:id/import

Parameters

Name Description
id required base16 ObjectId

Request

Route

POST /v1/challenges/5a02127135fd2f3b4cd1571e/import

Headers

Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVhMDIxMjcxMzVmZDJmM2I0Y2QxNTcxZiIsImlkIjoiNWEwMjEyNzEzNWZkMmYzYjRjZDE1NzIwIiwic2VjcmV0IjoiQXd3eEl3PT0ifQ.LINv-TCrbslIdciRJBweRsCX5kxB0X_aJIH_XKaqOWs
Content-Type: application/x-www-form-urlencoded

Response

Simulated Response

Status

200

Headers

Content-Type: application/json; charset=utf-8

Body

{
  "id" : "5a02127235fd2f3b4cd15725",
  "type" : "CodeChallenge",
  "data" : {
    "id" : "5a02127235fd2f3b4cd15725",
    "$type" : "CodeChallenge",
    "teamId" : "5a02127135fd2f3b4cd15719",
    "createdById" : "5a02127135fd2f3b4cd15720",
    "copiedFromId" : "5a02127135fd2f3b4cd1571e",
    "title" : "Password Encoding #167 (copy #1)",
    "instructions" : "Complete the solution",
    "difficulty" : 1,
    "summary" : null,
    "purpose" : null,
    "topics" : [
      "Meta-programming"
    ],
    "buckets" : null,
    "estimatedTime" : 2,
    "state" : "published",
    "publishedAt" : "2017-11-07T20:07:14.012Z",
    "createdAt" : "2017-11-07T20:07:13.961Z",
    "updatedAt" : "2017-11-07T20:07:13.961Z",
    "libraryAccess" : null,
    "copiedFromLibrary" : false,
    "copiedFromContentType" : "normal",
    "contentType" : "normal",
    "productTypes" : {
      "_id" : "5a02127235fd2f3b4cd15728",
      "education" : true,
      "recruitment" : true
    },
    "collection" : "team",
    "protected" : false,
    "requiresUpgrade" : false,
    "defaultLanguage" : null,
    "enforceAllTestsOnPublish" : true,
    "enabledServices" : [],
    "yamlConfig" : null,
    "successMode" : "specs",
    "languages" : [
      {
        "id" : "5a02127235fd2f3b4cd15727",
        "name" : "javascript",
        "setup" : "var a = ",
        "exampleTestCases" : "Test.expect(a == 1)",
        "exampleWallTime" : null,
        "testFramework" : "cw-2",
        "languageVersion" : "6.x",
        "languageVersionName" : "Node v6.11.0",
        "challengeReferenceIds" : [],
        "availableTestFrameworks" : [
          "cw-2",
          "mocha_bdd",
          "mocha_tdd",
          "karma_bdd",
          "karma_tdd"
        ],
        "totalTestCases" : 1,
        "weightedTestCases" : 1,
        "tagTestCases" : null,
        "hiddenTestCases" : 0,
        "testCases" : "Test.expect(a == 1)",
        "preloaded" : null,
        "solution" : "var a = 1;",
        "validationHash" : 0,
        "exampleValidationHash" : 0
      }
    ]
  },
  "meta" : {
    "enums" : {
      "successMode" : [
        {
          "value" : "specs",
          "text" : "Specs"
        },
        {
          "value" : "assertions",
          "text" : "Assertions"
        }
      ],
      "languages" : {
        "name" : [
          {
            "value" : "coffeescript",
            "text" : "Coffeescript"
          },
          {
            "value" : "javascript",
            "text" : "Javascript"
          },
          {
            "value" : "python",
            "text" : "Python"
          },
          {
            "value" : "ruby",
            "text" : "Ruby"
          },
          {
            "value" : "clojure",
            "text" : "Clojure"
          },
          {
            "value" : "haskell",
            "text" : "Haskell"
          },
          {
            "value" : "csharp",
            "text" : "Csharp"
          },
          {
            "value" : "solidity",
            "text" : "Solidity"
          },
          {
            "value" : "java",
            "text" : "Java"
          },
          {
            "value" : "elixir",
            "text" : "Elixir"
          },
          {
            "value" : "typescript",
            "text" : "Typescript"
          },
          {
            "value" : "cpp",
            "text" : "Cpp"
          },
          {
            "value" : "php",
            "text" : "Php"
          },
          {
            "value" : "sql",
            "text" : "Sql"
          },
          {
            "value" : "swift",
            "text" : "Swift"
          },
          {
            "value" : "shell",
            "text" : "Shell"
          },
          {
            "value" : "fsharp",
            "text" : "Fsharp"
          },
          {
            "value" : "ocaml",
            "text" : "Ocaml"
          },
          {
            "value" : "erlang",
            "text" : "Erlang"
          },
          {
            "value" : "objc",
            "text" : "Objc"
          },
          {
            "value" : "c",
            "text" : "C"
          },
          {
            "value" : "go",
            "text" : "Go"
          }
        ]
      }
    },
    "timestamp" : "2017-11-07T12:07:14.029-08:00",
    "includes" : []
  }
}

Codecasters

Get

Returns a codecaster account

Endpoint

GET /v1/codecasters/:id

Request

Route

GET /v1/codecasters/5a02127435fd2f3b4cd1589c

Headers

Authorization: fxQFxewXIgq6eTznWEpPUklw3Zh3aLWR

Response

Simulated Response

Status

200

Headers

Content-Type: application/json; charset=utf-8

Body

{
  "id" : "5a02127435fd2f3b4cd1589c",
  "type" : "Codecaster",
  "data" : {
    "id" : "5a02127435fd2f3b4cd1589c",
    "$type" : "Codecaster",
    "firstName" : "Joe",
    "lastName" : "Smith310",
    "name" : "Joe Smith310",
    "email" : "[email protected]",
    "profileImg" : null
  },
  "meta" : {
    "enums" : {
      "state" : [
        {
          "value" : "invited",
          "text" : "Invited"
        },
        {
          "value" : "active",
          "text" : "Active"
        },
        {
          "value" : "inactive",
          "text" : "Inactive"
        }
      ]
    },
    "timestamp" : "2017-11-07T12:07:16.950-08:00",
    "includes" : []
  }
}

Update

Updates the codecaster

Endpoint

PUT /v1/codecasters/:id

Request

Route

PUT /v1/codecasters/5a02127435fd2f3b4cd158a6

Headers

Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVhMDIxMjc0MzVmZDJmM2I0Y2QxNThhNSIsImlkIjoiNWEwMjEyNzQzNWZkMmYzYjRjZDE1OGE2Iiwic2VjcmV0IjoiazQxUXFnPT0ifQ.1Ck5yP180YNbnMgfKqg_84qtbAIv9UUAJvMHTfX1iwM
Content-Type: application/x-www-form-urlencoded

Body

data[first_name]=Charles&data[last_name]=Darwin

Response

Simulated Response

Status

200

Headers

Content-Type: application/json; charset=utf-8

Body

{
  "id" : "5a02127435fd2f3b4cd158a6",
  "type" : "Codecaster",
  "data" : {
    "id" : "5a02127435fd2f3b4cd158a6",
    "$type" : "Codecaster",
    "firstName" : "Charles",
    "lastName" : "Darwin",
    "name" : "Charles Darwin",
    "email" : "[email protected]",
    "profileImg" : null,
    "createdAt" : "2017-11-07T20:07:16.967Z",
    "updatedAt" : "2017-11-07T20:07:16.987Z",
    "uiPrefs" : null,
    "experiments" : null,
    "envRoomId" : "test_zHtkLMrcsShrkXG8Q6L4Sg",
    "hasPassword" : true,
    "unseenProductReleases" : 0
  },
  "meta" : {
    "enums" : {
      "state" : [
        {
          "value" : "invited",
          "text" : "Invited"
        },
        {
          "value" : "active",
          "text" : "Active"
        },
        {
          "value" : "inactive",
          "text" : "Inactive"
        }
      ]
    },
    "timestamp" : "2017-11-07T12:07:16.994-08:00",
    "includes" : []
  }
}

Note

List

Endpoint

GET /v1/notes

Parameters

Name Description
includes Valid values are:
notable_id required id of the parent the note belongs to

Request

Route

GET /v1/notes?notable_id=5a02127735fd2f3b4cd159ed

Headers

Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVhMDIxMjc3MzVmZDJmM2I0Y2QxNTllMyIsImlkIjoiNWEwMjEyNzczNWZkMmYzYjRjZDE1OWU0Iiwic2VjcmV0IjoibUc4UG13PT0ifQ.K-Vi7EbeGbhPtnGyoyE2gywFdSyuB-1fY4BkUlk86lI

Query Parameters

notable_id=5a02127735fd2f3b4cd159ed

Response

Simulated Response

Status

200

Headers

Content-Type: application/json; charset=utf-8

Body

{
  "type" : "Note",
  "data" : [
    {
      "id" : "5a02127735fd2f3b4cd159f4",
      "body" : "Optio et vel quia tempore quia est harum excepturi.",
      "userId" : "5a02127735fd2f3b4cd159ef",
      "createdAt" : null,
      "updatedAt" : null,
      "notableId" : "5a02127735fd2f3b4cd159ed"
    },
    {
      "id" : "5a02127735fd2f3b4cd159f5",
      "body" : "Quisquam provident illo sint beatae odio.",
      "userId" : "5a02127735fd2f3b4cd159f2",
      "createdAt" : null,
      "updatedAt" : null,
      "notableId" : "5a02127735fd2f3b4cd159ed"
    }
  ],
  "currentPage" : 1,
  "totalPages" : 1,
  "totalCount" : 2,
  "meta" : {
    "timestamp" : "2017-11-07T12:07:19.576-08:00",
    "includes" : []
  }
}

Get

Endpoint

GET /v1/notes/:id

Parameters

Name Description
notable_id id of the parent the note belongs to

Request

Route

GET /v1/notes/5a02127735fd2f3b4cd15a07

Headers

Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVhMDIxMjc3MzVmZDJmM2I0Y2QxNTlmNiIsImlkIjoiNWEwMjEyNzczNWZkMmYzYjRjZDE1OWY3Iiwic2VjcmV0IjoiMWZlSW1BPT0ifQ.qPOLaBuycnaNvfVmbqANjxfyNz3YZ0YFC6dXxOevrTY

Response

Simulated Response

Status

200

Headers

Content-Type: application/json; charset=utf-8

Body

{
  "id" : "5a02127735fd2f3b4cd15a07",
  "type" : "Note",
  "data" : {
    "id" : "5a02127735fd2f3b4cd15a07",
    "body" : "Possimus labore fugit sequi porro earum reiciendis est.",
    "userId" : "5a02127735fd2f3b4cd15a02",
    "createdAt" : null,
    "updatedAt" : null,
    "notableId" : "5a02127735fd2f3b4cd15a00"
  },
  "meta" : {
    "timestamp" : "2017-11-07T12:07:19.738-08:00",
    "includes" : []
  }
}

Create

Endpoint

POST /v1/notes

Parameters

Name Description
data.body required data.body
data.notable_id required id of the parent the note belongs to
data.notable_type type of the parent. Defaults to TeamCandidate

Request

Route

POST /v1/notes

Headers

Content-Type: application/json
Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVhMDIxMjc3MzVmZDJmM2I0Y2QxNWEwOSIsImlkIjoiNWEwMjEyNzczNWZkMmYzYjRjZDE1YTBhIiwic2VjcmV0IjoiWG8zZk5nPT0ifQ.UcRDvXH2wPmvEVhNsSmgE8Q3ECG2k25cUo9vUjd2N-E

Body

{
  "data" : {
    "body" : "body",
    "notable_id" : "5a02127735fd2f3b4cd15a13",
    "notable_type" : "TeamCandidate"
  }
}

Response

Simulated Response

Status

200

Headers

Content-Type: application/json; charset=utf-8

Body

{
  "id" : "5a02127735fd2f3b4cd15a1c",
  "type" : "Note",
  "data" : {
    "id" : "5a02127735fd2f3b4cd15a1c",
    "body" : "body",
    "userId" : "5a02127735fd2f3b4cd15a0a",
    "createdAt" : "2017-11-07T20:07:19.869Z",
    "updatedAt" : "2017-11-07T20:07:19.869Z",
    "notableId" : "5a02127735fd2f3b4cd15a13"
  },
  "meta" : {
    "timestamp" : "2017-11-07T12:07:19.873-08:00",
    "includes" : []
  }
}

Update

Endpoint

PUT /v1/notes/:id

Parameters

Name Description
data.foo required data.foo

Request

Route

PUT /v1/notes/5a02127835fd2f3b4cd15a2e

Headers

Content-Type: application/json
Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVhMDIxMjc3MzVmZDJmM2I0Y2QxNWExZCIsImlkIjoiNWEwMjEyNzczNWZkMmYzYjRjZDE1YTFlIiwic2VjcmV0IjoiNEJVNFVBPT0ifQ.NHyP2Q3XtU9XoL7dvChRonDb1Krd-aEbQi20Gi6LDEs

Body

{
  "data" : {
    "body" : "foo"
  },
  "includes" : []
}

Response

Simulated Response

Status

200

Headers

Content-Type: application/json; charset=utf-8

Body

{
  "id" : "5a02127835fd2f3b4cd15a2e",
  "type" : "Note",
  "data" : {
    "id" : "5a02127835fd2f3b4cd15a2e",
    "body" : "foo",
    "userId" : "5a02127735fd2f3b4cd15a29",
    "createdAt" : null,
    "updatedAt" : "2017-11-07T20:07:20.031Z",
    "notableId" : "5a02127735fd2f3b4cd15a27"
  },
  "meta" : {
    "timestamp" : "2017-11-07T12:07:20.034-08:00",
    "includes" : []
  }
}

Delete

Endpoint

DELETE /v1/notes/:id

Request

Route

DELETE /v1/notes/5a02127835fd2f3b4cd15a41

Headers

Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVhMDIxMjc4MzVmZDJmM2I0Y2QxNWEzMCIsImlkIjoiNWEwMjEyNzgzNWZkMmYzYjRjZDE1YTMxIiwic2VjcmV0IjoiNVNMeEF3PT0ifQ.WRoTtG85H-xiFK_q4SVMNAE2jPpJiZhJuVuz5WAyKJI
Content-Type: application/x-www-form-urlencoded

Response

Simulated Response

Status

204

Headers

Quiz Questions

List

This endpoint will return a list of questions for a particular quiz challenge.

Endpoint

GET /v1/quiz_questions

Parameters

Name Description
includes Valid values are: revisions

Request

Route

GET /v1/quiz_questions?challenge_id=5a02127935fd2f3b4cd15acb

Headers

Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVhMDIxMjc5MzVmZDJmM2I0Y2QxNWFjYyIsImlkIjoiNWEwMjEyNzkzNWZkMmYzYjRjZDE1YWNkIiwic2VjcmV0IjoiR1hVZWlnPT0ifQ.rVpxuJSYs7DRVCAkq30DgckQBD5TJsdyWK4F9vi3YVk

Query Parameters

challenge_id=5a02127935fd2f3b4cd15acb

Response

Simulated Response

Status

200

Headers

Content-Type: application/json; charset=utf-8

Body

{
  "type" : "QuizMultipleChoiceQuestion",
  "data" : [
    {
      "id" : "5a02127935fd2f3b4cd15ad0",
      "$type" : "QuizMultipleChoiceQuestion",
      "prompt" : "Quos adipisci consequuntur. Et aut qui facilis non. Et eos rerum est ipsa. Consequatur id commodi occaecati aut suscipit.",
      "position" : null,
      "options" : null,
      "weight" : 1.0,
      "allOrNothing" : false,
      "categories" : null,
      "choices" : [
        "True",
        "False"
      ],
      "sorted" : null,
      "maxSelections" : null,
      "answers" : [
        0
      ]
    },
    {
      "id" : "5a02127935fd2f3b4cd15ad1",
      "$type" : "QuizTextQuestion",
      "prompt" : "Omnis ex quisquam eos eaque. Placeat molestias alias eligendi ut. Ut sunt et consectetur sint quasi. Quia autem veritatis. Reprehenderit dicta et enim.",
      "position" : null,
      "options" : null,
      "weight" : 1.0,
      "allOrNothing" : false,
      "categories" : null,
      "minCharacters" : 5,
      "maxCharacters" : 200,
      "matchers" : null
    }
  ],
  "currentPage" : 1,
  "totalPages" : 1,
  "totalCount" : 2,
  "meta" : {
    "timestamp" : "2017-11-07T12:07:21.139-08:00",
    "includes" : []
  }
}

Get

Endpoint

GET /v1/quiz_questions/:id

Parameters

Name Description
id base16 ObjectId
challenge_id base16 ObjectId: optional but recommended for faster question lookup

Request

Route

GET /v1/quiz_questions/5a02127935fd2f3b4cd15ae8

Headers

Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVhMDIxMjc5MzVmZDJmM2I0Y2QxNWFlNCIsImlkIjoiNWEwMjEyNzkzNWZkMmYzYjRjZDE1YWU1Iiwic2VjcmV0IjoibDJpbHNRPT0ifQ.o8O4ZHiHxNOwpCJSNTTDYivWG67UFip9UZ8rS2RKSBU

Response

Simulated Response

Status

200

Headers

Content-Type: application/json; charset=utf-8

Body

{
  "id" : "5a02127935fd2f3b4cd15ae8",
  "type" : "QuizMultipleChoiceQuestion",
  "data" : {
    "id" : "5a02127935fd2f3b4cd15ae8",
    "$type" : "QuizMultipleChoiceQuestion",
    "prompt" : "Repellat libero nam quo iste mollitia ratione omnis. Voluptatum quisquam et. Debitis perspiciatis doloribus maiores.",
    "position" : null,
    "options" : null,
    "weight" : 1.0,
    "allOrNothing" : false,
    "categories" : null,
    "choices" : [
      "True",
      "False"
    ],
    "sorted" : null,
    "maxSelections" : null,
    "answers" : [
      0
    ]
  },
  "meta" : {
    "timestamp" : "2017-11-07T12:07:21.228-08:00",
    "includes" : []
  }
}

Create

Endpoint

POST /v1/quiz_questions

Parameters

Name Description
data.prompt required data.prompt
data.$type required The type of class that should be created. Can also use "type" or "_type" as param name.
data.challenge_id required the ID of the challenge to add the question to
data.position The 1 based position of the challenge within the list. Will be auto-set to the end of the list if omitted.
data.options data.options
data.weight data.weight
data.all_or_nothing data.all or nothing
data.answers A QuizMulitipleChoiceQuestion only field
data.choices A QuizMulitipleChoiceQuestion only field
data.max_selections A QuizMulitipleChoiceQuestion only field
data.sorted A QuizMulitipleChoiceQuestion only field
data.matchers A QuizTextQuestion only field
data.min_characters A QuizTextQuestion only field
data.max_characters A QuizTextQuestion only field

Request

Route

POST /v1/quiz_questions

Headers

Content-Type: application/json
Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVhMDIxMjc5MzVmZDJmM2I0Y2QxNWFmMCIsImlkIjoiNWEwMjEyNzkzNWZkMmYzYjRjZDE1YWYxIiwic2VjcmV0Ijoic1RUWUFRPT0ifQ.K0UQFmmK6oBbmHxLzQzp4M62NPAy-DG5PxIUju-lKak

Body

{
  "data" : {
    "$type" : "QuizMultipleChoiceQuestion",
    "prompt" : "test multiple choice question",
    "challenge_id" : "5a02127935fd2f3b4cd15aef",
    "choices" : [
      "True",
      "False"
    ],
    "answers" : [
      1
    ]
  }
}

Response

Simulated Response

Status

200

Headers

Content-Type: application/json; charset=utf-8

Body

{
  "id" : "5a02127935fd2f3b4cd15af6",
  "type" : "QuizMultipleChoiceQuestion",
  "data" : {
    "id" : "5a02127935fd2f3b4cd15af6",
    "$type" : "QuizMultipleChoiceQuestion",
    "prompt" : "test multiple choice question",
    "position" : 3,
    "options" : null,
    "weight" : 1.0,
    "allOrNothing" : false,
    "categories" : null,
    "choices" : [
      "True",
      "False"
    ],
    "sorted" : null,
    "maxSelections" : null,
    "answers" : [
      1
    ]
  },
  "meta" : {
    "timestamp" : "2017-11-07T12:07:21.321-08:00",
    "includes" : []
  }
}

Update

Endpoint

PUT /v1/quiz_questions/:id

Parameters

Name Description
id required base16 ObjectId
data.prompt required data.prompt
data.position data.position
data.options data.options
data.weight data.weight
data.all_or_nothing data.all or nothing
data.answers A QuizMulitipleChoiceQuestion only field
data.choices A QuizMulitipleChoiceQuestion only field
data.max_selections A QuizMulitipleChoiceQuestion only field
data.sorted A QuizMulitipleChoiceQuestion only field
data.matchers A QuizTextQuestion only field
data.min_characters A QuizTextQuestion only field
data.max_characters A QuizTextQuestion only field

Request

Route

PUT /v1/quiz_questions/5a02127935fd2f3b4cd15b01

Headers

Content-Type: application/json
Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVhMDIxMjc5MzVmZDJmM2I0Y2QxNWFmZCIsImlkIjoiNWEwMjEyNzkzNWZkMmYzYjRjZDE1YWZlIiwic2VjcmV0IjoiOFhGQ293PT0ifQ.rxfeI-BOXl5ktpjos_c42bu1B0qvyNIYjXNBi1YP7m0

Body

{
  "data" : {
    "prompt" : "abcd"
  }
}

Response

Simulated Response

Status

200

Headers

Content-Type: application/json; charset=utf-8

Body

{
  "id" : "5a02127935fd2f3b4cd15b01",
  "type" : "QuizMultipleChoiceQuestion",
  "data" : {
    "id" : "5a02127935fd2f3b4cd15b01",
    "$type" : "QuizMultipleChoiceQuestion",
    "prompt" : "abcd",
    "position" : 2,
    "options" : null,
    "weight" : 1.0,
    "allOrNothing" : false,
    "categories" : null,
    "choices" : [
      "True",
      "False"
    ],
    "sorted" : null,
    "maxSelections" : null,
    "answers" : [
      0
    ]
  },
  "meta" : {
    "timestamp" : "2017-11-07T12:07:21.390-08:00",
    "includes" : []
  }
}

Delete

Endpoint

DELETE /v1/quiz_questions/:id

Request

Route

DELETE /v1/quiz_questions/5a02127935fd2f3b4cd15b0d

Headers

Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVhMDIxMjc5MzVmZDJmM2I0Y2QxNWIwOSIsImlkIjoiNWEwMjEyNzkzNWZkMmYzYjRjZDE1YjBhIiwic2VjcmV0IjoiajhEYVBBPT0ifQ.AMCTAi3D7fIhQr01m__Q0L6S2qHEZsYMBLDdMCCFFaU
Content-Type: application/x-www-form-urlencoded

Response

Simulated Response

Status

204

Headers

ReviewQuality

List

Endpoint

GET /v1/review_qualities

Parameters

Name Description
includes Valid values are:

Request

Route

GET /v1/review_qualities

Headers

Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVhMDIxMjdhMzVmZDJmM2I0Y2QxNWI1YyIsImlkIjoiNWEwMjEyN2EzNWZkMmYzYjRjZDE1YjVkIiwic2VjcmV0IjoiR3BkUEF3PT0ifQ.R_2kvVLVz_5s5YeNukm4xDqko_ll-KF52eA_-oNBAU4

Response

Simulated Response

Status

200

Headers

Content-Type: application/json; charset=utf-8

Body

{
  "type" : "ReviewQuality",
  "data" : [
    {
      "id" : "5a02127a35fd2f3b4cd15b64",
      "teamId" : "5a02127a35fd2f3b4cd15b5e",
      "active" : true,
      "positive" : "Radiation Control",
      "negative" : "Bullet Time",
      "inLibrary" : false
    }
  ],
  "currentPage" : 1,
  "totalPages" : 1,
  "totalCount" : 1,
  "meta" : {
    "timestamp" : "2017-11-07T12:07:22.065-08:00",
    "includes" : []
  }
}

Get

Endpoint

GET /v1/review_qualities/:id

Request

Route

GET /v1/review_qualities/5a02127a35fd2f3b4cd15b6d

Headers

Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVhMDIxMjdhMzVmZDJmM2I0Y2QxNWI2NSIsImlkIjoiNWEwMjEyN2EzNWZkMmYzYjRjZDE1YjY2Iiwic2VjcmV0IjoiV3Q2WEZBPT0ifQ.1iomoQ_6h8MQNpeiFG9AUAyKFMopxD_YFnEUTNSdGSE

Response

Simulated Response

Status

200

Headers

Content-Type: application/json; charset=utf-8

Body

{
  "id" : "5a02127a35fd2f3b4cd15b6d",
  "type" : "ReviewQuality",
  "data" : {
    "id" : "5a02127a35fd2f3b4cd15b6d",
    "teamId" : "5a02127a35fd2f3b4cd15b67",
    "active" : true,
    "positive" : "Mind Control",
    "negative" : "Grim Reaping",
    "inLibrary" : false
  },
  "meta" : {
    "timestamp" : "2017-11-07T12:07:22.117-08:00",
    "includes" : []
  }
}

Create

Endpoint

POST /v1/review_qualities

Parameters

Name Description
data.team_id required data.team
data.positive required a description of the positive side of this quality
data.negative required a description of the negative side of this quality
data.active default is true

Request

Route

POST /v1/review_qualities

Headers

Content-Type: application/json
Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVhMDIxMjdhMzVmZDJmM2I0Y2QxNWI2ZSIsImlkIjoiNWEwMjEyN2EzNWZkMmYzYjRjZDE1YjZmIiwic2VjcmV0Ijoic2JOUy9BPT0ifQ.4KTYRQp19GXCfXWRaLffupR2rapA8B31XsmdDL518uA

Body

{
  "data" : {
    "team_id" : "5a02127a35fd2f3b4cd15b70",
    "positive" : "Great Implementation",
    "negative" : "Poor Implementation"
  }
}

Response

Simulated Response

Status

200

Headers

Content-Type: application/json; charset=utf-8

Body

{
  "id" : "5a02127a35fd2f3b4cd15b76",
  "type" : "ReviewQuality",
  "data" : {
    "id" : "5a02127a35fd2f3b4cd15b76",
    "teamId" : "5a02127a35fd2f3b4cd15b70",
    "active" : true,
    "positive" : "Great Implementation",
    "negative" : "Poor Implementation",
    "inLibrary" : false
  },
  "meta" : {
    "timestamp" : "2017-11-07T12:07:22.164-08:00",
    "includes" : []
  }
}

Update

Endpoint

PUT /v1/review_qualities/:id

Parameters

Name Description
data.positive data.positive
data.negative data.negative

Request

Route

PUT /v1/review_qualities/5a02127a35fd2f3b4cd15b7f

Headers

Content-Type: application/json
Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVhMDIxMjdhMzVmZDJmM2I0Y2QxNWI3NyIsImlkIjoiNWEwMjEyN2EzNWZkMmYzYjRjZDE1Yjc4Iiwic2VjcmV0IjoicVc5Q3JRPT0ifQ.Nz0CZFtP8S0g4df7e-QKezTkMZOUjG9OaGL5c56yjGk

Body

{
  "data" : {
    "positive" : "positive"
  },
  "includes" : []
}

Response

Simulated Response

Status

200

Headers

Content-Type: application/json; charset=utf-8

Body

{
  "id" : "5a02127a35fd2f3b4cd15b7f",
  "type" : "ReviewQuality",
  "data" : {
    "id" : "5a02127a35fd2f3b4cd15b7f",
    "teamId" : "5a02127a35fd2f3b4cd15b79",
    "active" : true,
    "positive" : "positive",
    "negative" : "Aerokinesis",
    "inLibrary" : false
  },
  "meta" : {
    "timestamp" : "2017-11-07T12:07:22.244-08:00",
    "includes" : []
  }
}

Delete

Endpoint

DELETE /v1/review_qualities/:id

Request

Route

DELETE /v1/review_qualities/5a02127a35fd2f3b4cd15b88

Headers

Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVhMDIxMjdhMzVmZDJmM2I0Y2QxNWI4MCIsImlkIjoiNWEwMjEyN2EzNWZkMmYzYjRjZDE1YjgxIiwic2VjcmV0IjoiL053dHJ3PT0ifQ.89Sb07o3RddB0bmkZ2xlkOINF-IRp_RFu1cy4YViNxY
Content-Type: application/x-www-form-urlencoded

Response

Simulated Response

Status

204

Headers

SolutionReview

List

Endpoint

GET /v1/solution_reviews

Parameters

Name Description
includes Valid values are:

Request

Route

GET /v1/solution_reviews

Headers

Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVhMDIxMjdiMzVmZDJmM2I0Y2QxNWMzNSIsImlkIjoiNWEwMjEyN2IzNWZkMmYzYjRjZDE1YzM2Iiwic2VjcmV0IjoiSUlwU2R3PT0ifQ.W59L5vNQx5ygJ3f7jRr4ceY4OswOCEwFcwGcTGxK7EU

Response

Simulated Response

Status

200

Headers

Content-Type: application/json; charset=utf-8

Body

{
  "type" : "SolutionReview",
  "data" : [
    {
      "id" : "5a02127b35fd2f3b4cd15c51",
      "reviewedById" : "5a02127b35fd2f3b4cd15c36",
      "reviewedByStaff" : null,
      "assessmentId" : "5a02127b35fd2f3b4cd15c27",
      "assessmentResultId" : "5a02127b35fd2f3b4cd15c2f",
      "teamCandidateId" : "5a02127b35fd2f3b4cd15c30",
      "candidateId" : "5a02127b35fd2f3b4cd15c20",
      "challengeId" : "5a02127b35fd2f3b4cd15c2b",
      "solutionId" : "5a02127b35fd2f3b4cd15c1e",
      "rating" : 3,
      "feedback" : null,
      "positiveQualityIds" : [],
      "negativeQualityIds" : [],
      "assessmentResultReviewId" : "5a02127b35fd2f3b4cd15c4d"
    }
  ],
  "currentPage" : 1,
  "totalPages" : 1,
  "totalCount" : 1,
  "meta" : {
    "timestamp" : "2017-11-07T12:07:23.811-08:00",
    "includes" : []
  }
}

Get

Endpoint

GET /v1/solution_reviews/:id

Request

Route

GET /v1/solution_reviews/5a02127c35fd2f3b4cd15c8a

Headers

Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVhMDIxMjdjMzVmZDJmM2I0Y2QxNWM2ZSIsImlkIjoiNWEwMjEyN2MzNWZkMmYzYjRjZDE1YzZmIiwic2VjcmV0IjoiaCtyUHVnPT0ifQ.9Yek79KbxtW-Anq8-3rCnwdh3QN6yxsEqFBoswlri7A

Response

Simulated Response

Status

200

Headers

Content-Type: application/json; charset=utf-8

Body

{
  "id" : "5a02127c35fd2f3b4cd15c8a",
  "type" : "SolutionReview",
  "data" : {
    "id" : "5a02127c35fd2f3b4cd15c8a",
    "reviewedById" : "5a02127c35fd2f3b4cd15c6f",
    "reviewedByStaff" : null,
    "assessmentId" : "5a02127b35fd2f3b4cd15c60",
    "assessmentResultId" : "5a02127b35fd2f3b4cd15c68",
    "teamCandidateId" : "5a02127b35fd2f3b4cd15c69",
    "candidateId" : "5a02127b35fd2f3b4cd15c59",
    "challengeId" : "5a02127b35fd2f3b4cd15c64",
    "solutionId" : "5a02127b35fd2f3b4cd15c57",
    "rating" : 3,
    "feedback" : null,
    "positiveQualityIds" : [],
    "negativeQualityIds" : [],
    "assessmentResultReviewId" : "5a02127c35fd2f3b4cd15c86"
  },
  "meta" : {
    "timestamp" : "2017-11-07T12:07:24.231-08:00",
    "includes" : []
  }
}

Create

Endpoint

POST /v1/solution_reviews

Parameters

Name Description
data.assessment_result_review_id required data.assessment result review
data.solution_id required data.solution
data.feedback data.feedback

Request

Route

POST /v1/solution_reviews

Headers

Content-Type: application/json
Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVhMDIxMjdjMzVmZDJmM2I0Y2QxNWNhNyIsImlkIjoiNWEwMjEyN2MzNWZkMmYzYjRjZDE1Y2E4Iiwic2VjcmV0IjoiOEFSbi9RPT0ifQ.2httwB7i0C-zCPKPUdhleE_Q5I0GagHQVanX8gFqMrc

Body

{
  "data" : {
    "feedback" : "",
    "solution_id" : "5a02127c35fd2f3b4cd15c90",
    "assessment_result_review_id" : "5a02127c35fd2f3b4cd15caa"
  }
}

Response

Simulated Response

Status

200

Headers

Content-Type: application/json; charset=utf-8

Body

{
  "id" : "5a02127c35fd2f3b4cd15cab",
  "type" : "SolutionReview",
  "data" : {
    "id" : "5a02127c35fd2f3b4cd15cab",
    "reviewedById" : "5a02127c35fd2f3b4cd15ca8",
    "reviewedByStaff" : false,
    "assessmentId" : "5a02127c35fd2f3b4cd15c99",
    "assessmentResultId" : "5a02127c35fd2f3b4cd15ca1",
    "teamCandidateId" : "5a02127c35fd2f3b4cd15ca2",
    "candidateId" : "5a02127c35fd2f3b4cd15c92",
    "challengeId" : "5a02127c35fd2f3b4cd15c9d",
    "solutionId" : "5a02127c35fd2f3b4cd15c90",
    "rating" : null,
    "feedback" : "",
    "positiveQualityIds" : [],
    "negativeQualityIds" : [],
    "assessmentResultReviewId" : "5a02127c35fd2f3b4cd15caa"
  },
  "meta" : {
    "timestamp" : "2017-11-07T12:07:24.488-08:00",
    "includes" : []
  }
}

Update

Endpoint

PUT /v1/solution_reviews/:id

Parameters

Name Description
data.feedback required data.feedback

Request

Route

PUT /v1/solution_reviews/5a02127c35fd2f3b4cd15ce4

Headers

Content-Type: application/json
Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVhMDIxMjdjMzVmZDJmM2I0Y2QxNWNjOCIsImlkIjoiNWEwMjEyN2MzNWZkMmYzYjRjZDE1Y2M5Iiwic2VjcmV0IjoiVjdtd0J3PT0ifQ.mK-iG1mlLdAo91xdLiOKVpTVsuXKPMGVweMGjLFXMxQ

Body

{
  "data" : {
    "feedback" : "feedback"
  },
  "includes" : []
}

Response

Simulated Response

Status

200

Headers

Content-Type: application/json; charset=utf-8

Body

{
  "id" : "5a02127c35fd2f3b4cd15ce4",
  "type" : "SolutionReview",
  "data" : {
    "id" : "5a02127c35fd2f3b4cd15ce4",
    "reviewedById" : "5a02127c35fd2f3b4cd15cc9",
    "reviewedByStaff" : false,
    "assessmentId" : "5a02127c35fd2f3b4cd15cba",
    "assessmentResultId" : "5a02127c35fd2f3b4cd15cc2",
    "teamCandidateId" : "5a02127c35fd2f3b4cd15cc3",
    "candidateId" : "5a02127c35fd2f3b4cd15cb3",
    "challengeId" : "5a02127c35fd2f3b4cd15cbe",
    "solutionId" : "5a02127c35fd2f3b4cd15cb1",
    "rating" : 3,
    "feedback" : "feedback",
    "positiveQualityIds" : [],
    "negativeQualityIds" : [],
    "assessmentResultReviewId" : "5a02127c35fd2f3b4cd15ce0"
  },
  "meta" : {
    "timestamp" : "2017-11-07T12:07:24.928-08:00",
    "includes" : []
  }
}

Delete

Endpoint

DELETE /v1/solution_reviews/:id

Request

Route

DELETE /v1/solution_reviews/5a02127d35fd2f3b4cd15d1d

Headers

Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVhMDIxMjdkMzVmZDJmM2I0Y2QxNWQwMSIsImlkIjoiNWEwMjEyN2QzNWZkMmYzYjRjZDE1ZDAyIiwic2VjcmV0IjoicytOREV3PT0ifQ.Xn46hz90NBSKztjFbtvThG84u_MvMJ-h7Cdje4GE_G8
Content-Type: application/x-www-form-urlencoded

Response

Simulated Response

Status

204

Headers

Solutions

List

Endpoint

GET /v1/solutions

Parameters

Name Description
includes Valid values are: candidate, challenge, assessment_result, cloned_from, clones
challenge_id Also available via /challenges/:challenge_id/solutions
assessment_result_id Also available via /assessment_results/:assessment_result_id/solutions

Request

Route

GET /v1/solutions?data[team_candidate_id]=5a02127d35fd2f3b4cd15d45

Headers

Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVhMDIxMjdkMzVmZDJmM2I0Y2QxNWQ1MiIsImlkIjoiNWEwMjEyN2QzNWZkMmYzYjRjZDE1ZDUzIiwic2VjcmV0IjoiYUVRdnp3PT0ifQ.NSd4XVDUyrTid3au25X8h6CU__9IbjftPOS4HDuQiTY

Query Parameters

data={"team_candidate_id"=>"5a02127d35fd2f3b4cd15d45"}

Response

Simulated Response

Status

200

Headers

Content-Type: application/json; charset=utf-8

Body

{
  "type" : "CodeSolution",
  "data" : [
    {
      "id" : "5a02127d35fd2f3b4cd15d4a",
      "$type" : "CodeSolution",
      "estimatedTime" : null,
      "createdAt" : "2017-11-07T20:06:25.666Z",
      "challengeId" : "5a02127d35fd2f3b4cd15d4b",
      "assessmentResultId" : "5a02127d35fd2f3b4cd15d46",
      "candidateId" : "5a02127d35fd2f3b4cd15d44",
      "teamCandidateId" : "5a02127d35fd2f3b4cd15d45",
      "teamId" : "5a02127d35fd2f3b4cd15d3a",
      "clonedFromId" : null,
      "lastHeartbeat" : null,
      "accumulatedSeconds" : 0,
      "language" : "javascript",
      "firstTestCaseSolvedAt" : "2017-11-07T20:07:25.666Z",
      "completedAt" : "2017-11-07T20:07:25.666Z",
      "code" : "var a = 1;",
      "testCases" : "Test.assertEquals(a, 1)",
      "testFramework" : "cw-2",
      "attempts" : 1,
      "output" : [
        {
          "t" : "passed",
          "v" : "Test Passed"
        }
      ],
      "wallTime" : 40,
      "firstTestCompletedIn" : 60.0,
      "completedIn" : 60.0,
      "score" : 0.0,
      "tags" : null,
      "weighted" : null,
      "specs" : null,
      "assertions" : null,
      "response" : null,
      "testResponse" : null,
      "successMode" : "specs",
      "passedTestCases" : 1,
      "weightedPassedTestCases" : 1,
      "hiddenPassedTestCases" : 0,
      "totalTestCases" : 1,
      "weightedTestCases" : 1,
      "hiddenTestCases" : 0,
      "tagTestCases" : null,
      "revisionCount" : 0
    }
  ],
  "currentPage" : 1,
  "totalPages" : 1,
  "totalCount" : 1,
  "meta" : {
    "timestamp" : "2017-11-07T12:07:25.777-08:00",
    "includes" : []
  }
}

Get

Endpoint

GET /v1/solutions/:id

Request

Route

GET /v1/solutions/5a02127f35fd2f3b4cd15e00

Headers

Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVhMDIxMjdmMzVmZDJmM2I0Y2QxNWUwMSIsImlkIjoiNWEwMjEyN2YzNWZkMmYzYjRjZDE1ZTAyIiwic2VjcmV0IjoiMElKeEZBPT0ifQ.ZyHjq7mMoBE8DEap7fOEs-mdVoE75TLCnL3McH_x01g

Response

Simulated Response

Status

200

Headers

Content-Type: application/json; charset=utf-8

Body

{
  "id" : "5a02127f35fd2f3b4cd15e00",
  "type" : "CodeSolution",
  "data" : {
    "id" : "5a02127f35fd2f3b4cd15e00",
    "$type" : "CodeSolution",
    "estimatedTime" : null,
    "createdAt" : "2017-11-07T20:06:27.028Z",
    "challengeId" : "5a02127f35fd2f3b4cd15e0d",
    "assessmentResultId" : "5a02127f35fd2f3b4cd15e11",
    "candidateId" : "5a02127f35fd2f3b4cd15e02",
    "teamCandidateId" : "5a02127f35fd2f3b4cd15e03",
    "teamId" : "5a02127e35fd2f3b4cd15dfb",
    "clonedFromId" : null,
    "lastHeartbeat" : null,
    "accumulatedSeconds" : 0,
    "language" : "javascript",
    "firstTestCaseSolvedAt" : "2017-11-07T20:07:27.029Z",
    "completedAt" : "2017-11-07T20:07:27.029Z",
    "code" : "var a = 1;",
    "testCases" : "Test.assertEquals(a, 1)",
    "testFramework" : "cw-2",
    "attempts" : 1,
    "output" : [
      {
        "t" : "passed",
        "v" : "Test Passed"
      }
    ],
    "wallTime" : 40,
    "firstTestCompletedIn" : 60.001,
    "completedIn" : 60.001,
    "score" : 0.0,
    "tags" : null,
    "weighted" : null,
    "specs" : null,
    "assertions" : null,
    "response" : null,
    "testResponse" : null,
    "successMode" : "specs",
    "passedTestCases" : 1,
    "weightedPassedTestCases" : 1,
    "hiddenPassedTestCases" : 0,
    "totalTestCases" : 1,
    "weightedTestCases" : 1,
    "hiddenTestCases" : 0,
    "tagTestCases" : null,
    "revisionCount" : 0
  },
  "meta" : {
    "timestamp" : "2017-11-07T12:07:27.177-08:00",
    "includes" : []
  }
}

Create

Creates a new solution of the type specified. This is an alias endpoint for the subtype specific route. See each type specific section for more details. For this example, this route is actually linking to the POST /v1/code_solutions route.

Endpoint

POST /v1/solutions

Parameters

Name Description
data.$type required The type of solution to create
data.language required initial language the user started in
data.assessment_result_id required data.assessment result
data.challenge_id required data.challenge

Request

Route

POST /v1/solutions

Headers

Content-Type: application/json
Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVhMDIxMjdmMzVmZDJmM2I0Y2QxNWUyOSIsImlkIjoiNWEwMjEyN2YzNWZkMmYzYjRjZDE1ZTJhIiwic2VjcmV0IjoidVNnaHZRPT0ifQ.8k4UkYa7pLF2XgFqgZM1eYAufgKEHw-JFff0FacutNE

Body

{
  "data" : {
    "$type" : "CodeSolution",
    "assessment_result_id" : "5a02127f35fd2f3b4cd15e28",
    "challenge_id" : "5a02127f35fd2f3b4cd15e20",
    "language" : "javascript"
  }
}

Response

Simulated Response

Status

200

Headers

Content-Type: application/json; charset=utf-8

Body

{
  "id" : "5a02127f35fd2f3b4cd15e31",
  "type" : "CodeSolution",
  "data" : {
    "id" : "5a02127f35fd2f3b4cd15e31",
    "$type" : "CodeSolution",
    "estimatedTime" : null,
    "createdAt" : "2017-11-07T20:07:27.357Z",
    "challengeId" : "5a02127f35fd2f3b4cd15e20",
    "assessmentResultId" : "5a02127f35fd2f3b4cd15e28",
    "candidateId" : "5a02127f35fd2f3b4cd15e2a",
    "teamCandidateId" : "5a02127f35fd2f3b4cd15e2b",
    "teamId" : "5a02127f35fd2f3b4cd15e17",
    "clonedFromId" : null,
    "lastHeartbeat" : null,
    "accumulatedSeconds" : 0,
    "language" : "javascript",
    "firstTestCaseSolvedAt" : null,
    "completedAt" : null,
    "code" : "var a = ",
    "testCases" : "Test.expect(a == 1)",
    "testFramework" : "cw-2",
    "attempts" : 0,
    "output" : null,
    "wallTime" : null,
    "firstTestCompletedIn" : null,
    "completedIn" : null,
    "score" : 0.0,
    "tags" : null,
    "weighted" : null,
    "specs" : null,
    "assertions" : null,
    "response" : null,
    "testResponse" : null,
    "successMode" : "specs",
    "passedTestCases" : 0,
    "weightedPassedTestCases" : 0,
    "hiddenPassedTestCases" : 0,
    "totalTestCases" : 1,
    "weightedTestCases" : 1,
    "hiddenTestCases" : 0,
    "tagTestCases" : null,
    "revisionCount" : 0
  },
  "meta" : {
    "timestamp" : "2017-11-07T12:07:27.363-08:00",
    "includes" : []
  }
}

Update

This route is used as an alias to the subtype specific update. For example, this example maps to PUT /code_solutions/:id

Endpoint

PUT /v1/solutions/:id

Parameters

Name Description
data.$type required The type of solution to create
data.language The language that the user is taking the challenge in
data.code The user's solution code
data.test_cases The user's test case code
data.tag a revision tag
data.message a revision message

Request

Route

PUT /v1/solutions/5a02127f35fd2f3b4cd15e37

Headers

Content-Type: application/json
Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVhMDIxMjdmMzVmZDJmM2I0Y2QxNWUzOCIsImlkIjoiNWEwMjEyN2YzNWZkMmYzYjRjZDE1ZTM5Iiwic2VjcmV0IjoieEc3ZjJ3PT0ifQ.JOYGmietJPai-wdLnYsryZj1ElH3nI8o8k9xnHX2cz8

Body

{
  "data" : {
    "$type" : "CodeSolution",
    "code" : "var b = a = 1;",
    "tag" : "paste"
  },
  "includes" : [
    "revisions"
  ]
}

Response

Simulated Response

Status

200

Headers

Content-Type: application/json; charset=utf-8

Body

{
  "id" : "5a02127f35fd2f3b4cd15e37",
  "type" : "CodeSolution",
  "data" : {
    "id" : "5a02127f35fd2f3b4cd15e37",
    "$type" : "CodeSolution",
    "estimatedTime" : null,
    "createdAt" : "2017-11-07T20:06:27.432Z",
    "challengeId" : "5a02127f35fd2f3b4cd15e44",
    "assessmentResultId" : "5a02127f35fd2f3b4cd15e48",
    "candidateId" : "5a02127f35fd2f3b4cd15e39",
    "teamCandidateId" : "5a02127f35fd2f3b4cd15e3a",
    "teamId" : "5a02127f35fd2f3b4cd15e32",
    "clonedFromId" : null,
    "lastHeartbeat" : null,
    "accumulatedSeconds" : 0,
    "language" : "javascript",
    "firstTestCaseSolvedAt" : "2017-11-07T20:07:27.432Z",
    "completedAt" : "2017-11-07T20:07:27.432Z",
    "code" : "var b = a = 1;",
    "testCases" : "Test.assertEquals(a, 1)",
    "testFramework" : "cw-2",
    "attempts" : 1,
    "output" : [
      {
        "t" : "passed",
        "v" : "Test Passed"
      }
    ],
    "wallTime" : 40,
    "firstTestCompletedIn" : 60.0,
    "completedIn" : 60.0,
    "score" : 0.0,
    "tags" : null,
    "weighted" : null,
    "specs" : null,
    "assertions" : null,
    "response" : null,
    "testResponse" : null,
    "successMode" : "specs",
    "passedTestCases" : 1,
    "weightedPassedTestCases" : 1,
    "hiddenPassedTestCases" : 0,
    "totalTestCases" : 1,
    "weightedTestCases" : 1,
    "hiddenTestCases" : 0,
    "tagTestCases" : null,
    "revisionCount" : 2,
    "revisions" : [
      {
        "id" : "5a02127f35fd2f3b4cd15e4e",
        "createdAt" : "2017-11-07T20:06:27.432Z",
        "number" : 0,
        "message" : null,
        "tag" : null,
        "revisedAttributes" : {
          "code" : "var a = 1;",
          "test_cases" : "Test.assertEquals(a, 1)",
          "output" : [
            {
              "t" : "passed",
              "v" : "Test Passed"
            }
          ],
          "wall_time" : 40,
          "language" : "javascript",
          "weighted" : null,
          "specs" : null,
          "assertions" : null,
          "tags" : null,
          "passed_test_cases" : 1,
          "weighted_passed_test_cases" : 1,
          "attempts" : 1,
          "response" : null,
          "test_response" : null,
          "test_attempts" : 0,
          "test_passed_test_cases" : 0,
          "test_total_test_cases" : 0,
          "test_output" : null,
          "test_wall_time" : null,
          "first_test_case_solved_at" : "2017-11-07T20:07:27.432Z",
          "completed_at" : "2017-11-07T20:07:27.432Z",
          "reopened_count" : 0
        }
      },
      {
        "id" : "5a02127f35fd2f3b4cd15e4f",
        "createdAt" : "2017-11-07T20:07:27.573Z",
        "number" : 1,
        "message" : null,
        "tag" : "paste",
        "revisedAttributes" : {
          "code" : "var b = a = 1;"
        }
      }
    ]
  },
  "meta" : {
    "timestamp" : "2017-11-07T12:07:27.586-08:00",
    "includes" : [
      "revisions"
    ]
  }
}

Team Candidates

List

Endpoint

GET /v1/team_candidates

Parameters

Name Description
includes Valid values are: assessments, assessment_results, solutions

Request

Route

GET /v1/team_candidates

Headers

Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVhMDIxMjgwMzVmZDJmM2I0Y2QxNWU4YSIsImlkIjoiNWEwMjEyODAzNWZkMmYzYjRjZDE1ZThiIiwic2VjcmV0IjoidFJOQlBBPT0ifQ.S3InCX1lKmXj7tL75h581Gsnfg7o8G9IcI0pFRz2LyM

Response

Simulated Response

Status

200

Headers

Content-Type: application/json; charset=utf-8

Body

{
  "type" : "TeamCandidate",
  "data" : [
    {
      "id" : "5a02127f35fd2f3b4cd15e6e",
      "candidateId" : "5a02127f35fd2f3b4cd15e6d",
      "teamId" : "5a02127f35fd2f3b4cd15e6f",
      "state" : "started",
      "prevState" : null,
      "assessmentIds" : [
        "5a02127f35fd2f3b4cd15e74",
        "5a02127f35fd2f3b4cd15e81"
      ],
      "assessmentResultIds" : [
        "5a02127f35fd2f3b4cd15e7c",
        "5a02128035fd2f3b4cd15e86"
      ],
      "createdAt" : "2017-11-07T20:07:27.887Z",
      "updatedAt" : "2017-11-07T20:07:28.073Z",
      "decidedAt" : null,
      "invitedAt" : null,
      "interactSessions" : 0,
      "stateUpdatedAt" : "2017-11-07T20:07:27.887Z",
      "testTeamMember" : false,
      "assignedTeamMemberIds" : [],
      "buckets" : null,
      "archived" : false,
      "firstName" : "Joe",
      "lastName" : "Smith444",
      "anonymousName" : "Pink Newt",
      "name" : "Joe Smith444",
      "email" : "[email protected]",
      "stateTransitions" : [
        "invited",
        "started",
        "submitted",
        "approved",
        "rejected",
        "archived"
      ],
      "stateLabel" : "Assessment Started",
      "assessmentsRecap" : {
        "id" : "5a02127f35fd2f3b4cd15e7f",
        "subjects" : [
          {
            "id" : "5a02127f35fd2f3b4cd15e80",
            "assessmentResultId" : "5a02127f35fd2f3b4cd15e7c",
            "assessmentId" : "5a02127f35fd2f3b4cd15e74",
            "state" : "started"
          },
          {
            "id" : "5a02128035fd2f3b4cd15e89",
            "assessmentResultId" : "5a02128035fd2f3b4cd15e86",
            "assessmentId" : "5a02127f35fd2f3b4cd15e81",
            "state" : "started"
          }
        ]
      }
    }
  ],
  "currentPage" : 1,
  "totalPages" : 1,
  "totalCount" : 1,
  "meta" : {
    "timestamp" : "2017-11-07T12:07:28.128-08:00",
    "includes" : []
  }
}

Get

Endpoint

GET /v1/team_candidates/:id

Parameters

Name Description
id required Object ID
includes Valid values are: assessments, assessment_results, solutions, team

Request

Route

GET /v1/team_candidates/5a02128135fd2f3b4cd15f35

Headers

Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVhMDIxMjgxMzVmZDJmM2I0Y2QxNWY1MSIsImlkIjoiNWEwMjEyODEzNWZkMmYzYjRjZDE1ZjUyIiwic2VjcmV0IjoiajRiMldnPT0ifQ.8xPpsypnKWQ_mQdyI3kTuxrwOK1O_ffyZbPxiZT5FcA

Response

Simulated Response

Status

200

Headers

Content-Type: application/json; charset=utf-8

Body

{
  "id" : "5a02128135fd2f3b4cd15f35",
  "type" : "TeamCandidate",
  "data" : {
    "id" : "5a02128135fd2f3b4cd15f35",
    "candidateId" : "5a02128135fd2f3b4cd15f34",
    "teamId" : "5a02128135fd2f3b4cd15f36",
    "state" : "started",
    "prevState" : null,
    "assessmentIds" : [
      "5a02128135fd2f3b4cd15f3b",
      "5a02128135fd2f3b4cd15f48"
    ],
    "assessmentResultIds" : [
      "5a02128135fd2f3b4cd15f43",
      "5a02128135fd2f3b4cd15f4d"
    ],
    "createdAt" : "2017-11-07T20:07:29.536Z",
    "updatedAt" : "2017-11-07T20:07:29.693Z",
    "decidedAt" : null,
    "invitedAt" : null,
    "interactSessions" : 0,
    "stateUpdatedAt" : "2017-11-07T20:07:29.536Z",
    "testTeamMember" : false,
    "assignedTeamMemberIds" : [],
    "buckets" : null,
    "archived" : false,
    "firstName" : "Joe",
    "lastName" : "Smith461",
    "anonymousName" : "Red Albatross",
    "name" : "Joe Smith461",
    "email" : "[email protected]",
    "stateTransitions" : [
      "invited",
      "started",
      "submitted",
      "approved",
      "rejected",
      "archived"
    ],
    "stateLabel" : "Assessment Started",
    "assessmentsRecap" : {
      "id" : "5a02128135fd2f3b4cd15f46",
      "subjects" : [
        {
          "id" : "5a02128135fd2f3b4cd15f47",
          "assessmentResultId" : "5a02128135fd2f3b4cd15f43",
          "assessmentId" : "5a02128135fd2f3b4cd15f3b",
          "state" : "started"
        },
        {
          "id" : "5a02128135fd2f3b4cd15f50",
          "assessmentResultId" : "5a02128135fd2f3b4cd15f4d",
          "assessmentId" : "5a02128135fd2f3b4cd15f48",
          "state" : "started"
        }
      ]
    }
  },
  "meta" : {
    "enums" : {
      "state" : [
        {
          "value" : "invited",
          "text" : "Invited"
        },
        {
          "value" : "started",
          "text" : "Assessment Started"
        },
        {
          "value" : "submitted",
          "text" : "Assessment Submitted"
        },
        {
          "value" : "approved",
          "text" : "Approved"
        },
        {
          "value" : "rejected",
          "text" : "Rejected"
        },
        {
          "value" : "archived",
          "text" : "Archived"
        }
      ]
    },
    "timestamp" : "2017-11-07T12:07:29.757-08:00",
    "includes" : []
  }
}

Update

Updates basic info for a team candidate.

Endpoint

PUT /v1/team_candidates/:id

Parameters

Name Description
data.email A valid email
data.first_name data.first name
data.last_name data.last name
data.state Valid values are: started, submitted, approved, rejected

Request

Route

PUT /v1/team_candidates/5a02128235fd2f3b4cd15f92

Headers

Content-Type: application/json
Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVhMDIxMjgyMzVmZDJmM2I0Y2QxNWZhZSIsImlkIjoiNWEwMjEyODIzNWZkMmYzYjRjZDE1ZmFmIiwic2VjcmV0IjoiTVNNMzJRPT0ifQ.Noqw0U6xdUUc7D8abadIImGpC5PJTlBhczLSCCUt07k

Body

{
  "data" : {
    "first_name" : "Test",
    "last_name" : "Time"
  }
}

Response

Simulated Response

Status

200

Headers

Content-Type: application/json; charset=utf-8

Body

{
  "id" : "5a02128235fd2f3b4cd15f92",
  "type" : "TeamCandidate",
  "data" : {
    "id" : "5a02128235fd2f3b4cd15f92",
    "candidateId" : "5a02128235fd2f3b4cd15f91",
    "teamId" : "5a02128235fd2f3b4cd15f93",
    "state" : "started",
    "prevState" : null,
    "assessmentIds" : [
      "5a02128235fd2f3b4cd15f98",
      "5a02128235fd2f3b4cd15fa5"
    ],
    "assessmentResultIds" : [
      "5a02128235fd2f3b4cd15fa0",
      "5a02128235fd2f3b4cd15faa"
    ],
    "createdAt" : "2017-11-07T20:07:30.416Z",
    "updatedAt" : "2017-11-07T20:07:30.618Z",
    "decidedAt" : null,
    "invitedAt" : null,
    "interactSessions" : 0,
    "stateUpdatedAt" : "2017-11-07T20:07:30.416Z",
    "testTeamMember" : false,
    "assignedTeamMemberIds" : [],
    "buckets" : null,
    "archived" : false,
    "firstName" : "Test",
    "lastName" : "Time",
    "anonymousName" : "Grey Stork",
    "name" : "Test Time",
    "email" : "[email protected]",
    "stateTransitions" : [
      "invited",
      "started",
      "submitted",
      "approved",
      "rejected",
      "archived"
    ],
    "stateLabel" : "Assessment Started",
    "assessmentsRecap" : {
      "id" : "5a02128235fd2f3b4cd15fa3",
      "subjects" : [
        {
          "id" : "5a02128235fd2f3b4cd15fa4",
          "assessmentResultId" : "5a02128235fd2f3b4cd15fa0",
          "assessmentId" : "5a02128235fd2f3b4cd15f98",
          "state" : "started"
        },
        {
          "id" : "5a02128235fd2f3b4cd15fad",
          "assessmentResultId" : "5a02128235fd2f3b4cd15faa",
          "assessmentId" : "5a02128235fd2f3b4cd15fa5",
          "state" : "started"
        }
      ]
    }
  },
  "meta" : {
    "enums" : {
      "state" : [
        {
          "value" : "invited",
          "text" : "Invited"
        },
        {
          "value" : "started",
          "text" : "Assessment Started"
        },
        {
          "value" : "submitted",
          "text" : "Assessment Submitted"
        },
        {
          "value" : "approved",
          "text" : "Approved"
        },
        {
          "value" : "rejected",
          "text" : "Rejected"
        },
        {
          "value" : "archived",
          "text" : "Archived"
        }
      ]
    },
    "timestamp" : "2017-11-07T12:07:30.644-08:00",
    "includes" : []
  }
}

Delete

Endpoint

DELETE /v1/team_candidates/:id

Parameters

Name Description
id required base16 ObjectId

Request

Route

DELETE /v1/team_candidates/5a02128535fd2f3b4cd160be

Headers

Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVhMDIxMjg1MzVmZDJmM2I0Y2QxNjBkYSIsImlkIjoiNWEwMjEyODUzNWZkMmYzYjRjZDE2MGRiIiwic2VjcmV0IjoiZVQwOTR3PT0ifQ.IOvD9Bf3W8yoUvo5prxmN2DMcJXJmGJddVUnsPkzb-k
Content-Type: application/x-www-form-urlencoded

Response

Simulated Response

Status

204

Headers

Team Members

List

Returns all non-staff members for admins

Endpoint

GET /v1/team_members

Request

Route

GET /v1/team_members

Headers

Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVhMDIxMjg2MzVmZDJmM2I0Y2QxNjExYyIsImlkIjoiNWEwMjEyODYzNWZkMmYzYjRjZDE2MTFkIiwic2VjcmV0IjoiNzV5L1lRPT0ifQ.9iwYGNRytdZsDxNTWJVXEOOP3ObyzOspj1YCGIWXJU0

Response

Simulated Response

Status

200

Headers

Content-Type: application/json; charset=utf-8

Body

{
  "type" : "TeamMember",
  "data" : [
    {
      "id" : "5a02128535fd2f3b4cd16114",
      "$type" : "TeamMember",
      "firstName" : "Joe",
      "lastName" : "Smith521",
      "name" : "Joe Smith521",
      "email" : "[email protected]",
      "profileImg" : null,
      "createdAt" : "2017-11-07T20:07:33.970Z",
      "updatedAt" : "2017-11-07T20:07:33.970Z",
      "uiPrefs" : null,
      "experiments" : null,
      "envRoomId" : "test_keVXQALzTpY0iPbHn5h65A",
      "hasPassword" : true,
      "intercomUrl" : null,
      "confirmationToken" : "JwCvB0DR8CPSQA.5a02128535fd2f3b4cd16114",
      "teamId" : "5a02128535fd2f3b4cd16108",
      "role" : "owner",
      "state" : "active",
      "activatedAt" : "2017-11-07T20:07:33.967Z",
      "deactivatedAt" : null,
      "disabled" : false,
      "candidateId" : null,
      "notifications" : {
        "id" : "5a02128535fd2f3b4cd16115",
        "assessmentStarted" : true,
        "assessmentSubmitted" : true,
        "candidateApproved" : true,
        "candidateRejected" : true
      },
      "phone" : null,
      "title" : null,
      "teams" : [
        {
          "id" : "5a02128535fd2f3b4cd16108",
          "name" : "team214",
          "logoImg" : {
            "id" : "5a02128535fd2f3b4cd16109",
            "fileId" : "yW5iHA",
            "fileFormat" : "jpg",
            "width" : 500,
            "height" : 500,
            "url" : "//res.cloudinary.com/strive/image/upload/yW5iHA.jpg",
            "rawUrl" : "https://s3-us-west-1.amazonaws.com/strive-uploads/yW5iHA.jpg",
            "size" : null,
            "brightness" : null,
            "background" : null
          }
        }
      ],
      "initialUser" : false
    },
    {
      "id" : "5a02128535fd2f3b4cd16111",
      "$type" : "TeamMember",
      "firstName" : "Joe",
      "lastName" : "Smith520",
      "name" : "Joe Smith520",
      "email" : "[email protected]",
      "profileImg" : null,
      "createdAt" : "2017-11-07T20:07:33.954Z",
      "updatedAt" : "2017-11-07T20:07:33.954Z",
      "uiPrefs" : null,
      "experiments" : null,
      "envRoomId" : "test_2LowgFzFsU7gvbPTV7Pt2w",
      "hasPassword" : true,
      "intercomUrl" : null,
      "confirmationToken" : "yPgbmb4BXJLFrA.5a02128535fd2f3b4cd16111",
      "teamId" : "5a02128535fd2f3b4cd16108",
      "role" : "owner",
      "state" : "active",
      "activatedAt" : "2017-11-07T20:07:33.951Z",
      "deactivatedAt" : null,
      "disabled" : false,
      "candidateId" : null,
      "notifications" : {
        "id" : "5a02128535fd2f3b4cd16112",
        "assessmentStarted" : true,
        "assessmentSubmitted" : true,
        "candidateApproved" : true,
        "candidateRejected" : true
      },
      "phone" : null,
      "title" : null,
      "teams" : [
        {
          "id" : "5a02128535fd2f3b4cd16108",
          "name" : "team214",
          "logoImg" : {
            "id" : "5a02128535fd2f3b4cd16109",
            "fileId" : "yW5iHA",
            "fileFormat" : "jpg",
            "width" : 500,
            "height" : 500,
            "url" : "//res.cloudinary.com/strive/image/upload/yW5iHA.jpg",
            "rawUrl" : "https://s3-us-west-1.amazonaws.com/strive-uploads/yW5iHA.jpg",
            "size" : null,
            "brightness" : null,
            "background" : null
          }
        }
      ],
      "initialUser" : false
    },
    {
      "id" : "5a02128535fd2f3b4cd1610e",
      "$type" : "TeamMember",
      "firstName" : "Joe",
      "lastName" : "Smith519",
      "name" : "Joe Smith519",
      "email" : "[email protected]",
      "profileImg" : null,
      "createdAt" : "2017-11-07T20:07:33.938Z",
      "updatedAt" : "2017-11-07T20:07:33.938Z",
      "uiPrefs" : null,
      "experiments" : null,
      "envRoomId" : "test_v2JZAzqswbBtViR9zorYgg",
      "hasPassword" : true,
      "intercomUrl" : null,
      "confirmationToken" : "ePoEVq7mvbYb0A.5a02128535fd2f3b4cd1610e",
      "teamId" : "5a02128535fd2f3b4cd16108",
      "role" : "owner",
      "state" : "active",
      "activatedAt" : "2017-11-07T20:07:33.934Z",
      "deactivatedAt" : null,
      "disabled" : false,
      "candidateId" : null,
      "notifications" : {
        "id" : "5a02128535fd2f3b4cd1610f",
        "assessmentStarted" : true,
        "assessmentSubmitted" : true,
        "candidateApproved" : true,
        "candidateRejected" : true
      },
      "phone" : null,
      "title" : null,
      "teams" : [
        {
          "id" : "5a02128535fd2f3b4cd16108",
          "name" : "team214",
          "logoImg" : {
            "id" : "5a02128535fd2f3b4cd16109",
            "fileId" : "yW5iHA",
            "fileFormat" : "jpg",
            "width" : 500,
            "height" : 500,
            "url" : "//res.cloudinary.com/strive/image/upload/yW5iHA.jpg",
            "rawUrl" : "https://s3-us-west-1.amazonaws.com/strive-uploads/yW5iHA.jpg",
            "size" : null,
            "brightness" : null,
            "background" : null
          }
        }
      ],
      "initialUser" : false
    },
    {
      "id" : "5a02128535fd2f3b4cd16106",
      "$type" : "TeamMember",
      "firstName" : "Joe",
      "lastName" : "Smith518",
      "name" : "Joe Smith518",
      "email" : "[email protected]",
      "profileImg" : null,
      "createdAt" : "2017-11-07T20:07:33.911Z",
      "updatedAt" : "2017-11-07T20:07:33.911Z",
      "uiPrefs" : null,
      "experiments" : null,
      "envRoomId" : "test_iMuvWGz9cehHwo4x2UFocA",
      "hasPassword" : true,
      "intercomUrl" : null,
      "confirmationToken" : "bpf0zOuM2bpHxw.5a02128535fd2f3b4cd16106",
      "teamId" : "5a02128535fd2f3b4cd160fd",
      "role" : "owner",
      "state" : "active",
      "activatedAt" : "2017-11-07T20:07:33.908Z",
      "deactivatedAt" : null,
      "disabled" : false,
      "candidateId" : null,
      "notifications" : {
        "id" : "5a02128535fd2f3b4cd16107",
        "assessmentStarted" : true,
        "assessmentSubmitted" : true,
        "candidateApproved" : true,
        "candidateRejected" : true
      },
      "phone" : null,
      "title" : null,
      "teams" : [
        {
          "id" : "5a02128535fd2f3b4cd160fd",
          "name" : "team213",
          "logoImg" : {
            "id" : "5a02128535fd2f3b4cd160fe",
            "fileId" : "bFg4TQ",
            "fileFormat" : "jpg",
            "width" : 500,
            "height" : 500,
            "url" : "//res.cloudinary.com/strive/image/upload/bFg4TQ.jpg",
            "rawUrl" : "https://s3-us-west-1.amazonaws.com/strive-uploads/bFg4TQ.jpg",
            "size" : null,
            "brightness" : null,
            "background" : null
          }
        }
      ],
      "initialUser" : false
    },
    {
      "id" : "5a02128535fd2f3b4cd16103",
      "$type" : "TeamMember",
      "firstName" : "Joe",
      "lastName" : "Smith517",
      "name" : "Joe Smith517",
      "email" : "[email protected]",
      "profileImg" : null,
      "createdAt" : "2017-11-07T20:07:33.893Z",
      "updatedAt" : "2017-11-07T20:07:33.893Z",
      "uiPrefs" : null,
      "experiments" : null,
      "envRoomId" : "test_BFUGiTs0Hpn5bqHMqpbkHQ",
      "hasPassword" : true,
      "intercomUrl" : null,
      "confirmationToken" : "EeDFDvM2rPXDig.5a02128535fd2f3b4cd16103",
      "teamId" : "5a02128535fd2f3b4cd160fd",
      "role" : "owner",
      "state" : "active",
      "activatedAt" : "2017-11-07T20:07:33.889Z",
      "deactivatedAt" : null,
      "disabled" : false,
      "candidateId" : null,
      "notifications" : {
        "id" : "5a02128535fd2f3b4cd16104",
        "assessmentStarted" : true,
        "assessmentSubmitted" : true,
        "candidateApproved" : true,
        "candidateRejected" : true
      },
      "phone" : null,
      "title" : null,
      "teams" : [
        {
          "id" : "5a02128535fd2f3b4cd160fd",
          "name" : "team213",
          "logoImg" : {
            "id" : "5a02128535fd2f3b4cd160fe",
            "fileId" : "bFg4TQ",
            "fileFormat" : "jpg",
            "width" : 500,
            "height" : 500,
            "url" : "//res.cloudinary.com/strive/image/upload/bFg4TQ.jpg",
            "rawUrl" : "https://s3-us-west-1.amazonaws.com/strive-uploads/bFg4TQ.jpg",
            "size" : null,
            "brightness" : null,
            "background" : null
          }
        }
      ],
      "initialUser" : false
    }
  ],
  "currentPage" : 1,
  "totalPages" : 1,
  "totalCount" : 5,
  "meta" : {
    "timestamp" : "2017-11-07T12:07:34.117-08:00",
    "includes" : []
  }
}

Get

Returns the team member account if the current user can view it

Endpoint

GET /v1/team_members/:id

Parameters

Name Description
includes Valid values are: team, authored_challenges, authored_assessments

Request

Route

GET /v1/team_members/5a02128635fd2f3b4cd16189?includes[]=team&includes[]=authored_challenges&includes[]=authored_assessments&includes[]=team.plan_option.plan

Headers

Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVhMDIxMjg2MzVmZDJmM2I0Y2QxNjE4YiIsImlkIjoiNWEwMjEyODYzNWZkMmYzYjRjZDE2MThjIiwic2VjcmV0IjoiUEt4ZFp3PT0ifQ.OY7w_6qf4rgC9C5Uv38rs-qUp2bMGDU6Gwhvk3-8Kqc

Query Parameters

includes=["team", "authored_challenges", "authored_assessments", "team.plan_option.plan"]

Response

Simulated Response

Status

200

Headers

Content-Type: application/json; charset=utf-8

Body

{
  "id" : "5a02128635fd2f3b4cd16189",
  "type" : "TeamMember",
  "data" : {
    "id" : "5a02128635fd2f3b4cd16189",
    "$type" : "TeamMember",
    "firstName" : "Joe",
    "lastName" : "Smith546",
    "name" : "Joe Smith546",
    "email" : "[email protected]",
    "profileImg" : null,
    "createdAt" : "2017-11-07T20:07:34.945Z",
    "updatedAt" : "2017-11-07T20:07:34.945Z",
    "uiPrefs" : null,
    "experiments" : null,
    "envRoomId" : "test_PCn9MrpOpVQYv4fRAReppQ",
    "hasPassword" : true,
    "intercomUrl" : null,
    "confirmationToken" : "ibubhzKAutcJbA.5a02128635fd2f3b4cd16189",
    "teamId" : "5a02128635fd2f3b4cd16181",
    "role" : "owner",
    "state" : "active",
    "activatedAt" : "2017-11-07T20:07:34.942Z",
    "deactivatedAt" : null,
    "disabled" : false,
    "candidateId" : null,
    "notifications" : {
      "id" : "5a02128635fd2f3b4cd1618a",
      "assessmentStarted" : true,
      "assessmentSubmitted" : true,
      "candidateApproved" : true,
      "candidateRejected" : true
    },
    "team" : {
      "id" : "5a02128635fd2f3b4cd16181",
      "name" : "team221",
      "stickyCredits" : 5,
      "updatedAt" : "2017-11-07T20:07:34.928Z",
      "highConcept" : null,
      "website" : null,
      "productTypes" : {
        "_id" : "5a02128635fd2f3b4cd16185",
        "education" : true,
        "recruitment" : true
      },
      "hasDemoData" : false,
      "buildingDemoData" : false,
      "destroyingDemoData" : false,
      "surveysDisabled" : null,
      "logoImg" : {
        "id" : "5a02128635fd2f3b4cd16183",
        "fileId" : "ZL3BJw",
        "fileFormat" : "jpg",
        "width" : 500,
        "height" : 500,
        "url" : "//res.cloudinary.com/strive/image/upload/ZL3BJw.jpg",
        "rawUrl" : "https://s3-us-west-1.amazonaws.com/strive-uploads/ZL3BJw.jpg",
        "size" : null,
        "brightness" : null,
        "background" : null
      },
      "features" : {
        "id" : "5a02128635fd2f3b4cd16184",
        "costPerAdditionalPremiumSeat" : 50,
        "costPerAdditionalRestrictedSeat" : 30,
        "restrictedUserSeats" : 2,
        "premiumUserSeats" : 2,
        "notes" : null,
        "libraryAccess" : "limited",
        "advancedTestCases" : true,
        "dataExport" : true,
        "assessmentReviews" : true,
        "teamMemberAssignment" : true,
        "blindReviewers" : true,
        "atsIntegration" : true,
        "candidateNotes" : true,
        "webhookEvents" : true,
        "apiAccess" : true,
        "languageGenerator" : true,
        "customCodeChallenges" : true,
        "customQuizChallenges" : true,
        "carryForwardSolutions" : true,
        "enterpriseSupport" : true,
        "accessToSolutions" : false,
        "customChallengeAssistance" : false
      },
      "manualFeatures" : {
        "id" : "5a02128635fd2f3b4cd1618d"
      },
      "hasCredit" : true,
      "createdAt" : "2017-11-07T20:07:34.928Z",
      "state" : "active",
      "assessmentsEnabled" : true,
      "apiKey" : null,
      "creditsChargedBy" : "assessment",
      "publishedAssessmentCount" : 0,
      "assessmentResultCount" : 0,
      "cardLastFour" : null,
      "growthSpeed" : "high_growth",
      "companySize" : null,
      "engineeringTeamSize" : null,
      "referenceInfo" : null,
      "stripePlanInterestedIn" : null,
      "webhookUrl" : "http://www.qualified.io/",
      "sendAllWebhookEvents" : false,
      "evaluatedCandidatesMonthly" : null,
      "setupAssessmentId" : null,
      "setupComplete" : false,
      "desiredLanguages" : null,
      "showReviewsToReviewers" : false,
      "creditsRecycleAt" : null,
      "hasBlindReviewers" : false,
      "planOptionId" : "5a02128635fd2f3b4cd16180",
      "webhookEvents" : {
        "id" : "5a02128635fd2f3b4cd1618e"
      },
      "desiredFeatures" : {
        "id" : "5a02128635fd2f3b4cd16187",
        "takeHome" : true
      },
      "progressEvents" : {
        "id" : "5a02128735fd2f3b4cd1618f"
      },
      "subscription" : {
        "id" : "5a02128635fd2f3b4cd16182",
        "recurringCreditsUsed" : 0,
        "recurringCreditsAllowed" : 10,
        "costPerAdditionalCredit" : 1900,
        "payAsYouGo" : false,
        "currentPlanId" : null,
        "currentPlanRenewsAt" : null,
        "currentPlanCancelsAt" : null,
        "currentPlanDowngradesAt" : null,
        "nextPlanId" : null,
        "state" : "recurring",
        "trialEnd" : null,
        "pausedUntil" : null
      },
      "planOption" : {
        "id" : "5a02128635fd2f3b4cd16180",
        "stripePlanId" : "simple-plan-78bzhw",
        "interval" : "month",
        "intervalCount" : 1,
        "payAsYouGo" : false,
        "creditResetIntervalCount" : 1,
        "creditResetInterval" : "month",
        "teamCount" : 1,
        "$type" : "RecurringPlanOption",
        "name" : "Simple Plan",
        "amount" : 5000,
        "credits" : 50,
        "planId" : "5a02128635fd2f3b4cd1617e",
        "public" : true,
        "paymentType" : "stripe",
        "costPerAdditionalCredit" : 1900,
        "plan" : {
          "id" : "5a02128635fd2f3b4cd1617e",
          "name" : "Simple Plan",
          "features" : {
            "id" : "5a02128635fd2f3b4cd1617f",
            "costPerAdditionalPremiumSeat" : 50,
            "costPerAdditionalRestrictedSeat" : 30,
            "restrictedUserSeats" : 2,
            "premiumUserSeats" : 2,
            "notes" : null,
            "libraryAccess" : "limited",
            "advancedTestCases" : true,
            "dataExport" : true,
            "assessmentReviews" : true,
            "teamMemberAssignment" : true,
            "blindReviewers" : true,
            "atsIntegration" : true,
            "candidateNotes" : true,
            "webhookEvents" : true,
            "apiAccess" : true,
            "languageGenerator" : true,
            "customCodeChallenges" : true,
            "customQuizChallenges" : true,
            "carryForwardSolutions" : true,
            "enterpriseSupport" : true,
            "accessToSolutions" : false,
            "customChallengeAssistance" : false
          }
        }
      },
      "salesLeadQuality" : null,
      "salesLeadContacted" : false,
      "nameWasGenerated" : false,
      "teamMemberRoleCounts" : {
        "owner" : 1
      },
      "availablePlanOptionIds" : [],
      "outstandingBalance" : 0,
      "billingNotes" : null,
      "desiredIntegration" : null,
      "desiredIntegrationIsCurrent" : null,
      "utmTracking" : {
        "id" : "5a02128635fd2f3b4cd16186",
        "utmSource" : "qualified"
      },
      "contracts" : []
    },
    "phone" : null,
    "title" : null,
    "authoredAssessments" : [],
    "authoredChallenges" : [],
    "teams" : [
      {
        "id" : "5a02128635fd2f3b4cd16181",
        "name" : "team221",
        "logoImg" : {
          "id" : "5a02128635fd2f3b4cd16183",
          "fileId" : "ZL3BJw",
          "fileFormat" : "jpg",
          "width" : 500,
          "height" : 500,
          "url" : "//res.cloudinary.com/strive/image/upload/ZL3BJw.jpg",
          "rawUrl" : "https://s3-us-west-1.amazonaws.com/strive-uploads/ZL3BJw.jpg",
          "size" : null,
          "brightness" : null,
          "background" : null
        }
      }
    ],
    "initialUser" : false
  },
  "meta" : {
    "enums" : {
      "role" : [
        {
          "value" : "owner",
          "text" : "Owner"
        },
        {
          "value" : "inviter",
          "text" : "Inviter"
        },
        {
          "value" : "reviewer",
          "text" : "Reviewer"
        },
        {
          "value" : "blind_reviewer",
          "text" : "Blind reviewer"
        },
        {
          "value" : "staff",
          "text" : "Staff"
        },
        {
          "value" : "api",
          "text" : "Api"
        },
        {
          "value" : "demo",
          "text" : "Demo"
        }
      ],
      "state" : [
        {
          "value" : "invited",
          "text" : "Invited"
        },
        {
          "value" : "active",
          "text" : "Active"
        },
        {
          "value" : "inactive",
          "text" : "Inactive"
        }
      ]
    },
    "flags" : {
      "notifications" : [
        {
          "value" : "assessmentStarted",
          "text" : "Assessment Started"
        },
        {
          "value" : "assessmentSubmitted",
          "text" : "Assessment Submitted"
        },
        {
          "value" : "candidateApproved",
          "text" : "Candidate Approved"
        },
        {
          "value" : "candidateRejected",
          "text" : "Candidate Rejected"
        }
      ]
    },
    "timestamp" : "2017-11-07T12:07:35.039-08:00",
    "includes" : [
      "team",
      "authored_challenges",
      "authored_assessments",
      "team.plan_option.plan"
    ]
  }
}

Create

Creates a new team member user. This API is allowed only for authenticated admin and team owners.

Endpoint

POST /v1/team_members

Parameters

Name Description
data.email required A valid email
data.first_name required data.first name
data.last_name required data.last name
data.password data.password
data.bio data.bio
data.teamId required The team must be created first. Not required if team member is authenticated user
data.ui_prefs A json object for storing custom client-side preferences

Request

Route

POST /v1/team_members

Headers

Content-Type: application/json
Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVhMDIxMjg3MzVmZDJmM2I0Y2QxNjE5MCIsImlkIjoiNWEwMjEyODczNWZkMmYzYjRjZDE2MTkxIiwic2VjcmV0IjoiSWdsQ09nPT0ifQ.uFUBpXS3YFLLKZyNN5kerx6ThGPTsLZzm8Pu7-deRJ8

Body

{
  "data" : {
    "first_name" : "Joe",
    "last_name" : "Smith",
    "password" : "password",
    "email" : "[email protected]",
    "team_id" : "5a02128735fd2f3b4cd16192"
  }
}

Response

Simulated Response

Status

200

Headers

Content-Type: application/json; charset=utf-8

Body

{
  "id" : "5a02128735fd2f3b4cd16198",
  "type" : "TeamMember",
  "data" : {
    "id" : "5a02128735fd2f3b4cd16198",
    "$type" : "TeamMember",
    "firstName" : "Joe",
    "lastName" : "Smith",
    "name" : "Joe Smith",
    "email" : "[email protected]",
    "profileImg" : null,
    "createdAt" : "2017-11-07T20:07:35.118Z",
    "updatedAt" : "2017-11-07T20:07:35.128Z",
    "uiPrefs" : null,
    "experiments" : null,
    "envRoomId" : "test_6ArWHj9aVz4GpqMnNejtXg",
    "hasPassword" : false,
    "intercomUrl" : null,
    "confirmationToken" : "4y76cX0pBfs8AQ.5a02128735fd2f3b4cd16198",
    "teamId" : "5a02128735fd2f3b4cd16192",
    "role" : "owner",
    "state" : "invited",
    "activatedAt" : "2017-11-07T20:07:35.119Z",
    "deactivatedAt" : null,
    "disabled" : false,
    "candidateId" : null,
    "notifications" : {
      "id" : "5a02128735fd2f3b4cd16199",
      "assessmentStarted" : true,
      "assessmentSubmitted" : true,
      "candidateApproved" : true,
      "candidateRejected" : true
    },
    "phone" : null,
    "title" : null,
    "teams" : [],
    "initialUser" : false
  },
  "meta" : {
    "enums" : {
      "role" : [
        {
          "value" : "owner",
          "text" : "Owner"
        },
        {
          "value" : "inviter",
          "text" : "Inviter"
        },
        {
          "value" : "reviewer",
          "text" : "Reviewer"
        },
        {
          "value" : "blind_reviewer",
          "text" : "Blind reviewer"
        },
        {
          "value" : "staff",
          "text" : "Staff"
        },
        {
          "value" : "api",
          "text" : "Api"
        },
        {
          "value" : "demo",
          "text" : "Demo"
        }
      ],
      "state" : [
        {
          "value" : "invited",
          "text" : "Invited"
        },
        {
          "value" : "active",
          "text" : "Active"
        },
        {
          "value" : "inactive",
          "text" : "Inactive"
        }
      ]
    },
    "flags" : {
      "notifications" : [
        {
          "value" : "assessmentStarted",
          "text" : "Assessment Started"
        },
        {
          "value" : "assessmentSubmitted",
          "text" : "Assessment Submitted"
        },
        {
          "value" : "candidateApproved",
          "text" : "Candidate Approved"
        },
        {
          "value" : "candidateRejected",
          "text" : "Candidate Rejected"
        }
      ]
    },
    "timestamp" : "2017-11-07T12:07:35.206-08:00",
    "includes" : []
  }
}

Update

Updates a team member.

Endpoint

PUT /v1/team_members/:id

Parameters

Name Description
data.email A valid email
data.first_name data.first name
data.last_name data.last name
data.suffix data.suffix
data.bio data.bio
data.ui_prefs A json object for storing custom client-side preferences

Request

Route

PUT /v1/team_members/5a02128735fd2f3b4cd1619e

Headers

Content-Type: application/json
Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVhMDIxMjg3MzVmZDJmM2I0Y2QxNjE5YiIsImlkIjoiNWEwMjEyODczNWZkMmYzYjRjZDE2MTljIiwic2VjcmV0Ijoic2lKK2tnPT0ifQ.CmOcA0P3Lui0K71m8Qsx5ocxtVHhPb6lqaAudWhvFl4

Body

{
  "data" : {
    "first_name" : "Test",
    "last_name" : "Time",
    "uiPrefs" : {
      "theme" : "dark"
    }
  }
}

Response

Simulated Response

Status

200

Headers

Content-Type: application/json; charset=utf-8

Body

{
  "id" : "5a02128735fd2f3b4cd1619e",
  "type" : "TeamMember",
  "data" : {
    "id" : "5a02128735fd2f3b4cd1619e",
    "$type" : "TeamMember",
    "firstName" : "Test",
    "lastName" : "Time",
    "name" : "Test Time",
    "email" : "[email protected]",
    "profileImg" : null,
    "createdAt" : "2017-11-07T20:07:35.260Z",
    "updatedAt" : "2017-11-07T20:07:35.304Z",
    "uiPrefs" : {
      "theme" : "dark"
    },
    "experiments" : null,
    "envRoomId" : "test_BZYwJ2vW4yDKYUokFoeWyA",
    "hasPassword" : true,
    "intercomUrl" : null,
    "confirmationToken" : "z8aJU3tUw43H7g.5a02128735fd2f3b4cd1619e",
    "teamId" : "5a02128735fd2f3b4cd1619f",
    "role" : "owner",
    "state" : "active",
    "activatedAt" : "2017-11-07T20:07:35.244Z",
    "deactivatedAt" : null,
    "disabled" : false,
    "candidateId" : null,
    "notifications" : {
      "id" : "5a02128735fd2f3b4cd161a4",
      "assessmentStarted" : true,
      "assessmentSubmitted" : true,
      "candidateApproved" : true,
      "candidateRejected" : true
    },
    "phone" : null,
    "title" : null,
    "teams" : [
      {
        "id" : "5a02128735fd2f3b4cd1619f",
        "name" : "team223",
        "logoImg" : {
          "id" : "5a02128735fd2f3b4cd161a0",
          "fileId" : "G2rNZg",
          "fileFormat" : "jpg",
          "width" : 500,
          "height" : 500,
          "url" : "//res.cloudinary.com/strive/image/upload/G2rNZg.jpg",
          "rawUrl" : "https://s3-us-west-1.amazonaws.com/strive-uploads/G2rNZg.jpg",
          "size" : null,
          "brightness" : null,
          "background" : null
        }
      }
    ],
    "initialUser" : false
  },
  "meta" : {
    "enums" : {
      "role" : [
        {
          "value" : "owner",
          "text" : "Owner"
        },
        {
          "value" : "inviter",
          "text" : "Inviter"
        },
        {
          "value" : "reviewer",
          "text" : "Reviewer"
        },
        {
          "value" : "blind_reviewer",
          "text" : "Blind reviewer"
        },
        {
          "value" : "staff",
          "text" : "Staff"
        },
        {
          "value" : "api",
          "text" : "Api"
        },
        {
          "value" : "demo",
          "text" : "Demo"
        }
      ],
      "state" : [
        {
          "value" : "invited",
          "text" : "Invited"
        },
        {
          "value" : "active",
          "text" : "Active"
        },
        {
          "value" : "inactive",
          "text" : "Inactive"
        }
      ]
    },
    "flags" : {
      "notifications" : [
        {
          "value" : "assessmentStarted",
          "text" : "Assessment Started"
        },
        {
          "value" : "assessmentSubmitted",
          "text" : "Assessment Submitted"
        },
        {
          "value" : "candidateApproved",
          "text" : "Candidate Approved"
        },
        {
          "value" : "candidateRejected",
          "text" : "Candidate Rejected"
        }
      ]
    },
    "timestamp" : "2017-11-07T12:07:35.322-08:00",
    "includes" : []
  }
}