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/5ce458f7eea25f61d356d34b/challenge_items/

Headers

Content-Type: application/json
Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVjZTQ1OGY3ZWVhMjVmNjFkMzU2ZDM0YyIsImlkIjoiNWNlNDU4ZjdlZWEyNWY2MWQzNTZkMzRkIiwic2VjcmV0IjoiR1llWnZ3PT0ifQ.sJ69CCSIvrWE1-5-r64CXTkMrEgtFEcjTrvDJ9HktgA

Body

{
  "data": {
    "challenge_id": "5ce458f7eea25f61d356d34f"
  }
}

Response

Simulated Response

Status

200

Headers

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

Body

{
  "id": "5ce458f7eea25f61d356d355",
  "type": "AssessmentChallengeItem",
  "data": {
    "id": "5ce458f7eea25f61d356d355",
    "challengeId": "5ce458f7eea25f61d356d34f",
    "position": 1,
    "disabledLanguages": []
  },
  "meta": {
    "timestamp": "2019-05-21T13:00:55.474-07:00",
    "includes": []
  }
}

Update

This endpoint allows you to 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.position Position of the item in the list.

Request

Route

PUT /v1/assessments/5ce458f7eea25f61d356d35e/challenge_items/5ce458f7eea25f61d356d365

Headers

Content-Type: application/json
Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVjZTQ1OGY3ZWVhMjVmNjFkMzU2ZDM1ZiIsImlkIjoiNWNlNDU4ZjdlZWEyNWY2MWQzNTZkMzYwIiwic2VjcmV0IjoibzB4U3JRPT0ifQ.Q_aH0pVMsdejDy5JW2dsRCtIwLsJ9e5nWhem14Ka3Vw

Body

{
  "data": {
    "position": 2
  }
}

Response

Simulated Response

Status

200

Headers

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

Body

{
  "id": "5ce458f7eea25f61d356d365",
  "type": "AssessmentChallengeItem",
  "data": {
    "id": "5ce458f7eea25f61d356d365",
    "challengeId": "5ce458f7eea25f61d356d362",
    "position": 2,
    "disabledLanguages": []
  },
  "meta": {
    "timestamp": "2019-05-21T13:00:55.711-07:00",
    "includes": []
  }
}

Delete

Endpoint

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

Parameters

Name Description
assessment_id required base16 ObjectId
id required base16 ObjectId

Request

Route

DELETE /v1/assessments/5ce458f7eea25f61d356d372/challenge_items/5ce458f7eea25f61d356d379

Headers

Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVjZTQ1OGY3ZWVhMjVmNjFkMzU2ZDM3MyIsImlkIjoiNWNlNDU4ZjdlZWEyNWY2MWQzNTZkMzc0Iiwic2VjcmV0IjoiMG53Qlp3PT0ifQ.NOU_7a-FJeKflGup7uy0snVtocDvPhXPioywQBkgXzc
Content-Type: application/x-www-form-urlencoded

Response

Simulated Response

Status

204

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.eyJpZGVudGl0eV9pZCI6IjVjZTQ1OGY3ZWVhMjVmNjFkMzU2ZDM4MiIsImlkIjoiNWNlNDU4ZjhlZWEyNWY2MWQzNTZkMzgzIiwic2VjcmV0IjoiTXhVSm1RPT0ifQ.yghtU4gYbm0k7I0j6zC06desae6D_JXJgm62x89oxMk

Query Parameters

{}=

Response

Simulated Response

Status

200

Headers

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

Body

{
  "type": "AssessmentInvitation",
  "data": [
    {
      "id": "5ce458f8eea25f61d356d397",
      "state": "active",
      "teamCandidateId": "5ce458f8eea25f61d356d39f",
      "assessmentId": "5ce458f8eea25f61d356d398",
      "assessmentResultId": "5ce458f8eea25f61d356d3a3",
      "teamId": "5ce458f7eea25f61d356d37c",
      "teamMemberId": "5ce458f8eea25f61d356d3a1",
      "sendEmailToCandidate": true,
      "sendEmailToInviter": false,
      "expiresAt": null,
      "reminderAt": null,
      "reminded": false,
      "invitedByAssessmentTitle": null,
      "invitedByWorkflowLabel": null,
      "assessmentTitle": "Junior Web Developer #99",
      "sendAttempts": 0,
      "openCount": null,
      "lastSent": null,
      "candidateName": "Joe Smith122",
      "candidateEmail": "[email protected]",
      "testTeamMember": false,
      "inviterRole": "owner",
      "invitePath": "/assess/5ce458f8eea25f61d356d398?activate=sOD07haCqQvPqA.5ce458f8eea25f61d356d39e&email=loginidentity122%40example.com&invite=KRC3bwwG4GpnPA",
      "invitePracticePath": "/assess/practice?activate=sOD07haCqQvPqA.5ce458f8eea25f61d356d39e&email=loginidentity122%40example.com&invite=KRC3bwwG4GpnPA&returnTo=%2Fassess%2F5ce458f8eea25f61d356d398%3Factivate%3DsOD07haCqQvPqA.5ce458f8eea25f61d356d39e%26email%3Dloginidentity122%2540example.com%26invite%3DKRC3bwwG4GpnPA"
    },
    {
      "id": "5ce458f8eea25f61d356d3a7",
      "state": "active",
      "teamCandidateId": "5ce458f8eea25f61d356d3af",
      "assessmentId": "5ce458f8eea25f61d356d3a8",
      "assessmentResultId": "5ce458f8eea25f61d356d3b3",
      "teamId": "5ce458f7eea25f61d356d37c",
      "teamMemberId": "5ce458f8eea25f61d356d3b1",
      "sendEmailToCandidate": true,
      "sendEmailToInviter": false,
      "expiresAt": null,
      "reminderAt": null,
      "reminded": false,
      "invitedByAssessmentTitle": null,
      "invitedByWorkflowLabel": null,
      "assessmentTitle": "Senior Angular Engineer #100",
      "sendAttempts": 0,
      "openCount": null,
      "lastSent": null,
      "candidateName": "Joe Smith124",
      "candidateEmail": "[email protected]",
      "testTeamMember": false,
      "inviterRole": "owner",
      "invitePath": "/assess/5ce458f8eea25f61d356d3a8?activate=ZfOWzCtgUpT4Sw.5ce458f8eea25f61d356d3ae&email=loginidentity124%40example.com&invite=HguN9uYWqL3QeQ",
      "invitePracticePath": "/assess/practice?activate=ZfOWzCtgUpT4Sw.5ce458f8eea25f61d356d3ae&email=loginidentity124%40example.com&invite=HguN9uYWqL3QeQ&returnTo=%2Fassess%2F5ce458f8eea25f61d356d3a8%3Factivate%3DZfOWzCtgUpT4Sw.5ce458f8eea25f61d356d3ae%26email%3Dloginidentity124%2540example.com%26invite%3DHguN9uYWqL3QeQ"
    },
    {
      "id": "5ce458f8eea25f61d356d3b7",
      "state": "active",
      "teamCandidateId": "5ce458f8eea25f61d356d3bf",
      "assessmentId": "5ce458f8eea25f61d356d3b8",
      "assessmentResultId": "5ce458f8eea25f61d356d3c3",
      "teamId": "5ce458f7eea25f61d356d37c",
      "teamMemberId": "5ce458f8eea25f61d356d3c1",
      "sendEmailToCandidate": true,
      "sendEmailToInviter": false,
      "expiresAt": null,
      "reminderAt": null,
      "reminded": false,
      "invitedByAssessmentTitle": null,
      "invitedByWorkflowLabel": null,
      "assessmentTitle": "Junior Rails Developer #101",
      "sendAttempts": 0,
      "openCount": null,
      "lastSent": null,
      "candidateName": "Joe Smith126",
      "candidateEmail": "[email protected]",
      "testTeamMember": false,
      "inviterRole": "owner",
      "invitePath": "/assess/5ce458f8eea25f61d356d3b8?activate=OsnUbDqHqTAYtA.5ce458f8eea25f61d356d3be&email=loginidentity126%40example.com&invite=MfZydAUObpqqrQ",
      "invitePracticePath": "/assess/practice?activate=OsnUbDqHqTAYtA.5ce458f8eea25f61d356d3be&email=loginidentity126%40example.com&invite=MfZydAUObpqqrQ&returnTo=%2Fassess%2F5ce458f8eea25f61d356d3b8%3Factivate%3DOsnUbDqHqTAYtA.5ce458f8eea25f61d356d3be%26email%3Dloginidentity126%2540example.com%26invite%3DMfZydAUObpqqrQ"
    }
  ],
  "meta": {
    "timestamp": "2019-05-21T13:00:56.726-07: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.eyJpZGVudGl0eV9pZCI6IjVjZTQ1OGY4ZWVhMjVmNjFkMzU2ZDNjZiIsImlkIjoiNWNlNDU4ZjhlZWEyNWY2MWQzNTZkM2QwIiwic2VjcmV0Ijoiajh6R1Z3PT0ifQ.u2o8RWgSMDhhw_Wu1MKI6jkDbStigrZhhz8BTRCcMIU

Body

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

Response

Simulated Response

Status

200

Headers

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

Body

{
  "type": "AssessmentInvitation",
  "data": [
    {
      "id": "5ce458f8eea25f61d356d3da",
      "state": "active",
      "teamCandidateId": "5ce458f8eea25f61d356d3d5",
      "assessmentId": "5ce458f8eea25f61d356d3d2",
      "assessmentResultId": "5ce458f8eea25f61d356d3d6",
      "teamId": "5ce458f8eea25f61d356d3c9",
      "teamMemberId": "5ce458f8eea25f61d356d3d0",
      "sendEmailToCandidate": true,
      "sendEmailToInviter": false,
      "expiresAt": null,
      "reminderAt": null,
      "reminded": false,
      "invitedByAssessmentTitle": null,
      "invitedByWorkflowLabel": null,
      "assessmentTitle": "Mid-Level Angular Developer #102",
      "sendAttempts": 0,
      "openCount": null,
      "lastSent": null,
      "candidateName": "",
      "candidateEmail": "[email protected]",
      "testTeamMember": false,
      "inviterRole": "owner",
      "invitePath": "/assess/5ce458f8eea25f61d356d3d2?activate=TW9D9sKeBSOmVA.5ce458f8eea25f61d356d3d4&email=George%40place.com&invite=dJWCnyZbq8rPNg",
      "invitePracticePath": "/assess/practice?activate=TW9D9sKeBSOmVA.5ce458f8eea25f61d356d3d4&email=George%40place.com&invite=dJWCnyZbq8rPNg&returnTo=%2Fassess%2F5ce458f8eea25f61d356d3d2%3Factivate%3DTW9D9sKeBSOmVA.5ce458f8eea25f61d356d3d4%26email%3DGeorge%2540place.com%26invite%3DdJWCnyZbq8rPNg"
    }
  ],
  "meta": {
    "timestamp": "2019-05-21T13:00:57.042-07: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.eyJpZGVudGl0eV9pZCI6IjVjZTQ1OGY5ZWVhMjVmNjFkMzU2ZDNmOSIsImlkIjoiNWNlNDU4ZjllZWEyNWY2MWQzNTZkM2ZhIiwic2VjcmV0IjoieDJZTThBPT0ifQ.mMqxn4SEKinWDydmgO-bnAZJwRh-uYdEGdkv1lMkz2k

Body

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

Response

Simulated Response

Status

200

Headers

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

Body

{
  "type": "AssessmentInvitation",
  "data": [
    {
      "id": "5ce458f9eea25f61d356d406",
      "state": "active",
      "teamCandidateId": "5ce458f9eea25f61d356d401",
      "assessmentId": "5ce458f9eea25f61d356d3fc",
      "assessmentResultId": "5ce458f9eea25f61d356d402",
      "teamId": "5ce458f9eea25f61d356d3f3",
      "teamMemberId": "5ce458f9eea25f61d356d3fa",
      "sendEmailToCandidate": true,
      "sendEmailToInviter": false,
      "expiresAt": null,
      "reminderAt": null,
      "reminded": false,
      "invitedByAssessmentTitle": null,
      "invitedByWorkflowLabel": null,
      "assessmentTitle": "Junior DevOps Developer #104",
      "sendAttempts": 0,
      "openCount": null,
      "lastSent": null,
      "candidateName": "",
      "candidateEmail": "[email protected]",
      "testTeamMember": true,
      "inviterRole": "owner",
      "invitePath": "/assess/5ce458f9eea25f61d356d3fc?activate=zrbrvGZ9wdD0yg.5ce458f9eea25f61d356d400&email=George%40place.com&invite=PTcnuxyar6gxpg",
      "invitePracticePath": "/assess/practice?activate=zrbrvGZ9wdD0yg.5ce458f9eea25f61d356d400&email=George%40place.com&invite=PTcnuxyar6gxpg&returnTo=%2Fassess%2F5ce458f9eea25f61d356d3fc%3Factivate%3DzrbrvGZ9wdD0yg.5ce458f9eea25f61d356d400%26email%3DGeorge%2540place.com%26invite%3DPTcnuxyar6gxpg"
    }
  ],
  "meta": {
    "timestamp": "2019-05-21T13:00:57.712-07:00",
    "includes": []
  }
}

Assessment Result Reviews

List

Endpoint

GET /v1/assessment_result_reviews

Parameters

Name Description
includes Valid values are:

Request

Route

GET /v1/assessment_result_reviews

Headers

Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVjZTQ1OGZhZWVhMjVmNjFkMzU2ZDQ3NyIsImlkIjoiNWNlNDU4ZmFlZWEyNWY2MWQzNTZkNDc4Iiwic2VjcmV0IjoiR3NOQTJ3PT0ifQ.acOf_8b1NnJzdMWYYS0Ccz14Kphsbwi00cVMhXqM9FQ

Response

Simulated Response

Status

200

Headers

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

Body

{
  "type": "AssessmentResultReview",
  "data": [
    {
      "id": "5ce458faeea25f61d356d473",
      "reviewedById": "5ce458faeea25f61d356d475",
      "reviewedByStaff": null,
      "assessmentId": "5ce458faeea25f61d356d464",
      "assessmentResultId": "5ce458faeea25f61d356d46c",
      "teamCandidateId": "5ce458faeea25f61d356d46f",
      "candidateId": "5ce458faeea25f61d356d46e",
      "rating": 5,
      "feedback": "great!",
      "state": "started"
    }
  ],
  "currentPage": 1,
  "totalPages": 1,
  "totalCount": 1,
  "meta": {
    "timestamp": "2019-05-21T13:00:59.014-07:00",
    "includes": []
  }
}

Get

Endpoint

GET /v1/assessment_result_reviews/:id

Request

Route

GET /v1/assessment_result_reviews/5ce458fbeea25f61d356d494

Headers

Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVjZTQ1OGZiZWVhMjVmNjFkMzU2ZDQ5MSIsImlkIjoiNWNlNDU4ZmJlZWEyNWY2MWQzNTZkNDkyIiwic2VjcmV0IjoiTG9VT0ZBPT0ifQ.n23vFfVUcBDzwrrMvQOwu8pfVc6YIzHTsQ32NLWqoCE

Response

Simulated Response

Status

200

Headers

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

Body

{
  "id": "5ce458fbeea25f61d356d494",
  "type": "AssessmentResultReview",
  "data": {
    "id": "5ce458fbeea25f61d356d494",
    "reviewedById": "5ce458fbeea25f61d356d496",
    "reviewedByStaff": null,
    "assessmentId": "5ce458fbeea25f61d356d482",
    "assessmentResultId": "5ce458fbeea25f61d356d48a",
    "teamCandidateId": "5ce458fbeea25f61d356d48d",
    "candidateId": "5ce458fbeea25f61d356d48c",
    "rating": 5,
    "feedback": "great!",
    "state": "started"
  },
  "meta": {
    "enums": {
      "state": [
        {
          "value": "invited",
          "text": "Invited"
        },
        {
          "value": "started",
          "text": "Started"
        },
        {
          "value": "submitted",
          "text": "Submitted"
        }
      ]
    },
    "timestamp": "2019-05-21T13:00:59.331-07: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.eyJpZGVudGl0eV9pZCI6IjVjZTQ1OGZiZWVhMjVmNjFkMzU2ZDRhZiIsImlkIjoiNWNlNDU4ZmJlZWEyNWY2MWQzNTZkNGIwIiwic2VjcmV0IjoiYTZxckhnPT0ifQ.p52kJq0R5LG3BoKs66pNtmDzcgpnE28qqfbZt84BmrE

Body

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

Response

Simulated Response

Status

200

Headers

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

Body

{
  "id": "5ce458fbeea25f61d356d4b2",
  "type": "AssessmentResultReview",
  "data": {
    "id": "5ce458fbeea25f61d356d4b2",
    "reviewedById": "5ce458fbeea25f61d356d4b0",
    "reviewedByStaff": false,
    "assessmentId": "5ce458fbeea25f61d356d4a0",
    "assessmentResultId": "5ce458fbeea25f61d356d4a8",
    "teamCandidateId": "5ce458fbeea25f61d356d4ab",
    "candidateId": "5ce458fbeea25f61d356d4aa",
    "rating": null,
    "feedback": "super duper",
    "state": "started"
  },
  "meta": {
    "enums": {
      "state": [
        {
          "value": "invited",
          "text": "Invited"
        },
        {
          "value": "started",
          "text": "Started"
        },
        {
          "value": "submitted",
          "text": "Submitted"
        }
      ]
    },
    "timestamp": "2019-05-21T13:00:59.628-07: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/5ce458fbeea25f61d356d4cd

Headers

Content-Type: application/json
Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVjZTQ1OGZiZWVhMjVmNjFkMzU2ZDRjYSIsImlkIjoiNWNlNDU4ZmJlZWEyNWY2MWQzNTZkNGNiIiwic2VjcmV0Ijoidy92ZU53PT0ifQ.3ENaF_e-99ZGeoSkd8ujmRMNaJ7TM8oPon5AGc0CRz8

Body

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

Response

Simulated Response

Status

200

Headers

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

Body

{
  "id": "5ce458fbeea25f61d356d4cd",
  "type": "AssessmentResultReview",
  "data": {
    "id": "5ce458fbeea25f61d356d4cd",
    "reviewedById": "5ce458fbeea25f61d356d4cf",
    "reviewedByStaff": false,
    "assessmentId": "5ce458fbeea25f61d356d4bb",
    "assessmentResultId": "5ce458fbeea25f61d356d4c3",
    "teamCandidateId": "5ce458fbeea25f61d356d4c6",
    "candidateId": "5ce458fbeea25f61d356d4c5",
    "rating": 3,
    "feedback": "feedback",
    "state": "started"
  },
  "meta": {
    "enums": {
      "state": [
        {
          "value": "invited",
          "text": "Invited"
        },
        {
          "value": "started",
          "text": "Started"
        },
        {
          "value": "submitted",
          "text": "Submitted"
        }
      ]
    },
    "timestamp": "2019-05-21T13:00:59.990-07:00",
    "includes": []
  }
}

Delete

Endpoint

DELETE /v1/assessment_result_reviews/:id

Request

Route

DELETE /v1/assessment_result_reviews/5ce458fceea25f61d356d4eb

Headers

Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVjZTQ1OGZjZWVhMjVmNjFkMzU2ZDRlOCIsImlkIjoiNWNlNDU4ZmNlZWEyNWY2MWQzNTZkNGU5Iiwic2VjcmV0IjoiZEhSQmx3PT0ifQ.LHD56xh5HP2pw17b84vqIjKIPzz5Lw2N5gsRu-tnoHg
Content-Type: application/x-www-form-urlencoded

Response

Simulated Response

Status

204

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.eyJpZGVudGl0eV9pZCI6IjVjZTQ1OGZjZWVhMjVmNjFkMzU2ZDUxOSIsImlkIjoiNWNlNDU4ZmNlZWEyNWY2MWQzNTZkNTFhIiwic2VjcmV0IjoiS3FLM3pnPT0ifQ.zh_BhWvRHe9tRjGeWAHW_54yXI4zsIdAAfJl_QOLZnA

Response

Simulated Response

Status

200

Headers

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

Body

{
  "type": "AssessmentResult",
  "data": [
    {
      "id": "5ce458fceea25f61d356d513",
      "assessmentId": "5ce458fceea25f61d356d50e",
      "candidateId": "5ce458fceea25f61d356d4f0",
      "teamCandidateId": "5ce458fceea25f61d356d514",
      "teamId": "5ce458fceea25f61d356d4f3",
      "state": "started",
      "createdAt": "2019-05-21T20:01:00.638Z",
      "updatedAt": "2019-05-21T20:01:00.638Z",
      "startedAt": "2019-05-21T20:01:00.638Z",
      "invitedAt": null,
      "submittedAt": null,
      "submittingAt": null,
      "openedAt": null,
      "originalOpenedAt": null,
      "originalStartedAt": null,
      "originalSubmittedAt": null,
      "dryRun": false,
      "candidateRemarks": null,
      "score": null,
      "closedReason": null,
      "redirectUrl": null,
      "submissionMessage": null,
      "nextAssessmentId": null,
      "totalSubmissionSeconds": null,
      "totalOriginalSubmissionSeconds": null,
      "accumulatedSeconds": 0,
      "enforcedTimeLimit": null,
      "timerExpiresIn": null,
      "wallTimeSinceStart": 0,
      "reopenedById": null,
      "activeTimedSolutionId": null,
      "isActiveInteractSession": false,
      "candidateName": "Joe Smith162",
      "candidateEmail": "[email protected]",
      "candidatePhone": null,
      "interviewerIds": [],
      "activeInterviewerIds": [],
      "abandoned": false,
      "workflowName": null,
      "isInteractSession": false,
      "challengeItems": []
    }
  ],
  "currentPage": 1,
  "totalPages": 1,
  "totalCount": 1,
  "meta": {
    "timestamp": "2019-05-21T13:01:00.718-07:00",
    "includes": []
  }
}

Get

Endpoint

GET /v1/assessment_results/:id/report_url

Parameters

Name Description
id base64 or base16 ObjectId

Request

Route

GET /v1/assessment_results/5ce458feeea25f61d356d5ec/report_url

Headers

Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVjZTQ1OGZlZWVhMjVmNjFkMzU2ZDVjOCIsImlkIjoiNWNlNDU4ZmVlZWEyNWY2MWQzNTZkNWM5Iiwic2VjcmV0IjoiZHFLNkV3PT0ifQ.7b_FHRVx1T3OjUik0EfECLuUW5Veb2g7b7dTVDKvoU8

Response

Simulated Response

Status

200

Headers

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

Body

{
  "url": "https://localhost:3001/reports/eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJyZXBvcnQiOiJhc3Nlc3NtZW50X3Jlc3VsdCIsInJlcG9ydF9pZCI6IjVjZTQ1OGZlZWVhMjVmNjFkMzU2ZDVlYyIsInRva2VuX3R5cGUiOiJyZXBvcnQiLCJ0ZWFtX2lkIjoiNWNlNDU4ZmVlZWEyNWY2MWQzNTZkNWNjIn0.Ujnlv81VG8sOQqvtiYs_RTM6E9UxMeoiBehsJWFTGuc",
  "pdf": "https://localhost:3001/pdf/reports/eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJyZXBvcnQiOiJhc3Nlc3NtZW50X3Jlc3VsdCIsInJlcG9ydF9pZCI6IjVjZTQ1OGZlZWVhMjVmNjFkMzU2ZDVlYyIsInRva2VuX3R5cGUiOiJyZXBvcnQiLCJ0ZWFtX2lkIjoiNWNlNDU4ZmVlZWEyNWY2MWQzNTZkNWNjIn0.Ujnlv81VG8sOQqvtiYs_RTM6E9UxMeoiBehsJWFTGuc"
}

Get

Endpoint

GET /v1/assessment_results/:id/report_url

Parameters

Name Description
id base64 or base16 ObjectId

Request

Route

GET /v1/assessment_results/5ce458feeea25f61d356d5ec/report_url

Headers

Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVjZTQ1OGZlZWVhMjVmNjFkMzU2ZDVjOCIsImlkIjoiNWNlNDU4ZmVlZWEyNWY2MWQzNTZkNWM5Iiwic2VjcmV0IjoiZHFLNkV3PT0ifQ.7b_FHRVx1T3OjUik0EfECLuUW5Veb2g7b7dTVDKvoU8

Response

Simulated Response

Status

200

Headers

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

Body

{
  "url": "https://localhost:3001/reports/eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJyZXBvcnQiOiJhc3Nlc3NtZW50X3Jlc3VsdCIsInJlcG9ydF9pZCI6IjVjZTQ1OGZlZWVhMjVmNjFkMzU2ZDVlYyIsInRva2VuX3R5cGUiOiJyZXBvcnQiLCJ0ZWFtX2lkIjoiNWNlNDU4ZmVlZWEyNWY2MWQzNTZkNWNjIn0.Ujnlv81VG8sOQqvtiYs_RTM6E9UxMeoiBehsJWFTGuc",
  "pdf": "https://localhost:3001/pdf/reports/eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJyZXBvcnQiOiJhc3Nlc3NtZW50X3Jlc3VsdCIsInJlcG9ydF9pZCI6IjVjZTQ1OGZlZWVhMjVmNjFkMzU2ZDVlYyIsInRva2VuX3R5cGUiOiJyZXBvcnQiLCJ0ZWFtX2lkIjoiNWNlNDU4ZmVlZWEyNWY2MWQzNTZkNWNjIn0.Ujnlv81VG8sOQqvtiYs_RTM6E9UxMeoiBehsJWFTGuc"
}

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/5ce45901eea25f61d356d6c5/unsubmit

Headers

Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVjZTQ1OTAxZWVhMjVmNjFkMzU2ZDZiZSIsImlkIjoiNWNlNDU5MDFlZWEyNWY2MWQzNTZkNmJmIiwic2VjcmV0IjoiMDlPNTJnPT0ifQ.mRUmoAyJ85gnsvHE1BxHud1XY_DHNKRBj3b4C0eYmjo
Content-Type: application/x-www-form-urlencoded

Response

Simulated Response

Status

200

Headers

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

Body

{
  "id": "5ce45901eea25f61d356d6c5",
  "type": "AssessmentResult",
  "data": {
    "id": "5ce45901eea25f61d356d6c5",
    "assessmentId": "5ce45901eea25f61d356d6bd",
    "candidateId": "5ce45901eea25f61d356d6b4",
    "teamCandidateId": "5ce45901eea25f61d356d6c6",
    "teamId": "5ce45901eea25f61d356d6b7",
    "state": "opened",
    "createdAt": "1970-01-01T03:45:00.874Z",
    "updatedAt": "2019-05-21T20:01:05.945Z",
    "startedAt": null,
    "invitedAt": null,
    "submittedAt": null,
    "submittingAt": "1970-01-01T01:53:00.874Z",
    "openedAt": "2019-05-21T20:01:05.940Z",
    "originalOpenedAt": null,
    "originalStartedAt": null,
    "originalSubmittedAt": "2019-05-21T20:01:05.879Z",
    "dryRun": false,
    "candidateRemarks": null,
    "score": 0.0,
    "closedReason": null,
    "redirectUrl": null,
    "submissionMessage": null,
    "nextAssessmentId": null,
    "totalSubmissionSeconds": null,
    "totalOriginalSubmissionSeconds": null,
    "accumulatedSeconds": 0,
    "enforcedTimeLimit": null,
    "timerExpiresIn": null,
    "wallTimeSinceStart": 0,
    "reopenedById": "5ce45901eea25f61d356d6bf",
    "activeTimedSolutionId": null,
    "isActiveInteractSession": false,
    "candidateName": "Joe Smith246",
    "candidateEmail": "[email protected]",
    "candidatePhone": null,
    "interviewerIds": [],
    "activeInterviewerIds": [],
    "abandoned": false,
    "workflowName": null,
    "isInteractSession": false,
    "challengeItems": []
  },
  "meta": {
    "enums": {
      "closedReason": [
        {
          "value": "candidate_submitted",
          "text": "Candidate submitted"
        },
        {
          "value": "timer_ran_out",
          "text": "Timer ran out"
        },
        {
          "value": "team_forced",
          "text": "Team forced"
        },
        {
          "value": "team_decided",
          "text": "Team decided"
        },
        {
          "value": "invitation_canceled",
          "text": "Invitation canceled"
        },
        {
          "value": "assessment_archived",
          "text": "Assessment archived"
        }
      ],
      "state": [
        {
          "value": "invited",
          "text": "Invited"
        },
        {
          "value": "opened",
          "text": "Opened"
        },
        {
          "value": "started",
          "text": "Started"
        },
        {
          "value": "submitting",
          "text": "Submitting"
        },
        {
          "value": "submitted",
          "text": "Submitted"
        },
        {
          "value": "terminated",
          "text": "Terminated"
        }
      ]
    },
    "timestamp": "2019-05-21T13:01:05.968-07:00",
    "includes": []
  }
}

Assessment Templates

List

Endpoint

GET /v1/assessment_templates

Request

Route

GET /v1/assessment_templates

Headers

Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVjZTQ1OTAyZWVhMjVmNjFkMzU2ZDc1YSIsImlkIjoiNWNlNDU5MDJlZWEyNWY2MWQzNTZkNzViIiwic2VjcmV0IjoiOEQ4Q3B3PT0ifQ.7yA3gGBTMUhAoGXiSVJqg_pMueX566zRnMdSd_mpqYY

Response

Simulated Response

Status

200

Headers

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

Body

{
  "type": "Assessment",
  "data": [
    {
      "id": "5ce45902eea25f61d356d6d2",
      "title": "Junior Web Engineer #124",
      "state": "published",
      "defaultLanguage": null,
      "defaultInviteMessage": null,
      "teamId": "5ce45902eea25f61d356d6cc",
      "nounUpper": "Assessment",
      "nounLower": "assessment",
      "skipPracticeAssessment": null,
      "inviteOnly": false,
      "softDeletedAt": null,
      "enforcedTimeLimit": null,
      "manualEstimatedTime": null,
      "suggestedEstimatedTime": 12,
      "copiedFromId": null,
      "showSolutionsToCandidates": true,
      "isTemplate": true,
      "isPractice": false,
      "isDemo": false,
      "galleryImage": null,
      "summary": "Autem blanditiis sit adipisci sapiente magni. Voluptas nobis provident autem omnis inventore. Repudiandae tempora et ex et voluptate iste.",
      "challengeItems": [
        {
          "id": "5ce45902eea25f61d356d6d9",
          "challengeId": "5ce45902eea25f61d356d6d6",
          "position": 1,
          "disabledLanguages": [],
          "challenge": {
            "id": "5ce45902eea25f61d356d6d6",
            "$type": "CodeChallenge",
            "teamId": "5ce45902eea25f61d356d6cc",
            "createdById": "5ce45902eea25f61d356d6d4",
            "lastUpdatedById": null,
            "copiedFromId": null,
            "title": "Node Array #195",
            "instructions": "Complete the solution",
            "difficulty": 1,
            "summary": null,
            "purpose": null,
            "topics": [
              "Fundamentals"
            ],
            "labels": null,
            "estimatedTime": 2,
            "state": "published",
            "publishedAt": "2019-05-21T20:01:06.098Z",
            "createdAt": "2019-05-21T20:01:06.104Z",
            "updatedAt": "2019-05-21T20:01:06.104Z",
            "libraryAccess": "limited",
            "timeLimitMin": null,
            "copiedFromLibrary": null,
            "copiedFromContentType": null,
            "contentType": "normal",
            "productTypes": {
              "_id": "5ce45902eea25f61d356d6d7",
              "education": true,
              "recruitment": true
            },
            "collection": "commons",
            "protected": true,
            "requiresUpgrade": false,
            "majorVersion": 1,
            "minorVersion": 0,
            "patchVersion": 0,
            "linkedStatus": false,
            "galleryImage": null,
            "defaultLanguage": null,
            "enforceAllTestsOnPublish": true,
            "sampleTestCasesEnabled": true,
            "enabledServices": [],
            "successMode": "specs",
            "similarityMode": "full",
            "similarityWeight": 1.0,
            "risks": null,
            "languages": [
              {
                "id": "5ce45902eea25f61d356d6d8",
                "name": "javascript",
                "exampleWallTime": null,
                "testFramework": "cw-2",
                "languageVersion": "10.x",
                "languageVersionName": "Node 10.14.0",
                "challengeReferenceIds": [],
                "generated": null,
                "availableTestFrameworks": [
                  "cw-2",
                  "mocha_bdd",
                  "mocha_tdd",
                  "karma_bdd",
                  "karma_tdd",
                  "jest"
                ],
                "totalTestCases": 1,
                "weightedTestCases": 1,
                "tagTestCases": null,
                "hiddenTestCases": 0,
                "exampleTestCases": "Test.expect(a == 1)",
                "setup": "var a = ",
                "testCases": "4ZEORhRnb5FX65p8vSa+jiqxWEd/ATMIYIfVIIknvQM=\n--3z94Hq67onRQGyVEYw/IPg==--u"
              }
            ]
          }
        },
        {
          "id": "5ce45902eea25f61d356d6dd",
          "challengeId": "5ce45902eea25f61d356d6da",
          "position": 2,
          "disabledLanguages": [],
          "challenge": {
            "id": "5ce45902eea25f61d356d6da",
            "$type": "CodeChallenge",
            "teamId": "5ce45902eea25f61d356d6cc",
            "createdById": "5ce45902eea25f61d356d6d4",
            "lastUpdatedById": null,
            "copiedFromId": null,
            "title": "Repeated Search #196",
            "instructions": "Complete the solution",
            "difficulty": 1,
            "summary": null,
            "purpose": null,
            "topics": [
              "Logic"
            ],
            "labels": null,
            "estimatedTime": 2,
            "state": "published",
            "publishedAt": "2019-05-21T20:01:06.143Z",
            "createdAt": "2019-05-21T20:01:06.147Z",
            "updatedAt": "2019-05-21T20:01:06.147Z",
            "libraryAccess": "limited",
            "timeLimitMin": null,
            "copiedFromLibrary": null,
            "copiedFromContentType": null,
            "contentType": "normal",
            "productTypes": {
              "_id": "5ce45902eea25f61d356d6db",
              "education": true,
              "recruitment": true
            },
            "collection": "commons",
            "protected": true,
            "requiresUpgrade": false,
            "majorVersion": 1,
            "minorVersion": 0,
            "patchVersion": 0,
            "linkedStatus": false,
            "galleryImage": null,
            "defaultLanguage": null,
            "enforceAllTestsOnPublish": true,
            "sampleTestCasesEnabled": true,
            "enabledServices": [],
            "successMode": "specs",
            "similarityMode": "full",
            "similarityWeight": 1.0,
            "risks": null,
            "languages": [
              {
                "id": "5ce45902eea25f61d356d6dc",
                "name": "javascript",
                "exampleWallTime": null,
                "testFramework": "cw-2",
                "languageVersion": "10.x",
                "languageVersionName": "Node 10.14.0",
                "challengeReferenceIds": [],
                "generated": null,
                "availableTestFrameworks": [
                  "cw-2",
                  "mocha_bdd",
                  "mocha_tdd",
                  "karma_bdd",
                  "karma_tdd",
                  "jest"
                ],
                "totalTestCases": 1,
                "weightedTestCases": 1,
                "tagTestCases": null,
                "hiddenTestCases": 0,
                "exampleTestCases": "Test.expect(a == 1)",
                "setup": "var a = ",
                "testCases": "3pjwq/IKgHjwBCKKJG7+zzQeMz/dUH+dar7E/kudH7I=\n--K/O/tOPkkiEdpTaN9ptoOg==--u"
              }
            ]
          }
        },
        {
          "id": "5ce45902eea25f61d356d6e1",
          "challengeId": "5ce45902eea25f61d356d6de",
          "position": 3,
          "disabledLanguages": [],
          "challenge": {
            "id": "5ce45902eea25f61d356d6de",
            "$type": "CodeChallenge",
            "teamId": "5ce45902eea25f61d356d6cc",
            "createdById": "5ce45902eea25f61d356d6d4",
            "lastUpdatedById": null,
            "copiedFromId": null,
            "title": "Functional Handler #197",
            "instructions": "Complete the solution",
            "difficulty": 1,
            "summary": null,
            "purpose": null,
            "topics": [
              "Algorithms"
            ],
            "labels": null,
            "estimatedTime": 2,
            "state": "published",
            "publishedAt": "2019-05-21T20:01:06.159Z",
            "createdAt": "2019-05-21T20:01:06.162Z",
            "updatedAt": "2019-05-21T20:01:06.162Z",
            "libraryAccess": "limited",
            "timeLimitMin": null,
            "copiedFromLibrary": null,
            "copiedFromContentType": null,
            "contentType": "normal",
            "productTypes": {
              "_id": "5ce45902eea25f61d356d6df",
              "education": true,
              "recruitment": true
            },
            "collection": "commons",
            "protected": true,
            "requiresUpgrade": false,
            "majorVersion": 1,
            "minorVersion": 0,
            "patchVersion": 0,
            "linkedStatus": false,
            "galleryImage": null,
            "defaultLanguage": null,
            "enforceAllTestsOnPublish": true,
            "sampleTestCasesEnabled": true,
            "enabledServices": [],
            "successMode": "specs",
            "similarityMode": "full",
            "similarityWeight": 1.0,
            "risks": null,
            "languages": [
              {
                "id": "5ce45902eea25f61d356d6e0",
                "name": "javascript",
                "exampleWallTime": null,
                "testFramework": "cw-2",
                "languageVersion": "10.x",
                "languageVersionName": "Node 10.14.0",
                "challengeReferenceIds": [],
                "generated": null,
                "availableTestFrameworks": [
                  "cw-2",
                  "mocha_bdd",
                  "mocha_tdd",
                  "karma_bdd",
                  "karma_tdd",
                  "jest"
                ],
                "totalTestCases": 1,
                "weightedTestCases": 1,
                "tagTestCases": null,
                "hiddenTestCases": 0,
                "exampleTestCases": "Test.expect(a == 1)",
                "setup": "var a = ",
                "testCases": "R/8ETN/5H/PmlxujnheCUeF9qeVJMYjAyUehgdZgvLk=\n--NhXO8CRBfxTVbRXfvGTMwg==--u"
              }
            ]
          }
        },
        {
          "id": "5ce45902eea25f61d356d6e5",
          "challengeId": "5ce45902eea25f61d356d6e2",
          "position": 4,
          "disabledLanguages": [],
          "challenge": {
            "id": "5ce45902eea25f61d356d6e2",
            "$type": "CodeChallenge",
            "teamId": "5ce45902eea25f61d356d6cc",
            "createdById": "5ce45902eea25f61d356d6d4",
            "lastUpdatedById": null,
            "copiedFromId": null,
            "title": "Email Items #198",
            "instructions": "Complete the solution",
            "difficulty": 1,
            "summary": null,
            "purpose": null,
            "topics": [
              "Fundamentals"
            ],
            "labels": null,
            "estimatedTime": 2,
            "state": "published",
            "publishedAt": "2019-05-21T20:01:06.173Z",
            "createdAt": "2019-05-21T20:01:06.177Z",
            "updatedAt": "2019-05-21T20:01:06.177Z",
            "libraryAccess": "limited",
            "timeLimitMin": null,
            "copiedFromLibrary": null,
            "copiedFromContentType": null,
            "contentType": "normal",
            "productTypes": {
              "_id": "5ce45902eea25f61d356d6e3",
              "education": true,
              "recruitment": true
            },
            "collection": "commons",
            "protected": true,
            "requiresUpgrade": false,
            "majorVersion": 1,
            "minorVersion": 0,
            "patchVersion": 0,
            "linkedStatus": false,
            "galleryImage": null,
            "defaultLanguage": null,
            "enforceAllTestsOnPublish": true,
            "sampleTestCasesEnabled": true,
            "enabledServices": [],
            "successMode": "specs",
            "similarityMode": "full",
            "similarityWeight": 1.0,
            "risks": null,
            "languages": [
              {
                "id": "5ce45902eea25f61d356d6e4",
                "name": "javascript",
                "exampleWallTime": null,
                "testFramework": "cw-2",
                "languageVersion": "10.x",
                "languageVersionName": "Node 10.14.0",
                "challengeReferenceIds": [],
                "generated": null,
                "availableTestFrameworks": [
                  "cw-2",
                  "mocha_bdd",
                  "mocha_tdd",
                  "karma_bdd",
                  "karma_tdd",
                  "jest"
                ],
                "totalTestCases": 1,
                "weightedTestCases": 1,
                "tagTestCases": null,
                "hiddenTestCases": 0,
                "exampleTestCases": "Test.expect(a == 1)",
                "setup": "var a = ",
                "testCases": "Zyy5W9N2XqEllNBHaB9Mf/nIOFtFrK53aAqm+HReDP0=\n--v3Fnfsxr+dRkGfXN1Ka18A==--u"
              }
            ]
          }
        },
        {
          "id": "5ce45902eea25f61d356d6e9",
          "challengeId": "5ce45902eea25f61d356d6e6",
          "position": 5,
          "disabledLanguages": [],
          "challenge": {
            "id": "5ce45902eea25f61d356d6e6",
            "$type": "CodeChallenge",
            "teamId": "5ce45902eea25f61d356d6cc",
            "createdById": "5ce45902eea25f61d356d6d4",
            "lastUpdatedById": null,
            "copiedFromId": null,
            "title": "Cipher Game #199",
            "instructions": "Complete the solution",
            "difficulty": 1,
            "summary": null,
            "purpose": null,
            "topics": [
              "Meta-programming"
            ],
            "labels": null,
            "estimatedTime": 2,
            "state": "published",
            "publishedAt": "2019-05-21T20:01:06.189Z",
            "createdAt": "2019-05-21T20:01:06.193Z",
            "updatedAt": "2019-05-21T20:01:06.193Z",
            "libraryAccess": "limited",
            "timeLimitMin": null,
            "copiedFromLibrary": null,
            "copiedFromContentType": null,
            "contentType": "normal",
            "productTypes": {
              "_id": "5ce45902eea25f61d356d6e7",
              "education": true,
              "recruitment": true
            },
            "collection": "commons",
            "protected": true,
            "requiresUpgrade": false,
            "majorVersion": 1,
            "minorVersion": 0,
            "patchVersion": 0,
            "linkedStatus": false,
            "galleryImage": null,
            "defaultLanguage": null,
            "enforceAllTestsOnPublish": true,
            "sampleTestCasesEnabled": true,
            "enabledServices": [],
            "successMode": "specs",
            "similarityMode": "full",
            "similarityWeight": 1.0,
            "risks": null,
            "languages": [
              {
                "id": "5ce45902eea25f61d356d6e8",
                "name": "javascript",
                "exampleWallTime": null,
                "testFramework": "cw-2",
                "languageVersion": "10.x",
                "languageVersionName": "Node 10.14.0",
                "challengeReferenceIds": [],
                "generated": null,
                "availableTestFrameworks": [
                  "cw-2",
                  "mocha_bdd",
                  "mocha_tdd",
                  "karma_bdd",
                  "karma_tdd",
                  "jest"
                ],
                "totalTestCases": 1,
                "weightedTestCases": 1,
                "tagTestCases": null,
                "hiddenTestCases": 0,
                "exampleTestCases": "Test.expect(a == 1)",
                "setup": "var a = ",
                "testCases": "nL1YlDWbdZoLs0EkYkdgyQvHDjrkEu93DEho0Hw9kAg=\n--pUzksemLnyWqzdA/R4pQpQ==--u"
              }
            ]
          }
        },
        {
          "id": "5ce45902eea25f61d356d6ed",
          "challengeId": "5ce45902eea25f61d356d6ea",
          "position": 6,
          "disabledLanguages": [],
          "challenge": {
            "id": "5ce45902eea25f61d356d6ea",
            "$type": "CodeChallenge",
            "teamId": "5ce45902eea25f61d356d6cc",
            "createdById": "5ce45902eea25f61d356d6d4",
            "lastUpdatedById": null,
            "copiedFromId": null,
            "title": "Balanced Monad #200",
            "instructions": "Complete the solution",
            "difficulty": 1,
            "summary": null,
            "purpose": null,
            "topics": [
              "Algorithms"
            ],
            "labels": null,
            "estimatedTime": 2,
            "state": "published",
            "publishedAt": "2019-05-21T20:01:06.204Z",
            "createdAt": "2019-05-21T20:01:06.208Z",
            "updatedAt": "2019-05-21T20:01:06.208Z",
            "libraryAccess": "limited",
            "timeLimitMin": null,
            "copiedFromLibrary": null,
            "copiedFromContentType": null,
            "contentType": "normal",
            "productTypes": {
              "_id": "5ce45902eea25f61d356d6eb",
              "education": true,
              "recruitment": true
            },
            "collection": "commons",
            "protected": true,
            "requiresUpgrade": false,
            "majorVersion": 1,
            "minorVersion": 0,
            "patchVersion": 0,
            "linkedStatus": false,
            "galleryImage": null,
            "defaultLanguage": null,
            "enforceAllTestsOnPublish": true,
            "sampleTestCasesEnabled": true,
            "enabledServices": [],
            "successMode": "specs",
            "similarityMode": "full",
            "similarityWeight": 1.0,
            "risks": null,
            "languages": [
              {
                "id": "5ce45902eea25f61d356d6ec",
                "name": "javascript",
                "exampleWallTime": null,
                "testFramework": "cw-2",
                "languageVersion": "10.x",
                "languageVersionName": "Node 10.14.0",
                "challengeReferenceIds": [],
                "generated": null,
                "availableTestFrameworks": [
                  "cw-2",
                  "mocha_bdd",
                  "mocha_tdd",
                  "karma_bdd",
                  "karma_tdd",
                  "jest"
                ],
                "totalTestCases": 1,
                "weightedTestCases": 1,
                "tagTestCases": null,
                "hiddenTestCases": 0,
                "exampleTestCases": "Test.expect(a == 1)",
                "setup": "var a = ",
                "testCases": "XUoSrkNje014NPPGxEDsnhu2yDr+hhVZonjvBKc8h6w=\n--6GPGdO/961uPf6totrg6YQ==--u"
              }
            ]
          }
        }
      ],
      "activeAssessmentResultsCount": 0,
      "liveAssessmentResultsCount": 0,
      "activeInvitationsCount": 0,
      "purpose": "Dolores officia aut voluptatum excepturi dolorum dolor. Totam et eum ut quia eligendi facere. Veniam eos odit vero eius nam impedit iusto. Necessitatibus nihil nam qui consequuntur dolor. Culpa omnis et aperiam.",
      "demoLandingOrder": 1000
    },
    {
      "id": "5ce45902eea25f61d356d6ee",
      "title": "Mid-Level DevOps Engineer #125",
      "state": "published",
      "defaultLanguage": null,
      "defaultInviteMessage": null,
      "teamId": "5ce45902eea25f61d356d6cc",
      "nounUpper": "Assessment",
      "nounLower": "assessment",
      "skipPracticeAssessment": null,
      "inviteOnly": false,
      "softDeletedAt": null,
      "enforcedTimeLimit": null,
      "manualEstimatedTime": null,
      "suggestedEstimatedTime": 12,
      "copiedFromId": null,
      "showSolutionsToCandidates": true,
      "isTemplate": true,
      "isPractice": false,
      "isDemo": false,
      "galleryImage": null,
      "summary": "Consequatur fugit modi id nostrum ut. Unde sapiente eos delectus numquam. Nobis saepe iste. Excepturi mollitia animi.",
      "challengeItems": [
        {
          "id": "5ce45902eea25f61d356d6f2",
          "challengeId": "5ce45902eea25f61d356d6ef",
          "position": 1,
          "disabledLanguages": [],
          "challenge": {
            "id": "5ce45902eea25f61d356d6ef",
            "$type": "CodeChallenge",
            "teamId": "5ce45902eea25f61d356d6cc",
            "createdById": "5ce45902eea25f61d356d6d4",
            "lastUpdatedById": null,
            "copiedFromId": null,
            "title": "Light Substring #201",
            "instructions": "Complete the solution",
            "difficulty": 1,
            "summary": null,
            "purpose": null,
            "topics": [
              "Fundamentals"
            ],
            "labels": null,
            "estimatedTime": 2,
            "state": "published",
            "publishedAt": "2019-05-21T20:01:06.228Z",
            "createdAt": "2019-05-21T20:01:06.232Z",
            "updatedAt": "2019-05-21T20:01:06.232Z",
            "libraryAccess": "limited",
            "timeLimitMin": null,
            "copiedFromLibrary": null,
            "copiedFromContentType": null,
            "contentType": "normal",
            "productTypes": {
              "_id": "5ce45902eea25f61d356d6f0",
              "education": true,
              "recruitment": true
            },
            "collection": "commons",
            "protected": true,
            "requiresUpgrade": false,
            "majorVersion": 1,
            "minorVersion": 0,
            "patchVersion": 0,
            "linkedStatus": false,
            "galleryImage": null,
            "defaultLanguage": null,
            "enforceAllTestsOnPublish": true,
            "sampleTestCasesEnabled": true,
            "enabledServices": [],
            "successMode": "specs",
            "similarityMode": "full",
            "similarityWeight": 1.0,
            "risks": null,
            "languages": [
              {
                "id": "5ce45902eea25f61d356d6f1",
                "name": "javascript",
                "exampleWallTime": null,
                "testFramework": "cw-2",
                "languageVersion": "10.x",
                "languageVersionName": "Node 10.14.0",
                "challengeReferenceIds": [],
                "generated": null,
                "availableTestFrameworks": [
                  "cw-2",
                  "mocha_bdd",
                  "mocha_tdd",
                  "karma_bdd",
                  "karma_tdd",
                  "jest"
                ],
                "totalTestCases": 1,
                "weightedTestCases": 1,
                "tagTestCases": null,
                "hiddenTestCases": 0,
                "exampleTestCases": "Test.expect(a == 1)",
                "setup": "var a = ",
                "testCases": "ZKZcY1ABB6N4lNzIyDAel3Wjdv++ydLZC3NRs2U5Jwk=\n--+8PwGEM7PZkw22rcaUXcjA==--u"
              }
            ]
          }
        },
        {
          "id": "5ce45902eea25f61d356d6f6",
          "challengeId": "5ce45902eea25f61d356d6f3",
          "position": 2,
          "disabledLanguages": [],
          "challenge": {
            "id": "5ce45902eea25f61d356d6f3",
            "$type": "CodeChallenge",
            "teamId": "5ce45902eea25f61d356d6cc",
            "createdById": "5ce45902eea25f61d356d6d4",
            "lastUpdatedById": null,
            "copiedFromId": null,
            "title": "Inverted Lists #202",
            "instructions": "Complete the solution",
            "difficulty": 1,
            "summary": null,
            "purpose": null,
            "topics": [
              "Meta-programming"
            ],
            "labels": null,
            "estimatedTime": 2,
            "state": "published",
            "publishedAt": "2019-05-21T20:01:06.251Z",
            "createdAt": "2019-05-21T20:01:06.255Z",
            "updatedAt": "2019-05-21T20:01:06.255Z",
            "libraryAccess": "limited",
            "timeLimitMin": null,
            "copiedFromLibrary": null,
            "copiedFromContentType": null,
            "contentType": "normal",
            "productTypes": {
              "_id": "5ce45902eea25f61d356d6f4",
              "education": true,
              "recruitment": true
            },
            "collection": "commons",
            "protected": true,
            "requiresUpgrade": false,
            "majorVersion": 1,
            "minorVersion": 0,
            "patchVersion": 0,
            "linkedStatus": false,
            "galleryImage": null,
            "defaultLanguage": null,
            "enforceAllTestsOnPublish": true,
            "sampleTestCasesEnabled": true,
            "enabledServices": [],
            "successMode": "specs",
            "similarityMode": "full",
            "similarityWeight": 1.0,
            "risks": null,
            "languages": [
              {
                "id": "5ce45902eea25f61d356d6f5",
                "name": "javascript",
                "exampleWallTime": null,
                "testFramework": "cw-2",
                "languageVersion": "10.x",
                "languageVersionName": "Node 10.14.0",
                "challengeReferenceIds": [],
                "generated": null,
                "availableTestFrameworks": [
                  "cw-2",
                  "mocha_bdd",
                  "mocha_tdd",
                  "karma_bdd",
                  "karma_tdd",
                  "jest"
                ],
                "totalTestCases": 1,
                "weightedTestCases": 1,
                "tagTestCases": null,
                "hiddenTestCases": 0,
                "exampleTestCases": "Test.expect(a == 1)",
                "setup": "var a = ",
                "testCases": "5nOstgxlXGYtXjlww8ToqycZBmuQdCz0Zg/kj4srwu0=\n--UB6gzVydFEt4Eg/4nCtSnQ==--u"
              }
            ]
          }
        },
        {
          "id": "5ce45902eea25f61d356d6fa",
          "challengeId": "5ce45902eea25f61d356d6f7",
          "position": 3,
          "disabledLanguages": [],
          "challenge": {
            "id": "5ce45902eea25f61d356d6f7",
            "$type": "CodeChallenge",
            "teamId": "5ce45902eea25f61d356d6cc",
            "createdById": "5ce45902eea25f61d356d6d4",
            "lastUpdatedById": null,
            "copiedFromId": null,
            "title": "Email Algorithm #203",
            "instructions": "Complete the solution",
            "difficulty": 1,
            "summary": null,
            "purpose": null,
            "topics": [
              "Algorithms"
            ],
            "labels": null,
            "estimatedTime": 2,
            "state": "published",
            "publishedAt": "2019-05-21T20:01:06.270Z",
            "createdAt": "2019-05-21T20:01:06.274Z",
            "updatedAt": "2019-05-21T20:01:06.274Z",
            "libraryAccess": "limited",
            "timeLimitMin": null,
            "copiedFromLibrary": null,
            "copiedFromContentType": null,
            "contentType": "normal",
            "productTypes": {
              "_id": "5ce45902eea25f61d356d6f8",
              "education": true,
              "recruitment": true
            },
            "collection": "commons",
            "protected": true,
            "requiresUpgrade": false,
            "majorVersion": 1,
            "minorVersion": 0,
            "patchVersion": 0,
            "linkedStatus": false,
            "galleryImage": null,
            "defaultLanguage": null,
            "enforceAllTestsOnPublish": true,
            "sampleTestCasesEnabled": true,
            "enabledServices": [],
            "successMode": "specs",
            "similarityMode": "full",
            "similarityWeight": 1.0,
            "risks": null,
            "languages": [
              {
                "id": "5ce45902eea25f61d356d6f9",
                "name": "javascript",
                "exampleWallTime": null,
                "testFramework": "cw-2",
                "languageVersion": "10.x",
                "languageVersionName": "Node 10.14.0",
                "challengeReferenceIds": [],
                "generated": null,
                "availableTestFrameworks": [
                  "cw-2",
                  "mocha_bdd",
                  "mocha_tdd",
                  "karma_bdd",
                  "karma_tdd",
                  "jest"
                ],
                "totalTestCases": 1,
                "weightedTestCases": 1,
                "tagTestCases": null,
                "hiddenTestCases": 0,
                "exampleTestCases": "Test.expect(a == 1)",
                "setup": "var a = ",
                "testCases": "IjVfix/+EjpPGolgWuxTYtg17vyWE3fLlDGRPqezt4o=\n--s9VtmNZJBKSf8YxUEiZIfQ==--u"
              }
            ]
          }
        },
        {
          "id": "5ce45902eea25f61d356d6fe",
          "challengeId": "5ce45902eea25f61d356d6fb",
          "position": 4,
          "disabledLanguages": [],
          "challenge": {
            "id": "5ce45902eea25f61d356d6fb",
            "$type": "CodeChallenge",
            "teamId": "5ce45902eea25f61d356d6cc",
            "createdById": "5ce45902eea25f61d356d6d4",
            "lastUpdatedById": null,
            "copiedFromId": null,
            "title": "Functional Solution #204",
            "instructions": "Complete the solution",
            "difficulty": 1,
            "summary": null,
            "purpose": null,
            "topics": [
              "Algorithms"
            ],
            "labels": null,
            "estimatedTime": 2,
            "state": "published",
            "publishedAt": "2019-05-21T20:01:06.290Z",
            "createdAt": "2019-05-21T20:01:06.294Z",
            "updatedAt": "2019-05-21T20:01:06.294Z",
            "libraryAccess": "limited",
            "timeLimitMin": null,
            "copiedFromLibrary": null,
            "copiedFromContentType": null,
            "contentType": "normal",
            "productTypes": {
              "_id": "5ce45902eea25f61d356d6fc",
              "education": true,
              "recruitment": true
            },
            "collection": "commons",
            "protected": true,
            "requiresUpgrade": false,
            "majorVersion": 1,
            "minorVersion": 0,
            "patchVersion": 0,
            "linkedStatus": false,
            "galleryImage": null,
            "defaultLanguage": null,
            "enforceAllTestsOnPublish": true,
            "sampleTestCasesEnabled": true,
            "enabledServices": [],
            "successMode": "specs",
            "similarityMode": "full",
            "similarityWeight": 1.0,
            "risks": null,
            "languages": [
              {
                "id": "5ce45902eea25f61d356d6fd",
                "name": "javascript",
                "exampleWallTime": null,
                "testFramework": "cw-2",
                "languageVersion": "10.x",
                "languageVersionName": "Node 10.14.0",
                "challengeReferenceIds": [],
                "generated": null,
                "availableTestFrameworks": [
                  "cw-2",
                  "mocha_bdd",
                  "mocha_tdd",
                  "karma_bdd",
                  "karma_tdd",
                  "jest"
                ],
                "totalTestCases": 1,
                "weightedTestCases": 1,
                "tagTestCases": null,
                "hiddenTestCases": 0,
                "exampleTestCases": "Test.expect(a == 1)",
                "setup": "var a = ",
                "testCases": "VnYlXuXtEgQcq2hy3mBb9axYW3Nk1mYdl+sAMktk0Fk=\n--AmlyPbIww3IaQ+F/z4K0tA==--u"
              }
            ]
          }
        },
        {
          "id": "5ce45902eea25f61d356d702",
          "challengeId": "5ce45902eea25f61d356d6ff",
          "position": 5,
          "disabledLanguages": [],
          "challenge": {
            "id": "5ce45902eea25f61d356d6ff",
            "$type": "CodeChallenge",
            "teamId": "5ce45902eea25f61d356d6cc",
            "createdById": "5ce45902eea25f61d356d6d4",
            "lastUpdatedById": null,
            "copiedFromId": null,
            "title": "Utility Solution #205",
            "instructions": "Complete the solution",
            "difficulty": 1,
            "summary": null,
            "purpose": null,
            "topics": [
              "Meta-programming"
            ],
            "labels": null,
            "estimatedTime": 2,
            "state": "published",
            "publishedAt": "2019-05-21T20:01:06.309Z",
            "createdAt": "2019-05-21T20:01:06.313Z",
            "updatedAt": "2019-05-21T20:01:06.313Z",
            "libraryAccess": "limited",
            "timeLimitMin": null,
            "copiedFromLibrary": null,
            "copiedFromContentType": null,
            "contentType": "normal",
            "productTypes": {
              "_id": "5ce45902eea25f61d356d700",
              "education": true,
              "recruitment": true
            },
            "collection": "commons",
            "protected": true,
            "requiresUpgrade": false,
            "majorVersion": 1,
            "minorVersion": 0,
            "patchVersion": 0,
            "linkedStatus": false,
            "galleryImage": null,
            "defaultLanguage": null,
            "enforceAllTestsOnPublish": true,
            "sampleTestCasesEnabled": true,
            "enabledServices": [],
            "successMode": "specs",
            "similarityMode": "full",
            "similarityWeight": 1.0,
            "risks": null,
            "languages": [
              {
                "id": "5ce45902eea25f61d356d701",
                "name": "javascript",
                "exampleWallTime": null,
                "testFramework": "cw-2",
                "languageVersion": "10.x",
                "languageVersionName": "Node 10.14.0",
                "challengeReferenceIds": [],
                "generated": null,
                "availableTestFrameworks": [
                  "cw-2",
                  "mocha_bdd",
                  "mocha_tdd",
                  "karma_bdd",
                  "karma_tdd",
                  "jest"
                ],
                "totalTestCases": 1,
                "weightedTestCases": 1,
                "tagTestCases": null,
                "hiddenTestCases": 0,
                "exampleTestCases": "Test.expect(a == 1)",
                "setup": "var a = ",
                "testCases": "wkLM4mJyo6bFaRpb67ppiKAGgnIoZOk0wmmMyx+r9yc=\n--UIhU+W2NUZypKZgQecMOEA==--u"
              }
            ]
          }
        },
        {
          "id": "5ce45902eea25f61d356d706",
          "challengeId": "5ce45902eea25f61d356d703",
          "position": 6,
          "disabledLanguages": [],
          "challenge": {
            "id": "5ce45902eea25f61d356d703",
            "$type": "CodeChallenge",
            "teamId": "5ce45902eea25f61d356d6cc",
            "createdById": "5ce45902eea25f61d356d6d4",
            "lastUpdatedById": null,
            "copiedFromId": null,
            "title": "Light Process #206",
            "instructions": "Complete the solution",
            "difficulty": 1,
            "summary": null,
            "purpose": null,
            "topics": [
              "Algorithms"
            ],
            "labels": null,
            "estimatedTime": 2,
            "state": "published",
            "publishedAt": "2019-05-21T20:01:06.327Z",
            "createdAt": "2019-05-21T20:01:06.332Z",
            "updatedAt": "2019-05-21T20:01:06.332Z",
            "libraryAccess": "limited",
            "timeLimitMin": null,
            "copiedFromLibrary": null,
            "copiedFromContentType": null,
            "contentType": "normal",
            "productTypes": {
              "_id": "5ce45902eea25f61d356d704",
              "education": true,
              "recruitment": true
            },
            "collection": "commons",
            "protected": true,
            "requiresUpgrade": false,
            "majorVersion": 1,
            "minorVersion": 0,
            "patchVersion": 0,
            "linkedStatus": false,
            "galleryImage": null,
            "defaultLanguage": null,
            "enforceAllTestsOnPublish": true,
            "sampleTestCasesEnabled": true,
            "enabledServices": [],
            "successMode": "specs",
            "similarityMode": "full",
            "similarityWeight": 1.0,
            "risks": null,
            "languages": [
              {
                "id": "5ce45902eea25f61d356d705",
                "name": "javascript",
                "exampleWallTime": null,
                "testFramework": "cw-2",
                "languageVersion": "10.x",
                "languageVersionName": "Node 10.14.0",
                "challengeReferenceIds": [],
                "generated": null,
                "availableTestFrameworks": [
                  "cw-2",
                  "mocha_bdd",
                  "mocha_tdd",
                  "karma_bdd",
                  "karma_tdd",
                  "jest"
                ],
                "totalTestCases": 1,
                "weightedTestCases": 1,
                "tagTestCases": null,
                "hiddenTestCases": 0,
                "exampleTestCases": "Test.expect(a == 1)",
                "setup": "var a = ",
                "testCases": "DyGKvl3JYFOKoRXH7T1MZRC2zfIbu3074h90mKvItE8=\n--DdFSOfv+kzmHjCH6d4SHSQ==--u"
              }
            ]
          }
        }
      ],
      "activeAssessmentResultsCount": 0,
      "liveAssessmentResultsCount": 0,
      "activeInvitationsCount": 0,
      "purpose": "Quos reprehenderit porro ut. Qui sint quia voluptas cupiditate repudiandae omnis. Iusto exercitationem nemo dolores nobis. Libero quasi eaque beatae quisquam molestiae reprehenderit.",
      "demoLandingOrder": 1000
    },
    {
      "id": "5ce45902eea25f61d356d707",
      "title": "Mid-Level Node Engineer #126",
      "state": "published",
      "defaultLanguage": null,
      "defaultInviteMessage": null,
      "teamId": "5ce45902eea25f61d356d6cc",
      "nounUpper": "Assessment",
      "nounLower": "assessment",
      "skipPracticeAssessment": null,
      "inviteOnly": false,
      "softDeletedAt": null,
      "enforcedTimeLimit": null,
      "manualEstimatedTime": null,
      "suggestedEstimatedTime": 12,
      "copiedFromId": null,
      "showSolutionsToCandidates": true,
      "isTemplate": true,
      "isPractice": false,
      "isDemo": false,
      "galleryImage": null,
      "summary": "Perferendis laborum exercitationem sed et officiis. Aut repellendus est et molestiae quia. Maiores quaerat voluptatem autem occaecati.",
      "challengeItems": [
        {
          "id": "5ce45902eea25f61d356d70b",
          "challengeId": "5ce45902eea25f61d356d708",
          "position": 1,
          "disabledLanguages": [],
          "challenge": {
            "id": "5ce45902eea25f61d356d708",
            "$type": "CodeChallenge",
            "teamId": "5ce45902eea25f61d356d6cc",
            "createdById": "5ce45902eea25f61d356d6d4",
            "lastUpdatedById": null,
            "copiedFromId": null,
            "title": "Light Class #207",
            "instructions": "Complete the solution",
            "difficulty": 1,
            "summary": null,
            "purpose": null,
            "topics": [
              "Algorithms"
            ],
            "labels": null,
            "estimatedTime": 2,
            "state": "published",
            "publishedAt": "2019-05-21T20:01:06.356Z",
            "createdAt": "2019-05-21T20:01:06.360Z",
            "updatedAt": "2019-05-21T20:01:06.360Z",
            "libraryAccess": "limited",
            "timeLimitMin": null,
            "copiedFromLibrary": null,
            "copiedFromContentType": null,
            "contentType": "normal",
            "productTypes": {
              "_id": "5ce45902eea25f61d356d709",
              "education": true,
              "recruitment": true
            },
            "collection": "commons",
            "protected": true,
            "requiresUpgrade": false,
            "majorVersion": 1,
            "minorVersion": 0,
            "patchVersion": 0,
            "linkedStatus": false,
            "galleryImage": null,
            "defaultLanguage": null,
            "enforceAllTestsOnPublish": true,
            "sampleTestCasesEnabled": true,
            "enabledServices": [],
            "successMode": "specs",
            "similarityMode": "full",
            "similarityWeight": 1.0,
            "risks": null,
            "languages": [
              {
                "id": "5ce45902eea25f61d356d70a",
                "name": "javascript",
                "exampleWallTime": null,
                "testFramework": "cw-2",
                "languageVersion": "10.x",
                "languageVersionName": "Node 10.14.0",
                "challengeReferenceIds": [],
                "generated": null,
                "availableTestFrameworks": [
                  "cw-2",
                  "mocha_bdd",
                  "mocha_tdd",
                  "karma_bdd",
                  "karma_tdd",
                  "jest"
                ],
                "totalTestCases": 1,
                "weightedTestCases": 1,
                "tagTestCases": null,
                "hiddenTestCases": 0,
                "exampleTestCases": "Test.expect(a == 1)",
                "setup": "var a = ",
                "testCases": "aHh/G2XivHIJjGkkqyafi4W9mFDspgqGwk9FW70KPPQ=\n--atkpbaLYrqY3eSNn5CLuSw==--u"
              }
            ]
          }
        },
        {
          "id": "5ce45902eea25f61d356d70f",
          "challengeId": "5ce45902eea25f61d356d70c",
          "position": 2,
          "disabledLanguages": [],
          "challenge": {
            "id": "5ce45902eea25f61d356d70c",
            "$type": "CodeChallenge",
            "teamId": "5ce45902eea25f61d356d6cc",
            "createdById": "5ce45902eea25f61d356d6d4",
            "lastUpdatedById": null,
            "copiedFromId": null,
            "title": "Functional Process #208",
            "instructions": "Complete the solution",
            "difficulty": 1,
            "summary": null,
            "purpose": null,
            "topics": [
              "Logic"
            ],
            "labels": null,
            "estimatedTime": 2,
            "state": "published",
            "publishedAt": "2019-05-21T20:01:06.380Z",
            "createdAt": "2019-05-21T20:01:06.385Z",
            "updatedAt": "2019-05-21T20:01:06.385Z",
            "libraryAccess": "limited",
            "timeLimitMin": null,
            "copiedFromLibrary": null,
            "copiedFromContentType": null,
            "contentType": "normal",
            "productTypes": {
              "_id": "5ce45902eea25f61d356d70d",
              "education": true,
              "recruitment": true
            },
            "collection": "commons",
            "protected": true,
            "requiresUpgrade": false,
            "majorVersion": 1,
            "minorVersion": 0,
            "patchVersion": 0,
            "linkedStatus": false,
            "galleryImage": null,
            "defaultLanguage": null,
            "enforceAllTestsOnPublish": true,
            "sampleTestCasesEnabled": true,
            "enabledServices": [],
            "successMode": "specs",
            "similarityMode": "full",
            "similarityWeight": 1.0,
            "risks": null,
            "languages": [
              {
                "id": "5ce45902eea25f61d356d70e",
                "name": "javascript",
                "exampleWallTime": null,
                "testFramework": "cw-2",
                "languageVersion": "10.x",
                "languageVersionName": "Node 10.14.0",
                "challengeReferenceIds": [],
                "generated": null,
                "availableTestFrameworks": [
                  "cw-2",
                  "mocha_bdd",
                  "mocha_tdd",
                  "karma_bdd",
                  "karma_tdd",
                  "jest"
                ],
                "totalTestCases": 1,
                "weightedTestCases": 1,
                "tagTestCases": null,
                "hiddenTestCases": 0,
                "exampleTestCases": "Test.expect(a == 1)",
                "setup": "var a = ",
                "testCases": "RklZFo1P5mrn6KzqvC/LIJe1ZpA5MHBKVtlDC4DikR8=\n--b+SRqK745pB0AuRK/bjXaQ==--u"
              }
            ]
          }
        },
        {
          "id": "5ce45902eea25f61d356d713",
          "challengeId": "5ce45902eea25f61d356d710",
          "position": 3,
          "disabledLanguages": [],
          "challenge": {
            "id": "5ce45902eea25f61d356d710",
            "$type": "CodeChallenge",
            "teamId": "5ce45902eea25f61d356d6cc",
            "createdById": "5ce45902eea25f61d356d6d4",
            "lastUpdatedById": null,
            "copiedFromId": null,
            "title": "Sequential System #209",
            "instructions": "Complete the solution",
            "difficulty": 1,
            "summary": null,
            "purpose": null,
            "topics": [
              "Fundamentals"
            ],
            "labels": null,
            "estimatedTime": 2,
            "state": "published",
            "publishedAt": "2019-05-21T20:01:06.399Z",
            "createdAt": "2019-05-21T20:01:06.403Z",
            "updatedAt": "2019-05-21T20:01:06.403Z",
            "libraryAccess": "limited",
            "timeLimitMin": null,
            "copiedFromLibrary": null,
            "copiedFromContentType": null,
            "contentType": "normal",
            "productTypes": {
              "_id": "5ce45902eea25f61d356d711",
              "education": true,
              "recruitment": true
            },
            "collection": "commons",
            "protected": true,
            "requiresUpgrade": false,
            "majorVersion": 1,
            "minorVersion": 0,
            "patchVersion": 0,
            "linkedStatus": false,
            "galleryImage": null,
            "defaultLanguage": null,
            "enforceAllTestsOnPublish": true,
            "sampleTestCasesEnabled": true,
            "enabledServices": [],
            "successMode": "specs",
            "similarityMode": "full",
            "similarityWeight": 1.0,
            "risks": null,
            "languages": [
              {
                "id": "5ce45902eea25f61d356d712",
                "name": "javascript",
                "exampleWallTime": null,
                "testFramework": "cw-2",
                "languageVersion": "10.x",
                "languageVersionName": "Node 10.14.0",
                "challengeReferenceIds": [],
                "generated": null,
                "availableTestFrameworks": [
                  "cw-2",
                  "mocha_bdd",
                  "mocha_tdd",
                  "karma_bdd",
                  "karma_tdd",
                  "jest"
                ],
                "totalTestCases": 1,
                "weightedTestCases": 1,
                "tagTestCases": null,
                "hiddenTestCases": 0,
                "exampleTestCases": "Test.expect(a == 1)",
                "setup": "var a = ",
                "testCases": "9ubqRc5qarMRf2ISunTM2/hpiOZWLws6ky8EDo2TZEI=\n--G11ONTd5670nwezXr1XVYg==--u"
              }
            ]
          }
        },
        {
          "id": "5ce45902eea25f61d356d717",
          "challengeId": "5ce45902eea25f61d356d714",
          "position": 4,
          "disabledLanguages": [],
          "challenge": {
            "id": "5ce45902eea25f61d356d714",
            "$type": "CodeChallenge",
            "teamId": "5ce45902eea25f61d356d6cc",
            "createdById": "5ce45902eea25f61d356d6d4",
            "lastUpdatedById": null,
            "copiedFromId": null,
            "title": "Magic Objects #210",
            "instructions": "Complete the solution",
            "difficulty": 1,
            "summary": null,
            "purpose": null,
            "topics": [
              "Fundamentals"
            ],
            "labels": null,
            "estimatedTime": 2,
            "state": "published",
            "publishedAt": "2019-05-21T20:01:06.415Z",
            "createdAt": "2019-05-21T20:01:06.419Z",
            "updatedAt": "2019-05-21T20:01:06.419Z",
            "libraryAccess": "limited",
            "timeLimitMin": null,
            "copiedFromLibrary": null,
            "copiedFromContentType": null,
            "contentType": "normal",
            "productTypes": {
              "_id": "5ce45902eea25f61d356d715",
              "education": true,
              "recruitment": true
            },
            "collection": "commons",
            "protected": true,
            "requiresUpgrade": false,
            "majorVersion": 1,
            "minorVersion": 0,
            "patchVersion": 0,
            "linkedStatus": false,
            "galleryImage": null,
            "defaultLanguage": null,
            "enforceAllTestsOnPublish": true,
            "sampleTestCasesEnabled": true,
            "enabledServices": [],
            "successMode": "specs",
            "similarityMode": "full",
            "similarityWeight": 1.0,
            "risks": null,
            "languages": [
              {
                "id": "5ce45902eea25f61d356d716",
                "name": "javascript",
                "exampleWallTime": null,
                "testFramework": "cw-2",
                "languageVersion": "10.x",
                "languageVersionName": "Node 10.14.0",
                "challengeReferenceIds": [],
                "generated": null,
                "availableTestFrameworks": [
                  "cw-2",
                  "mocha_bdd",
                  "mocha_tdd",
                  "karma_bdd",
                  "karma_tdd",
                  "jest"
                ],
                "totalTestCases": 1,
                "weightedTestCases": 1,
                "tagTestCases": null,
                "hiddenTestCases": 0,
                "exampleTestCases": "Test.expect(a == 1)",
                "setup": "var a = ",
                "testCases": "LhcwfidnweJD4Gp0gC8oTZ0vUgFNiACgYipLqo0W2GE=\n--64TxBR7TyUCAi3vrzApBbA==--u"
              }
            ]
          }
        },
        {
          "id": "5ce45902eea25f61d356d71b",
          "challengeId": "5ce45902eea25f61d356d718",
          "position": 5,
          "disabledLanguages": [],
          "challenge": {
            "id": "5ce45902eea25f61d356d718",
            "$type": "CodeChallenge",
            "teamId": "5ce45902eea25f61d356d6cc",
            "createdById": "5ce45902eea25f61d356d6d4",
            "lastUpdatedById": null,
            "copiedFromId": null,
            "title": "Async Problem #211",
            "instructions": "Complete the solution",
            "difficulty": 1,
            "summary": null,
            "purpose": null,
            "topics": [
              "Fundamentals"
            ],
            "labels": null,
            "estimatedTime": 2,
            "state": "published",
            "publishedAt": "2019-05-21T20:01:06.430Z",
            "createdAt": "2019-05-21T20:01:06.434Z",
            "updatedAt": "2019-05-21T20:01:06.434Z",
            "libraryAccess": "limited",
            "timeLimitMin": null,
            "copiedFromLibrary": null,
            "copiedFromContentType": null,
            "contentType": "normal",
            "productTypes": {
              "_id": "5ce45902eea25f61d356d719",
              "education": true,
              "recruitment": true
            },
            "collection": "commons",
            "protected": true,
            "requiresUpgrade": false,
            "majorVersion": 1,
            "minorVersion": 0,
            "patchVersion": 0,
            "linkedStatus": false,
            "galleryImage": null,
            "defaultLanguage": null,
            "enforceAllTestsOnPublish": true,
            "sampleTestCasesEnabled": true,
            "enabledServices": [],
            "successMode": "specs",
            "similarityMode": "full",
            "similarityWeight": 1.0,
            "risks": null,
            "languages": [
              {
                "id": "5ce45902eea25f61d356d71a",
                "name": "javascript",
                "exampleWallTime": null,
                "testFramework": "cw-2",
                "languageVersion": "10.x",
                "languageVersionName": "Node 10.14.0",
                "challengeReferenceIds": [],
                "generated": null,
                "availableTestFrameworks": [
                  "cw-2",
                  "mocha_bdd",
                  "mocha_tdd",
                  "karma_bdd",
                  "karma_tdd",
                  "jest"
                ],
                "totalTestCases": 1,
                "weightedTestCases": 1,
                "tagTestCases": null,
                "hiddenTestCases": 0,
                "exampleTestCases": "Test.expect(a == 1)",
                "setup": "var a = ",
                "testCases": "653r9M43Zx4oKRMGCYZkmLTuDU2eMQTPmlVne3gNklg=\n--2sUhDQb1cPQeKA9SzfQIng==--u"
              }
            ]
          }
        },
        {
          "id": "5ce45902eea25f61d356d71f",
          "challengeId": "5ce45902eea25f61d356d71c",
          "position": 6,
          "disabledLanguages": [],
          "challenge": {
            "id": "5ce45902eea25f61d356d71c",
            "$type": "CodeChallenge",
            "teamId": "5ce45902eea25f61d356d6cc",
            "createdById": "5ce45902eea25f61d356d6d4",
            "lastUpdatedById": null,
            "copiedFromId": null,
            "title": "Chain Process #212",
            "instructions": "Complete the solution",
            "difficulty": 1,
            "summary": null,
            "purpose": null,
            "topics": [
              "Algorithms"
            ],
            "labels": null,
            "estimatedTime": 2,
            "state": "published",
            "publishedAt": "2019-05-21T20:01:06.445Z",
            "createdAt": "2019-05-21T20:01:06.448Z",
            "updatedAt": "2019-05-21T20:01:06.448Z",
            "libraryAccess": "limited",
            "timeLimitMin": null,
            "copiedFromLibrary": null,
            "copiedFromContentType": null,
            "contentType": "normal",
            "productTypes": {
              "_id": "5ce45902eea25f61d356d71d",
              "education": true,
              "recruitment": true
            },
            "collection": "commons",
            "protected": true,
            "requiresUpgrade": false,
            "majorVersion": 1,
            "minorVersion": 0,
            "patchVersion": 0,
            "linkedStatus": false,
            "galleryImage": null,
            "defaultLanguage": null,
            "enforceAllTestsOnPublish": true,
            "sampleTestCasesEnabled": true,
            "enabledServices": [],
            "successMode": "specs",
            "similarityMode": "full",
            "similarityWeight": 1.0,
            "risks": null,
            "languages": [
              {
                "id": "5ce45902eea25f61d356d71e",
                "name": "javascript",
                "exampleWallTime": null,
                "testFramework": "cw-2",
                "languageVersion": "10.x",
                "languageVersionName": "Node 10.14.0",
                "challengeReferenceIds": [],
                "generated": null,
                "availableTestFrameworks": [
                  "cw-2",
                  "mocha_bdd",
                  "mocha_tdd",
                  "karma_bdd",
                  "karma_tdd",
                  "jest"
                ],
                "totalTestCases": 1,
                "weightedTestCases": 1,
                "tagTestCases": null,
                "hiddenTestCases": 0,
                "exampleTestCases": "Test.expect(a == 1)",
                "setup": "var a = ",
                "testCases": "5QRx1rxEvvWQ6VfZGx7M0TpvDyVk3g8Fd3wxOloT5y0=\n--s8lrLGr8AOhjn4OBJBv7og==--u"
              }
            ]
          }
        }
      ],
      "activeAssessmentResultsCount": 0,
      "liveAssessmentResultsCount": 0,
      "activeInvitationsCount": 0,
      "purpose": "Amet veniam debitis non autem omnis reiciendis. Vero voluptatibus debitis pariatur. Dolor ut est modi quia suscipit facere aut. Saepe qui temporibus dolorem dolores aut dolorem.",
      "demoLandingOrder": 1000
    },
    {
      "id": "5ce45902eea25f61d356d720",
      "title": "Senior Node Developer #127",
      "state": "published",
      "defaultLanguage": null,
      "defaultInviteMessage": null,
      "teamId": "5ce45902eea25f61d356d6cc",
      "nounUpper": "Assessment",
      "nounLower": "assessment",
      "skipPracticeAssessment": null,
      "inviteOnly": false,
      "softDeletedAt": null,
      "enforcedTimeLimit": null,
      "manualEstimatedTime": null,
      "suggestedEstimatedTime": 12,
      "copiedFromId": null,
      "showSolutionsToCandidates": true,
      "isTemplate": true,
      "isPractice": false,
      "isDemo": false,
      "galleryImage": null,
      "summary": "Nostrum veritatis non voluptas. Aperiam est facilis minus iure sint consectetur. Non dolor repellat. Vel ex nihil beatae illum ut et.",
      "challengeItems": [
        {
          "id": "5ce45902eea25f61d356d724",
          "challengeId": "5ce45902eea25f61d356d721",
          "position": 1,
          "disabledLanguages": [],
          "challenge": {
            "id": "5ce45902eea25f61d356d721",
            "$type": "CodeChallenge",
            "teamId": "5ce45902eea25f61d356d6cc",
            "createdById": "5ce45902eea25f61d356d6d4",
            "lastUpdatedById": null,
            "copiedFromId": null,
            "title": "Inverted Regex #213",
            "instructions": "Complete the solution",
            "difficulty": 1,
            "summary": null,
            "purpose": null,
            "topics": [
              "Algorithms"
            ],
            "labels": null,
            "estimatedTime": 2,
            "state": "published",
            "publishedAt": "2019-05-21T20:01:06.468Z",
            "createdAt": "2019-05-21T20:01:06.472Z",
            "updatedAt": "2019-05-21T20:01:06.472Z",
            "libraryAccess": "limited",
            "timeLimitMin": null,
            "copiedFromLibrary": null,
            "copiedFromContentType": null,
            "contentType": "normal",
            "productTypes": {
              "_id": "5ce45902eea25f61d356d722",
              "education": true,
              "recruitment": true
            },
            "collection": "commons",
            "protected": true,
            "requiresUpgrade": false,
            "majorVersion": 1,
            "minorVersion": 0,
            "patchVersion": 0,
            "linkedStatus": false,
            "galleryImage": null,
            "defaultLanguage": null,
            "enforceAllTestsOnPublish": true,
            "sampleTestCasesEnabled": true,
            "enabledServices": [],
            "successMode": "specs",
            "similarityMode": "full",
            "similarityWeight": 1.0,
            "risks": null,
            "languages": [
              {
                "id": "5ce45902eea25f61d356d723",
                "name": "javascript",
                "exampleWallTime": null,
                "testFramework": "cw-2",
                "languageVersion": "10.x",
                "languageVersionName": "Node 10.14.0",
                "challengeReferenceIds": [],
                "generated": null,
                "availableTestFrameworks": [
                  "cw-2",
                  "mocha_bdd",
                  "mocha_tdd",
                  "karma_bdd",
                  "karma_tdd",
                  "jest"
                ],
                "totalTestCases": 1,
                "weightedTestCases": 1,
                "tagTestCases": null,
                "hiddenTestCases": 0,
                "exampleTestCases": "Test.expect(a == 1)",
                "setup": "var a = ",
                "testCases": "lfQaOFoKPB3AH4ofXZt6kUSTIfvEOKIhdicrd1mUkjA=\n--zq60IMCCqKEKHUqJzeKW4A==--u"
              }
            ]
          }
        },
        {
          "id": "5ce45902eea25f61d356d728",
          "challengeId": "5ce45902eea25f61d356d725",
          "position": 2,
          "disabledLanguages": [],
          "challenge": {
            "id": "5ce45902eea25f61d356d725",
            "$type": "CodeChallenge",
            "teamId": "5ce45902eea25f61d356d6cc",
            "createdById": "5ce45902eea25f61d356d6d4",
            "lastUpdatedById": null,
            "copiedFromId": null,
            "title": "Repeated Enumerator #214",
            "instructions": "Complete the solution",
            "difficulty": 1,
            "summary": null,
            "purpose": null,
            "topics": [
              "Algorithms"
            ],
            "labels": null,
            "estimatedTime": 2,
            "state": "published",
            "publishedAt": "2019-05-21T20:01:06.490Z",
            "createdAt": "2019-05-21T20:01:06.494Z",
            "updatedAt": "2019-05-21T20:01:06.494Z",
            "libraryAccess": "limited",
            "timeLimitMin": null,
            "copiedFromLibrary": null,
            "copiedFromContentType": null,
            "contentType": "normal",
            "productTypes": {
              "_id": "5ce45902eea25f61d356d726",
              "education": true,
              "recruitment": true
            },
            "collection": "commons",
            "protected": true,
            "requiresUpgrade": false,
            "majorVersion": 1,
            "minorVersion": 0,
            "patchVersion": 0,
            "linkedStatus": false,
            "galleryImage": null,
            "defaultLanguage": null,
            "enforceAllTestsOnPublish": true,
            "sampleTestCasesEnabled": true,
            "enabledServices": [],
            "successMode": "specs",
            "similarityMode": "full",
            "similarityWeight": 1.0,
            "risks": null,
            "languages": [
              {
                "id": "5ce45902eea25f61d356d727",
                "name": "javascript",
                "exampleWallTime": null,
                "testFramework": "cw-2",
                "languageVersion": "10.x",
                "languageVersionName": "Node 10.14.0",
                "challengeReferenceIds": [],
                "generated": null,
                "availableTestFrameworks": [
                  "cw-2",
                  "mocha_bdd",
                  "mocha_tdd",
                  "karma_bdd",
                  "karma_tdd",
                  "jest"
                ],
                "totalTestCases": 1,
                "weightedTestCases": 1,
                "tagTestCases": null,
                "hiddenTestCases": 0,
                "exampleTestCases": "Test.expect(a == 1)",
                "setup": "var a = ",
                "testCases": "sZbnyd8gZ2vo57LNCdk6eRV0JCLIq0xcoWezMGwKj2w=\n--6K86kLhx2QulaoIpnQgPzw==--u"
              }
            ]
          }
        },
        {
          "id": "5ce45902eea25f61d356d72c",
          "challengeId": "5ce45902eea25f61d356d729",
          "position": 3,
          "disabledLanguages": [],
          "challenge": {
            "id": "5ce45902eea25f61d356d729",
            "$type": "CodeChallenge",
            "teamId": "5ce45902eea25f61d356d6cc",
            "createdById": "5ce45902eea25f61d356d6d4",
            "lastUpdatedById": null,
            "copiedFromId": null,
            "title": "Super Enumerator #215",
            "instructions": "Complete the solution",
            "difficulty": 1,
            "summary": null,
            "purpose": null,
            "topics": [
              "Meta-programming"
            ],
            "labels": null,
            "estimatedTime": 2,
            "state": "published",
            "publishedAt": "2019-05-21T20:01:06.506Z",
            "createdAt": "2019-05-21T20:01:06.510Z",
            "updatedAt": "2019-05-21T20:01:06.510Z",
            "libraryAccess": "limited",
            "timeLimitMin": null,
            "copiedFromLibrary": null,
            "copiedFromContentType": null,
            "contentType": "normal",
            "productTypes": {
              "_id": "5ce45902eea25f61d356d72a",
              "education": true,
              "recruitment": true
            },
            "collection": "commons",
            "protected": true,
            "requiresUpgrade": false,
            "majorVersion": 1,
            "minorVersion": 0,
            "patchVersion": 0,
            "linkedStatus": false,
            "galleryImage": null,
            "defaultLanguage": null,
            "enforceAllTestsOnPublish": true,
            "sampleTestCasesEnabled": true,
            "enabledServices": [],
            "successMode": "specs",
            "similarityMode": "full",
            "similarityWeight": 1.0,
            "risks": null,
            "languages": [
              {
                "id": "5ce45902eea25f61d356d72b",
                "name": "javascript",
                "exampleWallTime": null,
                "testFramework": "cw-2",
                "languageVersion": "10.x",
                "languageVersionName": "Node 10.14.0",
                "challengeReferenceIds": [],
                "generated": null,
                "availableTestFrameworks": [
                  "cw-2",
                  "mocha_bdd",
                  "mocha_tdd",
                  "karma_bdd",
                  "karma_tdd",
                  "jest"
                ],
                "totalTestCases": 1,
                "weightedTestCases": 1,
                "tagTestCases": null,
                "hiddenTestCases": 0,
                "exampleTestCases": "Test.expect(a == 1)",
                "setup": "var a = ",
                "testCases": "Vew3ipG/CXPkjE/V8TwO86OpujtY06SbGL+nB7Z6Uu0=\n--36qIXae4KnRHmeTQuNboGg==--u"
              }
            ]
          }
        },
        {
          "id": "5ce45902eea25f61d356d730",
          "challengeId": "5ce45902eea25f61d356d72d",
          "position": 4,
          "disabledLanguages": [],
          "challenge": {
            "id": "5ce45902eea25f61d356d72d",
            "$type": "CodeChallenge",
            "teamId": "5ce45902eea25f61d356d6cc",
            "createdById": "5ce45902eea25f61d356d6d4",
            "lastUpdatedById": null,
            "copiedFromId": null,
            "title": "Super Enumerator #216",
            "instructions": "Complete the solution",
            "difficulty": 1,
            "summary": null,
            "purpose": null,
            "topics": [
              "Meta-programming"
            ],
            "labels": null,
            "estimatedTime": 2,
            "state": "published",
            "publishedAt": "2019-05-21T20:01:06.522Z",
            "createdAt": "2019-05-21T20:01:06.525Z",
            "updatedAt": "2019-05-21T20:01:06.525Z",
            "libraryAccess": "limited",
            "timeLimitMin": null,
            "copiedFromLibrary": null,
            "copiedFromContentType": null,
            "contentType": "normal",
            "productTypes": {
              "_id": "5ce45902eea25f61d356d72e",
              "education": true,
              "recruitment": true
            },
            "collection": "commons",
            "protected": true,
            "requiresUpgrade": false,
            "majorVersion": 1,
            "minorVersion": 0,
            "patchVersion": 0,
            "linkedStatus": false,
            "galleryImage": null,
            "defaultLanguage": null,
            "enforceAllTestsOnPublish": true,
            "sampleTestCasesEnabled": true,
            "enabledServices": [],
            "successMode": "specs",
            "similarityMode": "full",
            "similarityWeight": 1.0,
            "risks": null,
            "languages": [
              {
                "id": "5ce45902eea25f61d356d72f",
                "name": "javascript",
                "exampleWallTime": null,
                "testFramework": "cw-2",
                "languageVersion": "10.x",
                "languageVersionName": "Node 10.14.0",
                "challengeReferenceIds": [],
                "generated": null,
                "availableTestFrameworks": [
                  "cw-2",
                  "mocha_bdd",
                  "mocha_tdd",
                  "karma_bdd",
                  "karma_tdd",
                  "jest"
                ],
                "totalTestCases": 1,
                "weightedTestCases": 1,
                "tagTestCases": null,
                "hiddenTestCases": 0,
                "exampleTestCases": "Test.expect(a == 1)",
                "setup": "var a = ",
                "testCases": "CG0xyU6SGDimfFrRmGJmEtjUJRxXQvTsGYj8Iliees8=\n--SGPj7lA+n1+ugf15yTxOzg==--u"
              }
            ]
          }
        },
        {
          "id": "5ce45902eea25f61d356d734",
          "challengeId": "5ce45902eea25f61d356d731",
          "position": 5,
          "disabledLanguages": [],
          "challenge": {
            "id": "5ce45902eea25f61d356d731",
            "$type": "CodeChallenge",
            "teamId": "5ce45902eea25f61d356d6cc",
            "createdById": "5ce45902eea25f61d356d6d4",
            "lastUpdatedById": null,
            "copiedFromId": null,
            "title": "Node Class #217",
            "instructions": "Complete the solution",
            "difficulty": 1,
            "summary": null,
            "purpose": null,
            "topics": [
              "Logic"
            ],
            "labels": null,
            "estimatedTime": 2,
            "state": "published",
            "publishedAt": "2019-05-21T20:01:06.537Z",
            "createdAt": "2019-05-21T20:01:06.541Z",
            "updatedAt": "2019-05-21T20:01:06.541Z",
            "libraryAccess": "limited",
            "timeLimitMin": null,
            "copiedFromLibrary": null,
            "copiedFromContentType": null,
            "contentType": "normal",
            "productTypes": {
              "_id": "5ce45902eea25f61d356d732",
              "education": true,
              "recruitment": true
            },
            "collection": "commons",
            "protected": true,
            "requiresUpgrade": false,
            "majorVersion": 1,
            "minorVersion": 0,
            "patchVersion": 0,
            "linkedStatus": false,
            "galleryImage": null,
            "defaultLanguage": null,
            "enforceAllTestsOnPublish": true,
            "sampleTestCasesEnabled": true,
            "enabledServices": [],
            "successMode": "specs",
            "similarityMode": "full",
            "similarityWeight": 1.0,
            "risks": null,
            "languages": [
              {
                "id": "5ce45902eea25f61d356d733",
                "name": "javascript",
                "exampleWallTime": null,
                "testFramework": "cw-2",
                "languageVersion": "10.x",
                "languageVersionName": "Node 10.14.0",
                "challengeReferenceIds": [],
                "generated": null,
                "availableTestFrameworks": [
                  "cw-2",
                  "mocha_bdd",
                  "mocha_tdd",
                  "karma_bdd",
                  "karma_tdd",
                  "jest"
                ],
                "totalTestCases": 1,
                "weightedTestCases": 1,
                "tagTestCases": null,
                "hiddenTestCases": 0,
                "exampleTestCases": "Test.expect(a == 1)",
                "setup": "var a = ",
                "testCases": "rMzGbQX/AIhMd0kxhVtE8CIas1LTedTanWEn4e/dtfw=\n--0OGuqQHipkjOSLRcKJnFyw==--u"
              }
            ]
          }
        },
        {
          "id": "5ce45902eea25f61d356d738",
          "challengeId": "5ce45902eea25f61d356d735",
          "position": 6,
          "disabledLanguages": [],
          "challenge": {
            "id": "5ce45902eea25f61d356d735",
            "$type": "CodeChallenge",
            "teamId": "5ce45902eea25f61d356d6cc",
            "createdById": "5ce45902eea25f61d356d6d4",
            "lastUpdatedById": null,
            "copiedFromId": null,
            "title": "Inverted Game #218",
            "instructions": "Complete the solution",
            "difficulty": 1,
            "summary": null,
            "purpose": null,
            "topics": [
              "Logic"
            ],
            "labels": null,
            "estimatedTime": 2,
            "state": "published",
            "publishedAt": "2019-05-21T20:01:06.555Z",
            "createdAt": "2019-05-21T20:01:06.559Z",
            "updatedAt": "2019-05-21T20:01:06.559Z",
            "libraryAccess": "limited",
            "timeLimitMin": null,
            "copiedFromLibrary": null,
            "copiedFromContentType": null,
            "contentType": "normal",
            "productTypes": {
              "_id": "5ce45902eea25f61d356d736",
              "education": true,
              "recruitment": true
            },
            "collection": "commons",
            "protected": true,
            "requiresUpgrade": false,
            "majorVersion": 1,
            "minorVersion": 0,
            "patchVersion": 0,
            "linkedStatus": false,
            "galleryImage": null,
            "defaultLanguage": null,
            "enforceAllTestsOnPublish": true,
            "sampleTestCasesEnabled": true,
            "enabledServices": [],
            "successMode": "specs",
            "similarityMode": "full",
            "similarityWeight": 1.0,
            "risks": null,
            "languages": [
              {
                "id": "5ce45902eea25f61d356d737",
                "name": "javascript",
                "exampleWallTime": null,
                "testFramework": "cw-2",
                "languageVersion": "10.x",
                "languageVersionName": "Node 10.14.0",
                "challengeReferenceIds": [],
                "generated": null,
                "availableTestFrameworks": [
                  "cw-2",
                  "mocha_bdd",
                  "mocha_tdd",
                  "karma_bdd",
                  "karma_tdd",
                  "jest"
                ],
                "totalTestCases": 1,
                "weightedTestCases": 1,
                "tagTestCases": null,
                "hiddenTestCases": 0,
                "exampleTestCases": "Test.expect(a == 1)",
                "setup": "var a = ",
                "testCases": "Q5coSyKrej91+YwHI0J32+1RMC0gsWqrs78evwNDNqg=\n--hE0qkuY3e9acFThvpU1VIA==--u"
              }
            ]
          }
        }
      ],
      "activeAssessmentResultsCount": 0,
      "liveAssessmentResultsCount": 0,
      "activeInvitationsCount": 0,
      "purpose": "Et animi libero nobis repellat quibusdam nemo praesentium. Nobis suscipit quis dolore. Dolor expedita aut voluptas quia eum blanditiis. Sit officia est ab maiores et.",
      "demoLandingOrder": 1000
    },
    {
      "id": "5ce45902eea25f61d356d739",
      "title": "Junior Mobile Developer #128",
      "state": "published",
      "defaultLanguage": null,
      "defaultInviteMessage": null,
      "teamId": "5ce45902eea25f61d356d6cc",
      "nounUpper": "Assessment",
      "nounLower": "assessment",
      "skipPracticeAssessment": null,
      "inviteOnly": false,
      "softDeletedAt": null,
      "enforcedTimeLimit": null,
      "manualEstimatedTime": null,
      "suggestedEstimatedTime": 12,
      "copiedFromId": null,
      "showSolutionsToCandidates": true,
      "isTemplate": true,
      "isPractice": false,
      "isDemo": false,
      "galleryImage": null,
      "summary": "Itaque error a quasi iste veniam accusantium minima. Harum minus voluptatem occaecati excepturi aperiam hic possimus. Atque veritatis fuga expedita voluptatem. Placeat accusamus est repellendus voluptatibus.",
      "challengeItems": [
        {
          "id": "5ce45902eea25f61d356d73d",
          "challengeId": "5ce45902eea25f61d356d73a",
          "position": 1,
          "disabledLanguages": [],
          "challenge": {
            "id": "5ce45902eea25f61d356d73a",
            "$type": "CodeChallenge",
            "teamId": "5ce45902eea25f61d356d6cc",
            "createdById": "5ce45902eea25f61d356d6d4",
            "lastUpdatedById": null,
            "copiedFromId": null,
            "title": "Crazy Numbers #219",
            "instructions": "Complete the solution",
            "difficulty": 1,
            "summary": null,
            "purpose": null,
            "topics": [
              "Meta-programming"
            ],
            "labels": null,
            "estimatedTime": 2,
            "state": "published",
            "publishedAt": "2019-05-21T20:01:06.580Z",
            "createdAt": "2019-05-21T20:01:06.585Z",
            "updatedAt": "2019-05-21T20:01:06.585Z",
            "libraryAccess": "limited",
            "timeLimitMin": null,
            "copiedFromLibrary": null,
            "copiedFromContentType": null,
            "contentType": "normal",
            "productTypes": {
              "_id": "5ce45902eea25f61d356d73b",
              "education": true,
              "recruitment": true
            },
            "collection": "commons",
            "protected": true,
            "requiresUpgrade": false,
            "majorVersion": 1,
            "minorVersion": 0,
            "patchVersion": 0,
            "linkedStatus": false,
            "galleryImage": null,
            "defaultLanguage": null,
            "enforceAllTestsOnPublish": true,
            "sampleTestCasesEnabled": true,
            "enabledServices": [],
            "successMode": "specs",
            "similarityMode": "full",
            "similarityWeight": 1.0,
            "risks": null,
            "languages": [
              {
                "id": "5ce45902eea25f61d356d73c",
                "name": "javascript",
                "exampleWallTime": null,
                "testFramework": "cw-2",
                "languageVersion": "10.x",
                "languageVersionName": "Node 10.14.0",
                "challengeReferenceIds": [],
                "generated": null,
                "availableTestFrameworks": [
                  "cw-2",
                  "mocha_bdd",
                  "mocha_tdd",
                  "karma_bdd",
                  "karma_tdd",
                  "jest"
                ],
                "totalTestCases": 1,
                "weightedTestCases": 1,
                "tagTestCases": null,
                "hiddenTestCases": 0,
                "exampleTestCases": "Test.expect(a == 1)",
                "setup": "var a = ",
                "testCases": "bazEgj6GkkO/bQln8bIKOpy2URRBCrMrQXUMgNIWApg=\n--0Yt9asilH9fjLR4he4kq2A==--u"
              }
            ]
          }
        },
        {
          "id": "5ce45902eea25f61d356d741",
          "challengeId": "5ce45902eea25f61d356d73e",
          "position": 2,
          "disabledLanguages": [],
          "challenge": {
            "id": "5ce45902eea25f61d356d73e",
            "$type": "CodeChallenge",
            "teamId": "5ce45902eea25f61d356d6cc",
            "createdById": "5ce45902eea25f61d356d6d4",
            "lastUpdatedById": null,
            "copiedFromId": null,
            "title": "Sane Objects #220",
            "instructions": "Complete the solution",
            "difficulty": 1,
            "summary": null,
            "purpose": null,
            "topics": [
              "Meta-programming"
            ],
            "labels": null,
            "estimatedTime": 2,
            "state": "published",
            "publishedAt": "2019-05-21T20:01:06.604Z",
            "createdAt": "2019-05-21T20:01:06.608Z",
            "updatedAt": "2019-05-21T20:01:06.608Z",
            "libraryAccess": "limited",
            "timeLimitMin": null,
            "copiedFromLibrary": null,
            "copiedFromContentType": null,
            "contentType": "normal",
            "productTypes": {
              "_id": "5ce45902eea25f61d356d73f",
              "education": true,
              "recruitment": true
            },
            "collection": "commons",
            "protected": true,
            "requiresUpgrade": false,
            "majorVersion": 1,
            "minorVersion": 0,
            "patchVersion": 0,
            "linkedStatus": false,
            "galleryImage": null,
            "defaultLanguage": null,
            "enforceAllTestsOnPublish": true,
            "sampleTestCasesEnabled": true,
            "enabledServices": [],
            "successMode": "specs",
            "similarityMode": "full",
            "similarityWeight": 1.0,
            "risks": null,
            "languages": [
              {
                "id": "5ce45902eea25f61d356d740",
                "name": "javascript",
                "exampleWallTime": null,
                "testFramework": "cw-2",
                "languageVersion": "10.x",
                "languageVersionName": "Node 10.14.0",
                "challengeReferenceIds": [],
                "generated": null,
                "availableTestFrameworks": [
                  "cw-2",
                  "mocha_bdd",
                  "mocha_tdd",
                  "karma_bdd",
                  "karma_tdd",
                  "jest"
                ],
                "totalTestCases": 1,
                "weightedTestCases": 1,
                "tagTestCases": null,
                "hiddenTestCases": 0,
                "exampleTestCases": "Test.expect(a == 1)",
                "setup": "var a = ",
                "testCases": "8DuLpe6pr+VTfY1teq8hDU5EKOc+c/xhkZ9i7zrzhLg=\n--FgIG+gMpcFh8dcnEbjda/A==--u"
              }
            ]
          }
        },
        {
          "id": "5ce45902eea25f61d356d745",
          "challengeId": "5ce45902eea25f61d356d742",
          "position": 3,
          "disabledLanguages": [],
          "challenge": {
            "id": "5ce45902eea25f61d356d742",
            "$type": "CodeChallenge",
            "teamId": "5ce45902eea25f61d356d6cc",
            "createdById": "5ce45902eea25f61d356d6d4",
            "lastUpdatedById": null,
            "copiedFromId": null,
            "title": "Repeated Numbers #221",
            "instructions": "Complete the solution",
            "difficulty": 1,
            "summary": null,
            "purpose": null,
            "topics": [
              "Algorithms"
            ],
            "labels": null,
            "estimatedTime": 2,
            "state": "published",
            "publishedAt": "2019-05-21T20:01:06.622Z",
            "createdAt": "2019-05-21T20:01:06.626Z",
            "updatedAt": "2019-05-21T20:01:06.626Z",
            "libraryAccess": "limited",
            "timeLimitMin": null,
            "copiedFromLibrary": null,
            "copiedFromContentType": null,
            "contentType": "normal",
            "productTypes": {
              "_id": "5ce45902eea25f61d356d743",
              "education": true,
              "recruitment": true
            },
            "collection": "commons",
            "protected": true,
            "requiresUpgrade": false,
            "majorVersion": 1,
            "minorVersion": 0,
            "patchVersion": 0,
            "linkedStatus": false,
            "galleryImage": null,
            "defaultLanguage": null,
            "enforceAllTestsOnPublish": true,
            "sampleTestCasesEnabled": true,
            "enabledServices": [],
            "successMode": "specs",
            "similarityMode": "full",
            "similarityWeight": 1.0,
            "risks": null,
            "languages": [
              {
                "id": "5ce45902eea25f61d356d744",
                "name": "javascript",
                "exampleWallTime": null,
                "testFramework": "cw-2",
                "languageVersion": "10.x",
                "languageVersionName": "Node 10.14.0",
                "challengeReferenceIds": [],
                "generated": null,
                "availableTestFrameworks": [
                  "cw-2",
                  "mocha_bdd",
                  "mocha_tdd",
                  "karma_bdd",
                  "karma_tdd",
                  "jest"
                ],
                "totalTestCases": 1,
                "weightedTestCases": 1,
                "tagTestCases": null,
                "hiddenTestCases": 0,
                "exampleTestCases": "Test.expect(a == 1)",
                "setup": "var a = ",
                "testCases": "bvdROZ5+doSE8/R9auT7qs1eOJ2dJxnmFlXGJ++1YCQ=\n--DkiT7Ow54KoKxXGhsHuprQ==--u"
              }
            ]
          }
        },
        {
          "id": "5ce45902eea25f61d356d749",
          "challengeId": "5ce45902eea25f61d356d746",
          "position": 4,
          "disabledLanguages": [],
          "challenge": {
            "id": "5ce45902eea25f61d356d746",
            "$type": "CodeChallenge",
            "teamId": "5ce45902eea25f61d356d6cc",
            "createdById": "5ce45902eea25f61d356d6d4",
            "lastUpdatedById": null,
            "copiedFromId": null,
            "title": "Functional Encoding #222",
            "instructions": "Complete the solution",
            "difficulty": 1,
            "summary": null,
            "purpose": null,
            "topics": [
              "Meta-programming"
            ],
            "labels": null,
            "estimatedTime": 2,
            "state": "published",
            "publishedAt": "2019-05-21T20:01:06.640Z",
            "createdAt": "2019-05-21T20:01:06.645Z",
            "updatedAt": "2019-05-21T20:01:06.645Z",
            "libraryAccess": "limited",
            "timeLimitMin": null,
            "copiedFromLibrary": null,
            "copiedFromContentType": null,
            "contentType": "normal",
            "productTypes": {
              "_id": "5ce45902eea25f61d356d747",
              "education": true,
              "recruitment": true
            },
            "collection": "commons",
            "protected": true,
            "requiresUpgrade": false,
            "majorVersion": 1,
            "minorVersion": 0,
            "patchVersion": 0,
            "linkedStatus": false,
            "galleryImage": null,
            "defaultLanguage": null,
            "enforceAllTestsOnPublish": true,
            "sampleTestCasesEnabled": true,
            "enabledServices": [],
            "successMode": "specs",
            "similarityMode": "full",
            "similarityWeight": 1.0,
            "risks": null,
            "languages": [
              {
                "id": "5ce45902eea25f61d356d748",
                "name": "javascript",
                "exampleWallTime": null,
                "testFramework": "cw-2",
                "languageVersion": "10.x",
                "languageVersionName": "Node 10.14.0",
                "challengeReferenceIds": [],
                "generated": null,
                "availableTestFrameworks": [
                  "cw-2",
                  "mocha_bdd",
                  "mocha_tdd",
                  "karma_bdd",
                  "karma_tdd",
                  "jest"
                ],
                "totalTestCases": 1,
                "weightedTestCases": 1,
                "tagTestCases": null,
                "hiddenTestCases": 0,
                "exampleTestCases": "Test.expect(a == 1)",
                "setup": "var a = ",
                "testCases": "sbW1+wWll8vnBxftH8Lt7oi8eIrbF/QvyoQT4eiO5o0=\n--qt/z7yQYXxHP/jchl1qUhQ==--u"
              }
            ]
          }
        },
        {
          "id": "5ce45902eea25f61d356d74d",
          "challengeId": "5ce45902eea25f61d356d74a",
          "position": 5,
          "disabledLanguages": [],
          "challenge": {
            "id": "5ce45902eea25f61d356d74a",
            "$type": "CodeChallenge",
            "teamId": "5ce45902eea25f61d356d6cc",
            "createdById": "5ce45902eea25f61d356d6d4",
            "lastUpdatedById": null,
            "copiedFromId": null,
            "title": "Binding Class #223",
            "instructions": "Complete the solution",
            "difficulty": 1,
            "summary": null,
            "purpose": null,
            "topics": [
              "Fundamentals"
            ],
            "labels": null,
            "estimatedTime": 2,
            "state": "published",
            "publishedAt": "2019-05-21T20:01:06.658Z",
            "createdAt": "2019-05-21T20:01:06.662Z",
            "updatedAt": "2019-05-21T20:01:06.662Z",
            "libraryAccess": "limited",
            "timeLimitMin": null,
            "copiedFromLibrary": null,
            "copiedFromContentType": null,
            "contentType": "normal",
            "productTypes": {
              "_id": "5ce45902eea25f61d356d74b",
              "education": true,
              "recruitment": true
            },
            "collection": "commons",
            "protected": true,
            "requiresUpgrade": false,
            "majorVersion": 1,
            "minorVersion": 0,
            "patchVersion": 0,
            "linkedStatus": false,
            "galleryImage": null,
            "defaultLanguage": null,
            "enforceAllTestsOnPublish": true,
            "sampleTestCasesEnabled": true,
            "enabledServices": [],
            "successMode": "specs",
            "similarityMode": "full",
            "similarityWeight": 1.0,
            "risks": null,
            "languages": [
              {
                "id": "5ce45902eea25f61d356d74c",
                "name": "javascript",
                "exampleWallTime": null,
                "testFramework": "cw-2",
                "languageVersion": "10.x",
                "languageVersionName": "Node 10.14.0",
                "challengeReferenceIds": [],
                "generated": null,
                "availableTestFrameworks": [
                  "cw-2",
                  "mocha_bdd",
                  "mocha_tdd",
                  "karma_bdd",
                  "karma_tdd",
                  "jest"
                ],
                "totalTestCases": 1,
                "weightedTestCases": 1,
                "tagTestCases": null,
                "hiddenTestCases": 0,
                "exampleTestCases": "Test.expect(a == 1)",
                "setup": "var a = ",
                "testCases": "2wpLdGN3tmDf0OSP1DfRLwCy8b/if4pJ+Y0P2WjLA9c=\n--CS7fJnvhra/HTUabWpnEow==--u"
              }
            ]
          }
        },
        {
          "id": "5ce45902eea25f61d356d751",
          "challengeId": "5ce45902eea25f61d356d74e",
          "position": 6,
          "disabledLanguages": [],
          "challenge": {
            "id": "5ce45902eea25f61d356d74e",
            "$type": "CodeChallenge",
            "teamId": "5ce45902eea25f61d356d6cc",
            "createdById": "5ce45902eea25f61d356d6d4",
            "lastUpdatedById": null,
            "copiedFromId": null,
            "title": "Custom Strings #224",
            "instructions": "Complete the solution",
            "difficulty": 1,
            "summary": null,
            "purpose": null,
            "topics": [
              "Algorithms"
            ],
            "labels": null,
            "estimatedTime": 2,
            "state": "published",
            "publishedAt": "2019-05-21T20:01:06.675Z",
            "createdAt": "2019-05-21T20:01:06.679Z",
            "updatedAt": "2019-05-21T20:01:06.679Z",
            "libraryAccess": "limited",
            "timeLimitMin": null,
            "copiedFromLibrary": null,
            "copiedFromContentType": null,
            "contentType": "normal",
            "productTypes": {
              "_id": "5ce45902eea25f61d356d74f",
              "education": true,
              "recruitment": true
            },
            "collection": "commons",
            "protected": true,
            "requiresUpgrade": false,
            "majorVersion": 1,
            "minorVersion": 0,
            "patchVersion": 0,
            "linkedStatus": false,
            "galleryImage": null,
            "defaultLanguage": null,
            "enforceAllTestsOnPublish": true,
            "sampleTestCasesEnabled": true,
            "enabledServices": [],
            "successMode": "specs",
            "similarityMode": "full",
            "similarityWeight": 1.0,
            "risks": null,
            "languages": [
              {
                "id": "5ce45902eea25f61d356d750",
                "name": "javascript",
                "exampleWallTime": null,
                "testFramework": "cw-2",
                "languageVersion": "10.x",
                "languageVersionName": "Node 10.14.0",
                "challengeReferenceIds": [],
                "generated": null,
                "availableTestFrameworks": [
                  "cw-2",
                  "mocha_bdd",
                  "mocha_tdd",
                  "karma_bdd",
                  "karma_tdd",
                  "jest"
                ],
                "totalTestCases": 1,
                "weightedTestCases": 1,
                "tagTestCases": null,
                "hiddenTestCases": 0,
                "exampleTestCases": "Test.expect(a == 1)",
                "setup": "var a = ",
                "testCases": "tEHlAvOTi2B9IxS5mPfp9SWlGESIFItpfPzLdh1udqw=\n--2GPI5OtpnTWPCIUScKw26g==--u"
              }
            ]
          }
        }
      ],
      "activeAssessmentResultsCount": 0,
      "liveAssessmentResultsCount": 0,
      "activeInvitationsCount": 0,
      "purpose": "Consequatur deleniti vero dolores labore. Aut vero numquam et in. Iusto repellat quibusdam nisi qui accusantium illo sint. Fuga dolorum ut sit quia cupiditate.",
      "demoLandingOrder": 1000
    }
  ],
  "currentPage": 1,
  "totalPages": 1,
  "totalCount": 5,
  "meta": {
    "timestamp": "2019-05-21T13:01:07.165-07: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/5ce45904eea25f61d356d81e/import

Headers

Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVjZTQ1OTA1ZWVhMjVmNjFkMzU2ZDhhNiIsImlkIjoiNWNlNDU5MDVlZWEyNWY2MWQzNTZkOGE3Iiwic2VjcmV0IjoibjNnNnRRPT0ifQ.Z7E2Dc6C9zzvgGNHx6CLzmvHxCHk2pku2CCH1freP_s
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": "5ce45905eea25f61d356d8bb",
  "type": "Assessment",
  "data": {
    "id": "5ce45905eea25f61d356d8bb",
    "title": "Assessment Title",
    "state": "published",
    "defaultLanguage": null,
    "defaultInviteMessage": null,
    "teamId": "5ce45905eea25f61d356d8a0",
    "nounUpper": "Assessment",
    "nounLower": "assessment",
    "skipPracticeAssessment": null,
    "inviteOnly": true,
    "softDeletedAt": null,
    "enforcedTimeLimit": null,
    "manualEstimatedTime": null,
    "suggestedEstimatedTime": 12,
    "copiedFromId": "5ce45904eea25f61d356d81e",
    "showSolutionsToCandidates": true,
    "isTemplate": false,
    "isPractice": false,
    "isDemo": false,
    "galleryImage": null,
    "summary": "Tenetur quos perferendis possimus. Commodi ex labore vitae assumenda minus voluptatem. Consectetur iste ut quia cum repellat culpa.",
    "challengeItems": [
      {
        "id": "5ce45905eea25f61d356d8da",
        "challengeId": "5ce45905eea25f61d356d8bd",
        "position": 1,
        "disabledLanguages": []
      },
      {
        "id": "5ce45905eea25f61d356d8db",
        "challengeId": "5ce45905eea25f61d356d8c2",
        "position": 2,
        "disabledLanguages": []
      },
      {
        "id": "5ce45905eea25f61d356d8dc",
        "challengeId": "5ce45905eea25f61d356d8c7",
        "position": 3,
        "disabledLanguages": []
      },
      {
        "id": "5ce45905eea25f61d356d8dd",
        "challengeId": "5ce45905eea25f61d356d8cc",
        "position": 4,
        "disabledLanguages": []
      },
      {
        "id": "5ce45905eea25f61d356d8de",
        "challengeId": "5ce45905eea25f61d356d8d1",
        "position": 5,
        "disabledLanguages": []
      },
      {
        "id": "5ce45905eea25f61d356d8df",
        "challengeId": "5ce45905eea25f61d356d8d6",
        "position": 6,
        "disabledLanguages": []
      }
    ],
    "activeAssessmentResultsCount": 0,
    "liveAssessmentResultsCount": 0,
    "activeInvitationsCount": 0,
    "purpose": "Nesciunt rerum qui vel. Magni deleniti beatae voluptatum placeat. Nihil tempora blanditiis sed beatae ipsam reprehenderit. Eveniet commodi fuga et omnis.",
    "demoLandingOrder": 1000,
    "publishedAt": "2019-05-21T20:01:09.434Z",
    "archivedAt": null,
    "createdAt": "2019-05-21T20:01:09.431Z",
    "assessmentResultsSummary": {
      "_id": "5ce45905eea25f61d356d8e0"
    },
    "labels": null,
    "notificationScheme": null,
    "assignmentTeamMemberIds": [],
    "redirectUrl": null,
    "webhookUrl": null,
    "submissionMessage": null,
    "assignmentLabels": 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"
        }
      ],
      "notificationScheme": [
        {
          "value": "by_assignee",
          "text": "By Assigned Team Member"
        },
        {
          "value": "entire_team",
          "text": "Entire Team"
        },
        {
          "value": "all_restricted",
          "text": "All Team Reviewers"
        },
        {
          "value": "all_premium",
          "text": "All Team Managers"
        },
        {
          "value": "disabled",
          "text": "No One (Disabled)"
        }
      ],
      "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": "scala",
          "text": "Scala"
        },
        {
          "value": "r",
          "text": "R"
        },
        {
          "value": "objc",
          "text": "Objective-C"
        },
        {
          "value": "c",
          "text": "C"
        },
        {
          "value": "go",
          "text": "Go"
        },
        {
          "value": "kotlin",
          "text": "Kotlin"
        },
        {
          "value": "groovy",
          "text": "Groovy"
        },
        {
          "value": "lua",
          "text": "Lua"
        },
        {
          "value": "rust",
          "text": "Rust"
        }
      ],
      "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"
          }
        ],
        "workflowType": [
          {
            "value": "simple_approve",
            "text": "Approve Workflow"
          },
          {
            "value": "simple_reject",
            "text": "Reject Workflow"
          }
        ],
        "assignmentTeamCandidateState": [
          {
            "value": "approved",
            "text": "Approved"
          },
          {
            "value": "rejected",
            "text": "Rejected"
          },
          {
            "value": "archived",
            "text": "Archived"
          }
        ],
        "timeType": [
          {
            "value": "total",
            "text": "Total"
          },
          {
            "value": "accumulated",
            "text": "Active"
          }
        ],
        "conditionsOp": [
          {
            "value": "and",
            "text": "And"
          },
          {
            "value": "or",
            "text": "Or"
          }
        ]
      }
    },
    "timestamp": "2019-05-21T13:01:09.458-07: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.eyJpZGVudGl0eV9pZCI6IjVjZTQ1OTA2ZWVhMjVmNjFkMzU2ZDk1MyIsImlkIjoiNWNlNDU5MDZlZWEyNWY2MWQzNTZkOTU0Iiwic2VjcmV0IjoiYVozM1FRPT0ifQ.piJE12svwzjcjTxss-aSxWX_NPDFTmKnUbVglPP_48U

Response

Simulated Response

Status

200

Headers

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

Body

{
  "type": "Assessment",
  "data": [
    {
      "id": "5ce45906eea25f61d356d93a",
      "title": "Junior Web Developer #144",
      "state": "published",
      "defaultLanguage": null,
      "defaultInviteMessage": null,
      "teamId": "5ce45906eea25f61d356d934",
      "nounUpper": "Assessment",
      "nounLower": "assessment",
      "skipPracticeAssessment": null,
      "inviteOnly": false,
      "softDeletedAt": null,
      "enforcedTimeLimit": null,
      "manualEstimatedTime": null,
      "suggestedEstimatedTime": 4,
      "copiedFromId": null,
      "showSolutionsToCandidates": true,
      "isTemplate": false,
      "isPractice": false,
      "isDemo": false,
      "galleryImage": null,
      "summary": "Facilis est ut quo sit. Sapiente libero eaque et rerum et odio eos. Beatae aperiam voluptate ea aut maiores atque quos.",
      "challengeItems": [
        {
          "id": "5ce45906eea25f61d356d941",
          "challengeId": "5ce45906eea25f61d356d93e",
          "position": 1,
          "disabledLanguages": []
        },
        {
          "id": "5ce45906eea25f61d356d945",
          "challengeId": "5ce45906eea25f61d356d942",
          "position": 2,
          "disabledLanguages": []
        }
      ],
      "activeAssessmentResultsCount": 2,
      "liveAssessmentResultsCount": 0,
      "activeInvitationsCount": 0,
      "purpose": "Et non deserunt assumenda ratione eum. Sed voluptas explicabo praesentium libero ut corporis commodi. Provident adipisci reprehenderit omnis sunt nisi ipsa blanditiis.",
      "demoLandingOrder": 1000,
      "publishedAt": "2019-05-21T20:01:10.430Z",
      "archivedAt": null,
      "createdAt": "2019-05-21T20:01:10.459Z",
      "assessmentResultsSummary": {
        "_id": "5ce45906eea25f61d356d94a",
        "all": 2,
        "started": 2
      },
      "labels": null,
      "notificationScheme": null,
      "assignmentTeamMemberIds": [],
      "redirectUrl": null,
      "webhookUrl": null,
      "submissionMessage": null,
      "assignmentLabels": null,
      "assignmentRole": null,
      "workflowPaths": []
    }
  ],
  "currentPage": 1,
  "totalPages": 1,
  "totalCount": 1,
  "meta": {
    "timestamp": "2019-05-21T13:01:10.669-07: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/5ce45906eea25f61d356d95e

Response

Simulated Response

Status

200

Headers

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

Body

{
  "id": "5ce45906eea25f61d356d95e",
  "type": "Assessment",
  "data": {
    "id": "5ce45906eea25f61d356d95e",
    "title": "Junior Database Engineer #145",
    "state": "published",
    "defaultLanguage": null,
    "defaultInviteMessage": null,
    "teamId": "5ce45906eea25f61d356d958",
    "nounUpper": "Assessment",
    "nounLower": "assessment",
    "skipPracticeAssessment": null,
    "inviteOnly": false,
    "softDeletedAt": null,
    "enforcedTimeLimit": null,
    "manualEstimatedTime": null,
    "suggestedEstimatedTime": 4,
    "copiedFromId": null,
    "showSolutionsToCandidates": true,
    "isTemplate": false,
    "isPractice": false,
    "isDemo": false,
    "galleryImage": null,
    "summary": "Magni maiores qui autem. Accusamus voluptatem qui. Rerum possimus sint nisi omnis autem maxime porro. Aperiam illum aut nam.",
    "challengeItems": [
      {
        "id": "5ce45906eea25f61d356d965",
        "challengeId": "5ce45906eea25f61d356d962",
        "position": 1,
        "disabledLanguages": []
      },
      {
        "id": "5ce45906eea25f61d356d969",
        "challengeId": "5ce45906eea25f61d356d966",
        "position": 2,
        "disabledLanguages": []
      }
    ],
    "activeAssessmentResultsCount": 2,
    "liveAssessmentResultsCount": 0,
    "activeInvitationsCount": 0
  },
  "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"
        }
      ],
      "notificationScheme": [
        {
          "value": "by_assignee",
          "text": "By Assigned Team Member"
        },
        {
          "value": "entire_team",
          "text": "Entire Team"
        },
        {
          "value": "all_restricted",
          "text": "All Team Reviewers"
        },
        {
          "value": "all_premium",
          "text": "All Team Managers"
        },
        {
          "value": "disabled",
          "text": "No One (Disabled)"
        }
      ],
      "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": "scala",
          "text": "Scala"
        },
        {
          "value": "r",
          "text": "R"
        },
        {
          "value": "objc",
          "text": "Objective-C"
        },
        {
          "value": "c",
          "text": "C"
        },
        {
          "value": "go",
          "text": "Go"
        },
        {
          "value": "kotlin",
          "text": "Kotlin"
        },
        {
          "value": "groovy",
          "text": "Groovy"
        },
        {
          "value": "lua",
          "text": "Lua"
        },
        {
          "value": "rust",
          "text": "Rust"
        }
      ],
      "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"
          }
        ],
        "workflowType": [
          {
            "value": "simple_approve",
            "text": "Approve Workflow"
          },
          {
            "value": "simple_reject",
            "text": "Reject Workflow"
          }
        ],
        "assignmentTeamCandidateState": [
          {
            "value": "approved",
            "text": "Approved"
          },
          {
            "value": "rejected",
            "text": "Rejected"
          },
          {
            "value": "archived",
            "text": "Archived"
          }
        ],
        "timeType": [
          {
            "value": "total",
            "text": "Total"
          },
          {
            "value": "accumulated",
            "text": "Active"
          }
        ],
        "conditionsOp": [
          {
            "value": "and",
            "text": "And"
          },
          {
            "value": "or",
            "text": "Or"
          }
        ]
      }
    },
    "timestamp": "2019-05-21T13:01:10.980-07: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.eyJpZGVudGl0eV9pZCI6IjVjZTQ1OTA3ZWVhMjVmNjFkMzU2ZDlhMyIsImlkIjoiNWNlNDU5MDdlZWEyNWY2MWQzNTZkOWE0Iiwic2VjcmV0IjoiYzlRMnVRPT0ifQ.oPRh140eL5gd49ZSxkyLWWNVp16S9SMG3C0QoUfvIqg
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": "5ce45907eea25f61d356d9bb",
  "type": "Assessment",
  "data": {
    "id": "5ce45907eea25f61d356d9bb",
    "title": "Angular Developer",
    "state": "draft",
    "defaultLanguage": null,
    "defaultInviteMessage": null,
    "teamId": "5ce45907eea25f61d356d99c",
    "nounUpper": "Assessment",
    "nounLower": "assessment",
    "skipPracticeAssessment": null,
    "inviteOnly": true,
    "softDeletedAt": null,
    "enforcedTimeLimit": null,
    "manualEstimatedTime": null,
    "suggestedEstimatedTime": 0,
    "copiedFromId": null,
    "showSolutionsToCandidates": true,
    "isTemplate": false,
    "isPractice": false,
    "isDemo": false,
    "galleryImage": null,
    "summary": null,
    "challengeItems": [],
    "activeAssessmentResultsCount": 0,
    "liveAssessmentResultsCount": 0,
    "activeInvitationsCount": 0,
    "purpose": null,
    "demoLandingOrder": 1000,
    "publishedAt": null,
    "archivedAt": null,
    "createdAt": "2019-05-21T20:01:11.697Z",
    "assessmentResultsSummary": {
      "_id": "5ce45907eea25f61d356d9bc"
    },
    "labels": null,
    "notificationScheme": null,
    "assignmentTeamMemberIds": [],
    "redirectUrl": null,
    "webhookUrl": null,
    "submissionMessage": null,
    "assignmentLabels": 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"
        }
      ],
      "notificationScheme": [
        {
          "value": "by_assignee",
          "text": "By Assigned Team Member"
        },
        {
          "value": "entire_team",
          "text": "Entire Team"
        },
        {
          "value": "all_restricted",
          "text": "All Team Reviewers"
        },
        {
          "value": "all_premium",
          "text": "All Team Managers"
        },
        {
          "value": "disabled",
          "text": "No One (Disabled)"
        }
      ],
      "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": "scala",
          "text": "Scala"
        },
        {
          "value": "r",
          "text": "R"
        },
        {
          "value": "objc",
          "text": "Objective-C"
        },
        {
          "value": "c",
          "text": "C"
        },
        {
          "value": "go",
          "text": "Go"
        },
        {
          "value": "kotlin",
          "text": "Kotlin"
        },
        {
          "value": "groovy",
          "text": "Groovy"
        },
        {
          "value": "lua",
          "text": "Lua"
        },
        {
          "value": "rust",
          "text": "Rust"
        }
      ],
      "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"
          }
        ],
        "workflowType": [
          {
            "value": "simple_approve",
            "text": "Approve Workflow"
          },
          {
            "value": "simple_reject",
            "text": "Reject Workflow"
          }
        ],
        "assignmentTeamCandidateState": [
          {
            "value": "approved",
            "text": "Approved"
          },
          {
            "value": "rejected",
            "text": "Rejected"
          },
          {
            "value": "archived",
            "text": "Archived"
          }
        ],
        "timeType": [
          {
            "value": "total",
            "text": "Total"
          },
          {
            "value": "accumulated",
            "text": "Active"
          }
        ],
        "conditionsOp": [
          {
            "value": "and",
            "text": "And"
          },
          {
            "value": "or",
            "text": "Or"
          }
        ]
      }
    },
    "timestamp": "2019-05-21T13:01:11.712-07: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
data.labels Array of labels

Request

Route

PUT /v1/assessments/5ce45907eea25f61d356d9c5

Headers

Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVjZTQ1OTA3ZWVhMjVmNjFkMzU2ZDljNiIsImlkIjoiNWNlNDU5MDdlZWEyNWY2MWQzNTZkOWM3Iiwic2VjcmV0IjoiQm4zbGlBPT0ifQ.NJc-NzQF2HOfRRLyOqrp4e8W_zOLO5GiKWuPB949NDw
Content-Type: application/x-www-form-urlencoded

Body

data[summary]=Junior+to+mid-level&data[labels][]=Test

Response

Simulated Response

Status

200

Headers

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

Body

{
  "id": "5ce45907eea25f61d356d9c5",
  "type": "Assessment",
  "data": {
    "id": "5ce45907eea25f61d356d9c5",
    "title": "Mid-Level JavaScript Developer #148",
    "state": "published",
    "defaultLanguage": null,
    "defaultInviteMessage": null,
    "teamId": "5ce45907eea25f61d356d9bf",
    "nounUpper": "Assessment",
    "nounLower": "assessment",
    "skipPracticeAssessment": null,
    "inviteOnly": false,
    "softDeletedAt": null,
    "enforcedTimeLimit": null,
    "manualEstimatedTime": null,
    "suggestedEstimatedTime": 4,
    "copiedFromId": null,
    "showSolutionsToCandidates": true,
    "isTemplate": false,
    "isPractice": false,
    "isDemo": false,
    "galleryImage": null,
    "summary": "Junior to mid-level",
    "challengeItems": [
      {
        "id": "5ce45907eea25f61d356d9cc",
        "challengeId": "5ce45907eea25f61d356d9c9",
        "position": 1,
        "disabledLanguages": []
      },
      {
        "id": "5ce45907eea25f61d356d9d0",
        "challengeId": "5ce45907eea25f61d356d9cd",
        "position": 2,
        "disabledLanguages": []
      }
    ],
    "activeAssessmentResultsCount": 2,
    "liveAssessmentResultsCount": 0,
    "activeInvitationsCount": 0,
    "purpose": "Ullam aut illo cumque. Earum omnis aut ut atque. Necessitatibus omnis eos.",
    "demoLandingOrder": 1000,
    "publishedAt": "2019-05-21T20:01:11.828Z",
    "archivedAt": null,
    "createdAt": "2019-05-21T20:01:11.856Z",
    "assessmentResultsSummary": {
      "_id": "5ce45907eea25f61d356d9d5",
      "all": 2,
      "started": 2
    },
    "labels": [
      "Test"
    ],
    "notificationScheme": null,
    "assignmentTeamMemberIds": [],
    "redirectUrl": null,
    "webhookUrl": null,
    "submissionMessage": null,
    "assignmentLabels": 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"
        }
      ],
      "notificationScheme": [
        {
          "value": "by_assignee",
          "text": "By Assigned Team Member"
        },
        {
          "value": "entire_team",
          "text": "Entire Team"
        },
        {
          "value": "all_restricted",
          "text": "All Team Reviewers"
        },
        {
          "value": "all_premium",
          "text": "All Team Managers"
        },
        {
          "value": "disabled",
          "text": "No One (Disabled)"
        }
      ],
      "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": "scala",
          "text": "Scala"
        },
        {
          "value": "r",
          "text": "R"
        },
        {
          "value": "objc",
          "text": "Objective-C"
        },
        {
          "value": "c",
          "text": "C"
        },
        {
          "value": "go",
          "text": "Go"
        },
        {
          "value": "kotlin",
          "text": "Kotlin"
        },
        {
          "value": "groovy",
          "text": "Groovy"
        },
        {
          "value": "lua",
          "text": "Lua"
        },
        {
          "value": "rust",
          "text": "Rust"
        }
      ],
      "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"
          }
        ],
        "workflowType": [
          {
            "value": "simple_approve",
            "text": "Approve Workflow"
          },
          {
            "value": "simple_reject",
            "text": "Reject Workflow"
          }
        ],
        "assignmentTeamCandidateState": [
          {
            "value": "approved",
            "text": "Approved"
          },
          {
            "value": "rejected",
            "text": "Rejected"
          },
          {
            "value": "archived",
            "text": "Archived"
          }
        ],
        "timeType": [
          {
            "value": "total",
            "text": "Total"
          },
          {
            "value": "accumulated",
            "text": "Active"
          }
        ],
        "conditionsOp": [
          {
            "value": "and",
            "text": "And"
          },
          {
            "value": "or",
            "text": "Or"
          }
        ]
      }
    },
    "timestamp": "2019-05-21T13:01:12.050-07:00",
    "includes": []
  }
}

Publish

Endpoint

PUT /v1/assessments/:id/publish

Parameters

Name Description
id base16 ObjectId

Request

Route

PUT /v1/assessments/5ce45908eea25f61d356d9e6/publish

Headers

Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVjZTQ1OTA4ZWVhMjVmNjFkMzU2ZDllNyIsImlkIjoiNWNlNDU5MDhlZWEyNWY2MWQzNTZkOWU4Iiwic2VjcmV0IjoiRjRaSlBRPT0ifQ.Psk_QMWvos9JsGdQBGmSItvopbmDnm8pfz0bZjIvNp0
Content-Type: application/x-www-form-urlencoded

Response

Simulated Response

Status

200

Headers

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

Body

{
  "id": "5ce45908eea25f61d356d9e6",
  "type": "Assessment",
  "data": {
    "id": "5ce45908eea25f61d356d9e6",
    "title": "Mid-Level Big-Data Engineer #149",
    "state": "published",
    "defaultLanguage": null,
    "defaultInviteMessage": null,
    "teamId": "5ce45908eea25f61d356d9e0",
    "nounUpper": "Assessment",
    "nounLower": "assessment",
    "skipPracticeAssessment": null,
    "inviteOnly": false,
    "softDeletedAt": null,
    "enforcedTimeLimit": null,
    "manualEstimatedTime": null,
    "suggestedEstimatedTime": 0,
    "copiedFromId": null,
    "showSolutionsToCandidates": true,
    "isTemplate": false,
    "isPractice": false,
    "isDemo": false,
    "galleryImage": null,
    "summary": "Eum magni unde mollitia sed voluptatem quae. Natus neque sit in reiciendis fugiat. Et corporis esse eos tenetur. Et laboriosam eos ut iste dignissimos inventore. Nihil et assumenda qui officiis minima quis.",
    "challengeItems": [],
    "activeAssessmentResultsCount": 0,
    "liveAssessmentResultsCount": 0,
    "activeInvitationsCount": 0,
    "purpose": "Est eveniet quis. Reiciendis ratione fuga modi et. Voluptate dolorem sed sit possimus maxime omnis. Fugit doloremque modi et aut perspiciatis magnam.",
    "demoLandingOrder": 1000,
    "publishedAt": "2019-05-21T20:01:12.201Z",
    "archivedAt": null,
    "createdAt": "2019-05-21T20:01:12.175Z",
    "assessmentResultsSummary": {
      "_id": "5ce45908eea25f61d356d9ea"
    },
    "labels": null,
    "notificationScheme": null,
    "assignmentTeamMemberIds": [],
    "redirectUrl": null,
    "webhookUrl": null,
    "submissionMessage": null,
    "assignmentLabels": 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"
        }
      ],
      "notificationScheme": [
        {
          "value": "by_assignee",
          "text": "By Assigned Team Member"
        },
        {
          "value": "entire_team",
          "text": "Entire Team"
        },
        {
          "value": "all_restricted",
          "text": "All Team Reviewers"
        },
        {
          "value": "all_premium",
          "text": "All Team Managers"
        },
        {
          "value": "disabled",
          "text": "No One (Disabled)"
        }
      ],
      "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": "scala",
          "text": "Scala"
        },
        {
          "value": "r",
          "text": "R"
        },
        {
          "value": "objc",
          "text": "Objective-C"
        },
        {
          "value": "c",
          "text": "C"
        },
        {
          "value": "go",
          "text": "Go"
        },
        {
          "value": "kotlin",
          "text": "Kotlin"
        },
        {
          "value": "groovy",
          "text": "Groovy"
        },
        {
          "value": "lua",
          "text": "Lua"
        },
        {
          "value": "rust",
          "text": "Rust"
        }
      ],
      "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"
          }
        ],
        "workflowType": [
          {
            "value": "simple_approve",
            "text": "Approve Workflow"
          },
          {
            "value": "simple_reject",
            "text": "Reject Workflow"
          }
        ],
        "assignmentTeamCandidateState": [
          {
            "value": "approved",
            "text": "Approved"
          },
          {
            "value": "rejected",
            "text": "Rejected"
          },
          {
            "value": "archived",
            "text": "Archived"
          }
        ],
        "timeType": [
          {
            "value": "total",
            "text": "Total"
          },
          {
            "value": "accumulated",
            "text": "Active"
          }
        ],
        "conditionsOp": [
          {
            "value": "and",
            "text": "And"
          },
          {
            "value": "or",
            "text": "Or"
          }
        ]
      }
    },
    "timestamp": "2019-05-21T13:01:12.233-07:00",
    "includes": []
  }
}

Un-publish

Endpoint

PUT /v1/assessments/:id/unpublish

Parameters

Name Description
id base16 ObjectId

Request

Route

PUT /v1/assessments/5ce45908eea25f61d356da02/unpublish

Headers

Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVjZTQ1OTA4ZWVhMjVmNjFkMzU2ZGEwMyIsImlkIjoiNWNlNDU5MDhlZWEyNWY2MWQzNTZkYTA0Iiwic2VjcmV0IjoieWZoOERRPT0ifQ.69Zt_8Z7Im_AI2fzkYdqItZNl_27iwE4BVYGZ1uRJSI
Content-Type: application/x-www-form-urlencoded

Response

Simulated Response

Status

200

Headers

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

Body

{
  "id": "5ce45908eea25f61d356da02",
  "type": "Assessment",
  "data": {
    "id": "5ce45908eea25f61d356da02",
    "title": "Mid-Level Node Engineer #151",
    "state": "draft",
    "defaultLanguage": null,
    "defaultInviteMessage": null,
    "teamId": "5ce45908eea25f61d356d9fc",
    "nounUpper": "Assessment",
    "nounLower": "assessment",
    "skipPracticeAssessment": null,
    "inviteOnly": false,
    "softDeletedAt": null,
    "enforcedTimeLimit": null,
    "manualEstimatedTime": null,
    "suggestedEstimatedTime": 4,
    "copiedFromId": null,
    "showSolutionsToCandidates": true,
    "isTemplate": false,
    "isPractice": false,
    "isDemo": false,
    "galleryImage": null,
    "summary": "Sit repellat voluptas doloremque error. Velit placeat nihil molestiae cupiditate. Vel natus odio magni ut esse asperiores.",
    "challengeItems": [
      {
        "id": "5ce45908eea25f61d356da09",
        "challengeId": "5ce45908eea25f61d356da06",
        "position": 1,
        "disabledLanguages": []
      },
      {
        "id": "5ce45908eea25f61d356da0d",
        "challengeId": "5ce45908eea25f61d356da0a",
        "position": 2,
        "disabledLanguages": []
      }
    ],
    "activeAssessmentResultsCount": 2,
    "liveAssessmentResultsCount": 0,
    "activeInvitationsCount": 0,
    "purpose": "Voluptatem veniam reiciendis et minima ut. Ullam eligendi officia. Nobis quia aut. Deleniti sed consequatur velit praesentium.",
    "demoLandingOrder": 1000,
    "publishedAt": null,
    "archivedAt": null,
    "createdAt": "2019-05-21T20:01:12.575Z",
    "assessmentResultsSummary": {
      "_id": "5ce45908eea25f61d356da12",
      "all": 2,
      "started": 2
    },
    "labels": null,
    "notificationScheme": null,
    "assignmentTeamMemberIds": [],
    "redirectUrl": null,
    "webhookUrl": null,
    "submissionMessage": null,
    "assignmentLabels": 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"
        }
      ],
      "notificationScheme": [
        {
          "value": "by_assignee",
          "text": "By Assigned Team Member"
        },
        {
          "value": "entire_team",
          "text": "Entire Team"
        },
        {
          "value": "all_restricted",
          "text": "All Team Reviewers"
        },
        {
          "value": "all_premium",
          "text": "All Team Managers"
        },
        {
          "value": "disabled",
          "text": "No One (Disabled)"
        }
      ],
      "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": "scala",
          "text": "Scala"
        },
        {
          "value": "r",
          "text": "R"
        },
        {
          "value": "objc",
          "text": "Objective-C"
        },
        {
          "value": "c",
          "text": "C"
        },
        {
          "value": "go",
          "text": "Go"
        },
        {
          "value": "kotlin",
          "text": "Kotlin"
        },
        {
          "value": "groovy",
          "text": "Groovy"
        },
        {
          "value": "lua",
          "text": "Lua"
        },
        {
          "value": "rust",
          "text": "Rust"
        }
      ],
      "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"
          }
        ],
        "workflowType": [
          {
            "value": "simple_approve",
            "text": "Approve Workflow"
          },
          {
            "value": "simple_reject",
            "text": "Reject Workflow"
          }
        ],
        "assignmentTeamCandidateState": [
          {
            "value": "approved",
            "text": "Approved"
          },
          {
            "value": "rejected",
            "text": "Rejected"
          },
          {
            "value": "archived",
            "text": "Archived"
          }
        ],
        "timeType": [
          {
            "value": "total",
            "text": "Total"
          },
          {
            "value": "accumulated",
            "text": "Active"
          }
        ],
        "conditionsOp": [
          {
            "value": "and",
            "text": "And"
          },
          {
            "value": "or",
            "text": "Or"
          }
        ]
      }
    },
    "timestamp": "2019-05-21T13:01:12.800-07:00",
    "includes": []
  }
}

Archive

Archives the assessment

Endpoint

PUT /v1/assessments/:id/archive

Parameters

Name Description
id base16 ObjectId

Request

Route

PUT /v1/assessments/5ce45908eea25f61d356da23/archive

Headers

Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVjZTQ1OTA4ZWVhMjVmNjFkMzU2ZGEyNCIsImlkIjoiNWNlNDU5MDhlZWEyNWY2MWQzNTZkYTI1Iiwic2VjcmV0IjoiRXhLMXhBPT0ifQ.C-NWTVlbSs1861m8ZHd06R_4XJhQwpuJO5T5uZmcch8
Content-Type: application/x-www-form-urlencoded

Response

Simulated Response

Status

200

Headers

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

Body

{
  "id": "5ce45908eea25f61d356da23",
  "type": "Assessment",
  "data": {
    "id": "5ce45908eea25f61d356da23",
    "title": "Mid-Level DevOps Engineer #152",
    "state": "archived",
    "defaultLanguage": null,
    "defaultInviteMessage": null,
    "teamId": "5ce45908eea25f61d356da1d",
    "nounUpper": "Assessment",
    "nounLower": "assessment",
    "skipPracticeAssessment": null,
    "inviteOnly": false,
    "softDeletedAt": null,
    "enforcedTimeLimit": null,
    "manualEstimatedTime": null,
    "suggestedEstimatedTime": 4,
    "copiedFromId": null,
    "showSolutionsToCandidates": true,
    "isTemplate": false,
    "isPractice": false,
    "isDemo": false,
    "galleryImage": null,
    "summary": "Incidunt numquam excepturi ab quod occaecati soluta delectus. Quia totam ullam ad dolorem. Ipsum sit incidunt. Rem incidunt tempore illo corrupti culpa.",
    "challengeItems": [
      {
        "id": "5ce45908eea25f61d356da2a",
        "challengeId": "5ce45908eea25f61d356da27",
        "position": 1,
        "disabledLanguages": []
      },
      {
        "id": "5ce45908eea25f61d356da2e",
        "challengeId": "5ce45908eea25f61d356da2b",
        "position": 2,
        "disabledLanguages": []
      }
    ],
    "activeAssessmentResultsCount": 2,
    "liveAssessmentResultsCount": 0,
    "activeInvitationsCount": 0,
    "purpose": "Quis tempore minima et. A incidunt debitis eos. Non impedit nisi quibusdam.",
    "demoLandingOrder": 1000,
    "publishedAt": "2019-05-21T20:01:12.924Z",
    "archivedAt": "2019-05-21T20:01:13.122Z",
    "createdAt": "2019-05-21T20:01:12.954Z",
    "assessmentResultsSummary": {
      "_id": "5ce45909eea25f61d356da33",
      "all": 2,
      "started": 2
    },
    "labels": null,
    "notificationScheme": null,
    "assignmentTeamMemberIds": [],
    "redirectUrl": null,
    "webhookUrl": null,
    "submissionMessage": null,
    "assignmentLabels": 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"
        }
      ],
      "notificationScheme": [
        {
          "value": "by_assignee",
          "text": "By Assigned Team Member"
        },
        {
          "value": "entire_team",
          "text": "Entire Team"
        },
        {
          "value": "all_restricted",
          "text": "All Team Reviewers"
        },
        {
          "value": "all_premium",
          "text": "All Team Managers"
        },
        {
          "value": "disabled",
          "text": "No One (Disabled)"
        }
      ],
      "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": "scala",
          "text": "Scala"
        },
        {
          "value": "r",
          "text": "R"
        },
        {
          "value": "objc",
          "text": "Objective-C"
        },
        {
          "value": "c",
          "text": "C"
        },
        {
          "value": "go",
          "text": "Go"
        },
        {
          "value": "kotlin",
          "text": "Kotlin"
        },
        {
          "value": "groovy",
          "text": "Groovy"
        },
        {
          "value": "lua",
          "text": "Lua"
        },
        {
          "value": "rust",
          "text": "Rust"
        }
      ],
      "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"
          }
        ],
        "workflowType": [
          {
            "value": "simple_approve",
            "text": "Approve Workflow"
          },
          {
            "value": "simple_reject",
            "text": "Reject Workflow"
          }
        ],
        "assignmentTeamCandidateState": [
          {
            "value": "approved",
            "text": "Approved"
          },
          {
            "value": "rejected",
            "text": "Rejected"
          },
          {
            "value": "archived",
            "text": "Archived"
          }
        ],
        "timeType": [
          {
            "value": "total",
            "text": "Total"
          },
          {
            "value": "accumulated",
            "text": "Active"
          }
        ],
        "conditionsOp": [
          {
            "value": "and",
            "text": "And"
          },
          {
            "value": "or",
            "text": "Or"
          }
        ]
      }
    },
    "timestamp": "2019-05-21T13:01:13.151-07:00",
    "includes": []
  }
}

Unarchive

Unarchives the assessment

Endpoint

PUT /v1/assessments/:id/unarchive

Parameters

Name Description
id base16 ObjectId

Request

Route

PUT /v1/assessments/5ce45909eea25f61d356da65/unarchive

Headers

Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVjZTQ1OTA5ZWVhMjVmNjFkMzU2ZGE0NSIsImlkIjoiNWNlNDU5MDllZWEyNWY2MWQzNTZkYTQ2Iiwic2VjcmV0IjoiV2sxNW9RPT0ifQ.fHgFYrciefiNK_OCxQKdXgx2z7kYuo1-CDQxf-4XLZc
Content-Type: application/x-www-form-urlencoded

Response

Simulated Response

Status

200

Headers

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

Body

{
  "id": "5ce45909eea25f61d356da65",
  "type": "Assessment",
  "data": {
    "id": "5ce45909eea25f61d356da65",
    "title": "Senior Angular Engineer #154",
    "state": "draft",
    "teamId": "5ce45909eea25f61d356da5f",
    "inviteOnly": false,
    "summary": "",
    "challengeItems": [],
    "unavailable": true
  },
  "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"
        }
      ],
      "notificationScheme": [
        {
          "value": "by_assignee",
          "text": "By Assigned Team Member"
        },
        {
          "value": "entire_team",
          "text": "Entire Team"
        },
        {
          "value": "all_restricted",
          "text": "All Team Reviewers"
        },
        {
          "value": "all_premium",
          "text": "All Team Managers"
        },
        {
          "value": "disabled",
          "text": "No One (Disabled)"
        }
      ],
      "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": "scala",
          "text": "Scala"
        },
        {
          "value": "r",
          "text": "R"
        },
        {
          "value": "objc",
          "text": "Objective-C"
        },
        {
          "value": "c",
          "text": "C"
        },
        {
          "value": "go",
          "text": "Go"
        },
        {
          "value": "kotlin",
          "text": "Kotlin"
        },
        {
          "value": "groovy",
          "text": "Groovy"
        },
        {
          "value": "lua",
          "text": "Lua"
        },
        {
          "value": "rust",
          "text": "Rust"
        }
      ],
      "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"
          }
        ],
        "workflowType": [
          {
            "value": "simple_approve",
            "text": "Approve Workflow"
          },
          {
            "value": "simple_reject",
            "text": "Reject Workflow"
          }
        ],
        "assignmentTeamCandidateState": [
          {
            "value": "approved",
            "text": "Approved"
          },
          {
            "value": "rejected",
            "text": "Rejected"
          },
          {
            "value": "archived",
            "text": "Archived"
          }
        ],
        "timeType": [
          {
            "value": "total",
            "text": "Total"
          },
          {
            "value": "accumulated",
            "text": "Active"
          }
        ],
        "conditionsOp": [
          {
            "value": "and",
            "text": "And"
          },
          {
            "value": "or",
            "text": "Or"
          }
        ]
      }
    },
    "timestamp": "2019-05-21T13:01:13.560-07:00",
    "includes": []
  }
}

Recover

Recovers the assessment

Endpoint

PUT /v1/assessments/:id/recover

Parameters

Name Description
id base16 ObjectId

Request

Route

PUT /v1/assessments/5ce4590aeea25f61d356daab/recover

Headers

Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVjZTQ1OTA5ZWVhMjVmNjFkMzU2ZGE5MyIsImlkIjoiNWNlNDU5MGFlZWEyNWY2MWQzNTZkYTk0Iiwic2VjcmV0IjoiTnpiNzBBPT0ifQ.zTzqCy8ucums8hWTUTM1pBoiVwLah4tmiiYj0V0LQPM
Content-Type: application/x-www-form-urlencoded

Response

Simulated Response

Status

200

Headers

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

Body

{
  "id": "5ce4590aeea25f61d356daab",
  "type": "Assessment",
  "data": {
    "id": "5ce4590aeea25f61d356daab",
    "title": "Mid-Level Big-Data Developer #157",
    "state": "archived",
    "defaultLanguage": null,
    "defaultInviteMessage": null,
    "teamId": "5ce45909eea25f61d356da8c",
    "nounUpper": "Assessment",
    "nounLower": "assessment",
    "skipPracticeAssessment": null,
    "inviteOnly": false,
    "softDeletedAt": null,
    "enforcedTimeLimit": null,
    "manualEstimatedTime": null,
    "suggestedEstimatedTime": 0,
    "copiedFromId": null,
    "showSolutionsToCandidates": true,
    "isTemplate": false,
    "isPractice": false,
    "isDemo": false,
    "galleryImage": null,
    "summary": "Quibusdam voluptate expedita necessitatibus libero. Aut explicabo vitae ut. Sed earum praesentium eligendi. Consequatur nihil et et minus.",
    "challengeItems": [],
    "activeAssessmentResultsCount": 0,
    "liveAssessmentResultsCount": 0,
    "activeInvitationsCount": 0,
    "purpose": "Perferendis et aliquam a tempora molestiae. Quas ut autem. Porro repellat fugit distinctio. Accusantium vel officiis.",
    "demoLandingOrder": 1000,
    "publishedAt": null,
    "archivedAt": "2019-05-21T20:01:14.217Z",
    "createdAt": "2019-05-21T20:01:14.222Z",
    "assessmentResultsSummary": {
      "_id": "5ce4590aeea25f61d356daac"
    },
    "labels": null,
    "notificationScheme": null,
    "assignmentTeamMemberIds": [],
    "redirectUrl": null,
    "webhookUrl": null,
    "submissionMessage": null,
    "assignmentLabels": 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"
        }
      ],
      "notificationScheme": [
        {
          "value": "by_assignee",
          "text": "By Assigned Team Member"
        },
        {
          "value": "entire_team",
          "text": "Entire Team"
        },
        {
          "value": "all_restricted",
          "text": "All Team Reviewers"
        },
        {
          "value": "all_premium",
          "text": "All Team Managers"
        },
        {
          "value": "disabled",
          "text": "No One (Disabled)"
        }
      ],
      "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": "scala",
          "text": "Scala"
        },
        {
          "value": "r",
          "text": "R"
        },
        {
          "value": "objc",
          "text": "Objective-C"
        },
        {
          "value": "c",
          "text": "C"
        },
        {
          "value": "go",
          "text": "Go"
        },
        {
          "value": "kotlin",
          "text": "Kotlin"
        },
        {
          "value": "groovy",
          "text": "Groovy"
        },
        {
          "value": "lua",
          "text": "Lua"
        },
        {
          "value": "rust",
          "text": "Rust"
        }
      ],
      "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"
          }
        ],
        "workflowType": [
          {
            "value": "simple_approve",
            "text": "Approve Workflow"
          },
          {
            "value": "simple_reject",
            "text": "Reject Workflow"
          }
        ],
        "assignmentTeamCandidateState": [
          {
            "value": "approved",
            "text": "Approved"
          },
          {
            "value": "rejected",
            "text": "Rejected"
          },
          {
            "value": "archived",
            "text": "Archived"
          }
        ],
        "timeType": [
          {
            "value": "total",
            "text": "Total"
          },
          {
            "value": "accumulated",
            "text": "Active"
          }
        ],
        "conditionsOp": [
          {
            "value": "and",
            "text": "And"
          },
          {
            "value": "or",
            "text": "Or"
          }
        ]
      }
    },
    "timestamp": "2019-05-21T13:01:14.259-07: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.eyJpZGVudGl0eV9pZCI6IjVjZTQ1OTY1ZWVhMjVmNjFkMzU2ZGNhZiIsImlkIjoiNWNlNDU5NjVlZWEyNWY2MWQzNTZkY2IwIiwic2VjcmV0IjoiVzk1MHlRPT0ifQ.4qEmsQEaKRIsHsMJ3H6kmGIiFV-pp0V_DiH4kKR59ZQ

Response

Simulated Response

Status

200

Headers

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

Body

{
  "type": "CodeChallenge",
  "data": [
    {
      "id": "5ce45965eea25f61d356dcae",
      "$type": "CodeChallenge",
      "teamId": "5ce45965eea25f61d356dca8",
      "createdById": "5ce45965eea25f61d356dcb0",
      "lastUpdatedById": null,
      "copiedFromId": null,
      "title": "Travel Regex #307",
      "instructions": "Complete the solution",
      "difficulty": 1,
      "summary": null,
      "purpose": null,
      "topics": [
        "Fundamentals"
      ],
      "labels": null,
      "estimatedTime": 2,
      "state": "published",
      "publishedAt": "2019-05-21T20:02:45.662Z",
      "createdAt": "2019-05-21T20:02:45.666Z",
      "updatedAt": "2019-05-21T20:02:45.666Z",
      "libraryAccess": null,
      "timeLimitMin": null,
      "copiedFromLibrary": null,
      "copiedFromContentType": null,
      "contentType": "normal",
      "productTypes": {
        "_id": "5ce45965eea25f61d356dcb2",
        "education": true,
        "recruitment": true
      },
      "collection": "team",
      "protected": false,
      "requiresUpgrade": false,
      "majorVersion": 1,
      "minorVersion": 0,
      "patchVersion": 0,
      "linkedStatus": false,
      "galleryImage": null,
      "defaultLanguage": null,
      "enforceAllTestsOnPublish": true,
      "sampleTestCasesEnabled": true,
      "enabledServices": [],
      "successMode": "specs",
      "similarityMode": "full",
      "similarityWeight": 1.0,
      "yamlConfig": null,
      "risks": null,
      "languages": [
        {
          "id": "5ce45965eea25f61d356dcb3",
          "name": "javascript",
          "exampleWallTime": null,
          "testFramework": "cw-2",
          "languageVersion": "10.x",
          "languageVersionName": "Node 10.14.0",
          "challengeReferenceIds": [],
          "generated": null,
          "availableTestFrameworks": [
            "cw-2",
            "mocha_bdd",
            "mocha_tdd",
            "karma_bdd",
            "karma_tdd",
            "jest"
          ],
          "totalTestCases": 1,
          "weightedTestCases": 1,
          "tagTestCases": null,
          "hiddenTestCases": 0,
          "exampleTestCases": "Test.expect(a == 1)",
          "setup": "var a = ",
          "testCases": "Test.expect(a == 1)",
          "preloaded": null,
          "solution": "var a = 1;",
          "validationHash": 0,
          "exampleValidationHash": 0
        }
      ]
    },
    {
      "id": "5ce45965eea25f61d356dcbc",
      "$type": "CodeChallenge",
      "teamId": "5ce45965eea25f61d356dcb6",
      "createdById": "5ce45965eea25f61d356dcbd",
      "lastUpdatedById": null,
      "copiedFromId": null,
      "title": "Fibonacci Items #308",
      "instructions": "Complete the solution",
      "difficulty": 1,
      "summary": null,
      "purpose": null,
      "topics": [
        "Meta-programming"
      ],
      "labels": null,
      "estimatedTime": 2,
      "state": "published",
      "publishedAt": "2019-05-21T20:02:45.738Z",
      "createdAt": "2019-05-21T20:02:45.742Z",
      "updatedAt": "2019-05-21T20:02:45.742Z",
      "libraryAccess": "limited",
      "timeLimitMin": null,
      "copiedFromLibrary": null,
      "copiedFromContentType": null,
      "contentType": "normal",
      "productTypes": {
        "_id": "5ce45965eea25f61d356dcc0",
        "education": true,
        "recruitment": true
      },
      "collection": "commons",
      "protected": true,
      "requiresUpgrade": false,
      "majorVersion": 1,
      "minorVersion": 0,
      "patchVersion": 0,
      "linkedStatus": false,
      "galleryImage": null,
      "defaultLanguage": null,
      "enforceAllTestsOnPublish": true,
      "sampleTestCasesEnabled": true,
      "enabledServices": [],
      "successMode": "specs",
      "similarityMode": "full",
      "similarityWeight": 1.0,
      "risks": null,
      "languages": [
        {
          "id": "5ce45965eea25f61d356dcc1",
          "name": "javascript",
          "exampleWallTime": null,
          "testFramework": "cw-2",
          "languageVersion": "10.x",
          "languageVersionName": "Node 10.14.0",
          "challengeReferenceIds": [],
          "generated": null,
          "availableTestFrameworks": [
            "cw-2",
            "mocha_bdd",
            "mocha_tdd",
            "karma_bdd",
            "karma_tdd",
            "jest"
          ],
          "totalTestCases": 1,
          "weightedTestCases": 1,
          "tagTestCases": null,
          "hiddenTestCases": 0,
          "exampleTestCases": "Test.expect(a == 1)",
          "setup": "var a = ",
          "testCases": "3ZZA5Yx01tAkNM4w6z3iCdxmSd7I+o0PwL26l84NAHU=\n--06PkKEdCfbvpOkT4p/SJGA==--u"
        }
      ]
    },
    {
      "id": "5ce45965eea25f61d356dcc5",
      "$type": "CodeChallenge",
      "teamId": "5ce45965eea25f61d356dcb6",
      "createdById": "5ce45965eea25f61d356dcbd",
      "lastUpdatedById": null,
      "copiedFromId": null,
      "title": "Email Enumerator #310",
      "instructions": "Complete the solution",
      "difficulty": 1,
      "summary": null,
      "purpose": null,
      "topics": [
        "Fundamentals"
      ],
      "labels": [
        "Templates"
      ],
      "estimatedTime": 2,
      "state": "published",
      "publishedAt": "2019-05-21T20:02:45.760Z",
      "createdAt": "2019-05-21T20:02:45.764Z",
      "updatedAt": "2019-05-21T20:02:45.764Z",
      "libraryAccess": "limited",
      "timeLimitMin": null,
      "copiedFromLibrary": null,
      "copiedFromContentType": null,
      "contentType": "template",
      "productTypes": {
        "_id": "5ce45965eea25f61d356dcc6",
        "education": true,
        "recruitment": true
      },
      "collection": "commons",
      "protected": false,
      "requiresUpgrade": false,
      "majorVersion": 1,
      "minorVersion": 0,
      "patchVersion": 0,
      "linkedStatus": false,
      "galleryImage": null,
      "defaultLanguage": null,
      "enforceAllTestsOnPublish": true,
      "sampleTestCasesEnabled": true,
      "enabledServices": [],
      "successMode": "specs",
      "similarityMode": "full",
      "similarityWeight": 1.0,
      "risks": null,
      "languages": [
        {
          "id": "5ce45965eea25f61d356dcc7",
          "name": "javascript",
          "exampleWallTime": null,
          "testFramework": "cw-2",
          "languageVersion": "10.x",
          "languageVersionName": "Node 10.14.0",
          "challengeReferenceIds": [],
          "generated": null,
          "availableTestFrameworks": [
            "cw-2",
            "mocha_bdd",
            "mocha_tdd",
            "karma_bdd",
            "karma_tdd",
            "jest"
          ],
          "totalTestCases": 1,
          "weightedTestCases": 1,
          "tagTestCases": null,
          "hiddenTestCases": 0,
          "exampleTestCases": "Test.expect(a == 1)",
          "setup": "var a = ",
          "testCases": "Test.expect(a == 1)",
          "preloaded": null,
          "solution": "var a = 1;",
          "validationHash": 0,
          "exampleValidationHash": 0
        }
      ]
    }
  ],
  "currentPage": 1,
  "totalPages": 1,
  "totalCount": 3,
  "meta": {
    "timestamp": "2019-05-21T13:02:45.824-07:00",
    "includes": []
  }
}

Get

Endpoint

GET /v1/challenges/:id

Parameters

Name Description
id base16 ObjectId

Request

Route

GET /v1/challenges/5ce45966eea25f61d356dd45

Headers

Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVjZTQ1OTY2ZWVhMjVmNjFkMzU2ZGQ0NiIsImlkIjoiNWNlNDU5NjZlZWEyNWY2MWQzNTZkZDQ3Iiwic2VjcmV0IjoiS0NDbmx3PT0ifQ.jMb1dcihcZ-etjcqIFQH3q_7Ii1DCJc8GQDI_a5ZupQ

Response

Simulated Response

Status

200

Headers

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

Body

{
  "id": "5ce45966eea25f61d356dd45",
  "type": "CodeChallenge",
  "data": {
    "id": "5ce45966eea25f61d356dd45",
    "$type": "CodeChallenge",
    "teamId": "5ce45966eea25f61d356dd3f",
    "createdById": "5ce45966eea25f61d356dd47",
    "lastUpdatedById": null,
    "copiedFromId": null,
    "title": "Polymorphic Sorting #328",
    "instructions": "Complete the solution",
    "difficulty": 1,
    "summary": null,
    "purpose": null,
    "topics": [
      "Algorithms"
    ],
    "labels": null,
    "estimatedTime": 2,
    "state": "published",
    "publishedAt": "2019-05-21T20:02:46.696Z",
    "createdAt": "2019-05-21T20:02:46.701Z",
    "updatedAt": "2019-05-21T20:02:46.701Z",
    "libraryAccess": null,
    "timeLimitMin": null,
    "copiedFromLibrary": null,
    "copiedFromContentType": null,
    "contentType": "normal",
    "productTypes": {
      "_id": "5ce45966eea25f61d356dd49",
      "education": true,
      "recruitment": true
    },
    "collection": "team",
    "protected": false,
    "requiresUpgrade": false,
    "majorVersion": 1,
    "minorVersion": 0,
    "patchVersion": 0,
    "linkedStatus": false,
    "galleryImage": null,
    "defaultLanguage": null,
    "enforceAllTestsOnPublish": true,
    "sampleTestCasesEnabled": true,
    "enabledServices": [],
    "successMode": "specs",
    "similarityMode": "full",
    "similarityWeight": 1.0,
    "yamlConfig": null,
    "risks": null,
    "languages": [
      {
        "id": "5ce45966eea25f61d356dd4a",
        "name": "javascript",
        "exampleWallTime": null,
        "testFramework": "cw-2",
        "languageVersion": "10.x",
        "languageVersionName": "Node 10.14.0",
        "challengeReferenceIds": [],
        "generated": null,
        "availableTestFrameworks": [
          "cw-2",
          "mocha_bdd",
          "mocha_tdd",
          "karma_bdd",
          "karma_tdd",
          "jest"
        ],
        "totalTestCases": 1,
        "weightedTestCases": 1,
        "tagTestCases": null,
        "hiddenTestCases": 0,
        "exampleTestCases": "Test.expect(a == 1)",
        "setup": "var a = ",
        "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"
        }
      ],
      "similarityMode": [
        {
          "value": "full",
          "text": "Full"
        },
        {
          "value": "no_risk",
          "text": "No risk"
        },
        {
          "value": "none",
          "text": "None"
        }
      ],
      "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": "scala",
            "text": "Scala"
          },
          {
            "value": "r",
            "text": "R"
          },
          {
            "value": "objc",
            "text": "Objc"
          },
          {
            "value": "c",
            "text": "C"
          },
          {
            "value": "go",
            "text": "Go"
          },
          {
            "value": "kotlin",
            "text": "Kotlin"
          },
          {
            "value": "groovy",
            "text": "Groovy"
          },
          {
            "value": "lua",
            "text": "Lua"
          },
          {
            "value": "rust",
            "text": "Rust"
          }
        ]
      }
    },
    "timestamp": "2019-05-21T13:02:46.740-07: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.eyJpZGVudGl0eV9pZCI6IjVjZTQ1OTY2ZWVhMjVmNjFkMzU2ZGQ1NCIsImlkIjoiNWNlNDU5NjZlZWEyNWY2MWQzNTZkZDU1Iiwic2VjcmV0IjoiMlNQZFlnPT0ifQ.K8zRQ5Am1MN9zL6U5jbuE3vPQY_X_ozvoLOLnbZeAM4

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": "5ce45966eea25f61d356dd59",
  "type": "CodeChallenge",
  "data": {
    "id": "5ce45966eea25f61d356dd59",
    "$type": "CodeChallenge",
    "teamId": "5ce45966eea25f61d356dd4d",
    "createdById": "5ce45966eea25f61d356dd55",
    "lastUpdatedById": null,
    "copiedFromId": null,
    "title": "test challenge",
    "instructions": "Do some work",
    "difficulty": null,
    "summary": null,
    "purpose": "abc",
    "topics": null,
    "labels": null,
    "estimatedTime": null,
    "state": "published",
    "publishedAt": "2019-05-21T20:02:46.896Z",
    "createdAt": "2019-05-21T20:02:46.900Z",
    "updatedAt": "2019-05-21T20:02:46.900Z",
    "libraryAccess": null,
    "timeLimitMin": null,
    "copiedFromLibrary": null,
    "copiedFromContentType": null,
    "contentType": "normal",
    "productTypes": {
      "_id": "5ce45966eea25f61d356dd50",
      "education": true,
      "recruitment": true
    },
    "collection": "team",
    "protected": false,
    "requiresUpgrade": false,
    "majorVersion": null,
    "minorVersion": null,
    "patchVersion": null,
    "linkedStatus": false,
    "galleryImage": null,
    "defaultLanguage": null,
    "enforceAllTestsOnPublish": false,
    "sampleTestCasesEnabled": true,
    "enabledServices": [],
    "successMode": "specs",
    "similarityMode": "full",
    "similarityWeight": 1.0,
    "yamlConfig": null,
    "risks": null,
    "languages": [
      {
        "id": "5ce45966eea25f61d356dd5b",
        "name": "javascript",
        "exampleWallTime": null,
        "testFramework": "cw-2",
        "languageVersion": "10.x",
        "languageVersionName": "Node 10.14.0",
        "challengeReferenceIds": [],
        "generated": null,
        "availableTestFrameworks": [
          "cw-2",
          "mocha_bdd",
          "mocha_tdd",
          "karma_bdd",
          "karma_tdd",
          "jest"
        ],
        "totalTestCases": 0,
        "weightedTestCases": 0,
        "tagTestCases": null,
        "hiddenTestCases": 0,
        "exampleTestCases": null,
        "setup": null,
        "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"
        }
      ],
      "similarityMode": [
        {
          "value": "full",
          "text": "Full"
        },
        {
          "value": "no_risk",
          "text": "No risk"
        },
        {
          "value": "none",
          "text": "None"
        }
      ],
      "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": "scala",
            "text": "Scala"
          },
          {
            "value": "r",
            "text": "R"
          },
          {
            "value": "objc",
            "text": "Objc"
          },
          {
            "value": "c",
            "text": "C"
          },
          {
            "value": "go",
            "text": "Go"
          },
          {
            "value": "kotlin",
            "text": "Kotlin"
          },
          {
            "value": "groovy",
            "text": "Groovy"
          },
          {
            "value": "lua",
            "text": "Lua"
          },
          {
            "value": "rust",
            "text": "Rust"
          }
        ]
      }
    },
    "timestamp": "2019-05-21T13:02:46.912-07: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.eyJpZGVudGl0eV9pZCI6IjVjZTQ1OTY2ZWVhMjVmNjFkMzU2ZGQ2NSIsImlkIjoiNWNlNDU5NjdlZWEyNWY2MWQzNTZkZDY2Iiwic2VjcmV0IjoidEptTWVBPT0ifQ.-gfnbHZWuH70pTs8C9XiFLYin8U3OD1Lodz315sM8Pk

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": "5ce45967eea25f61d356dd71",
  "type": "QuizChallenge",
  "data": {
    "id": "5ce45967eea25f61d356dd71",
    "$type": "QuizChallenge",
    "teamId": "5ce45966eea25f61d356dd5e",
    "createdById": "5ce45967eea25f61d356dd66",
    "lastUpdatedById": null,
    "copiedFromId": null,
    "title": "test challenge",
    "instructions": "Do some work",
    "difficulty": null,
    "summary": null,
    "purpose": "abc",
    "topics": null,
    "labels": null,
    "estimatedTime": null,
    "state": "draft",
    "publishedAt": null,
    "createdAt": "2019-05-21T20:02:47.065Z",
    "updatedAt": "2019-05-21T20:02:47.065Z",
    "libraryAccess": null,
    "timeLimitMin": null,
    "copiedFromLibrary": null,
    "copiedFromContentType": null,
    "contentType": "normal",
    "productTypes": {
      "_id": "5ce45966eea25f61d356dd61",
      "education": true,
      "recruitment": true
    },
    "collection": "team",
    "protected": false,
    "requiresUpgrade": false,
    "majorVersion": null,
    "minorVersion": null,
    "patchVersion": null,
    "linkedStatus": false,
    "galleryImage": null,
    "timeLimitType": "none",
    "questionTimeLimitSec": null,
    "questionTimeLimitStartSec": null,
    "questions": []
  },
  "meta": {
    "enums": {
      "timeLimitType": [
        {
          "value": "none",
          "text": "No Time Limit"
        },
        {
          "value": "challenge",
          "text": "Challenge Time Limit"
        },
        {
          "value": "per_question",
          "text": "Per Question Time Limit"
        },
        {
          "value": "per_question_bonus",
          "text": "Per Question Time Limit with Time Bonus"
        }
      ],
      "questions": {
        "language": [
          {
            "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": "scala",
            "text": "Scala"
          },
          {
            "value": "r",
            "text": "R"
          },
          {
            "value": "objc",
            "text": "Objc"
          },
          {
            "value": "c",
            "text": "C"
          },
          {
            "value": "go",
            "text": "Go"
          },
          {
            "value": "kotlin",
            "text": "Kotlin"
          },
          {
            "value": "groovy",
            "text": "Groovy"
          },
          {
            "value": "lua",
            "text": "Lua"
          },
          {
            "value": "rust",
            "text": "Rust"
          }
        ]
      }
    },
    "timestamp": "2019-05-21T13:02:47.075-07: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/5ce45967eea25f61d356dd7b

Headers

Content-Type: application/json
Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVjZTQ1OTY3ZWVhMjVmNjFkMzU2ZGQ3YyIsImlkIjoiNWNlNDU5NjdlZWEyNWY2MWQzNTZkZDdkIiwic2VjcmV0IjoiakJvcDdRPT0ifQ.mBAMtyNnCs_-La0GMYBGwmPtnH4jvDeaiQgF_PLWymg

Body

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

Response

Simulated Response

Status

200

Headers

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

Body

{
  "id": "5ce45967eea25f61d356dd7b",
  "type": "CodeChallenge",
  "data": {
    "id": "5ce45967eea25f61d356dd7b",
    "$type": "CodeChallenge",
    "teamId": "5ce45967eea25f61d356dd75",
    "createdById": "5ce45967eea25f61d356dd7d",
    "lastUpdatedById": "5ce45967eea25f61d356dd7d",
    "copiedFromId": null,
    "title": "Custom Search #331",
    "instructions": "Complete the solution",
    "difficulty": 1,
    "summary": null,
    "purpose": null,
    "topics": [
      "Algorithms"
    ],
    "labels": null,
    "estimatedTime": 2,
    "state": "draft",
    "publishedAt": null,
    "createdAt": "2019-05-21T20:02:47.209Z",
    "updatedAt": "2019-05-21T20:02:47.249Z",
    "libraryAccess": null,
    "timeLimitMin": null,
    "copiedFromLibrary": null,
    "copiedFromContentType": null,
    "contentType": "normal",
    "productTypes": {
      "_id": "5ce45967eea25f61d356dd7f",
      "education": true,
      "recruitment": true
    },
    "collection": "team",
    "protected": false,
    "requiresUpgrade": false,
    "majorVersion": 1,
    "minorVersion": 0,
    "patchVersion": 0,
    "linkedStatus": false,
    "galleryImage": null,
    "defaultLanguage": null,
    "enforceAllTestsOnPublish": true,
    "sampleTestCasesEnabled": true,
    "enabledServices": [],
    "successMode": "specs",
    "similarityMode": "full",
    "similarityWeight": 1.0,
    "yamlConfig": null,
    "risks": null,
    "languages": [
      {
        "id": "5ce45967eea25f61d356dd81",
        "name": "ruby",
        "exampleWallTime": null,
        "testFramework": "cw-2",
        "languageVersion": "2.5.x",
        "languageVersionName": "MRI 2.5.1",
        "challengeReferenceIds": [],
        "generated": null,
        "availableTestFrameworks": [
          "cw-2",
          "rspec"
        ],
        "totalTestCases": 0,
        "weightedTestCases": 0,
        "tagTestCases": null,
        "hiddenTestCases": 0,
        "exampleTestCases": null,
        "setup": null,
        "testCases": null,
        "preloaded": null,
        "solution": "a = 1",
        "validationHash": 0,
        "exampleValidationHash": 0
      }
    ]
  },
  "meta": {
    "enums": {
      "successMode": [
        {
          "value": "specs",
          "text": "Specs"
        },
        {
          "value": "assertions",
          "text": "Assertions"
        }
      ],
      "similarityMode": [
        {
          "value": "full",
          "text": "Full"
        },
        {
          "value": "no_risk",
          "text": "No risk"
        },
        {
          "value": "none",
          "text": "None"
        }
      ],
      "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": "scala",
            "text": "Scala"
          },
          {
            "value": "r",
            "text": "R"
          },
          {
            "value": "objc",
            "text": "Objc"
          },
          {
            "value": "c",
            "text": "C"
          },
          {
            "value": "go",
            "text": "Go"
          },
          {
            "value": "kotlin",
            "text": "Kotlin"
          },
          {
            "value": "groovy",
            "text": "Groovy"
          },
          {
            "value": "lua",
            "text": "Lua"
          },
          {
            "value": "rust",
            "text": "Rust"
          }
        ]
      }
    },
    "timestamp": "2019-05-21T13:02:47.260-07:00",
    "includes": []
  }
}

Delete

Endpoint

DELETE /v1/challenges/:id

Request

Route

DELETE /v1/challenges/5ce45967eea25f61d356dd8a

Headers

Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVjZTQ1OTY3ZWVhMjVmNjFkMzU2ZGQ4YiIsImlkIjoiNWNlNDU5NjdlZWEyNWY2MWQzNTZkZDhjIiwic2VjcmV0IjoiaFZqSldBPT0ifQ.78u_bQOPgifXvF6usLYkvCvrxQXznTs06BUdG4oi4EU
Content-Type: application/x-www-form-urlencoded

Response

Simulated Response

Status

204

Un-Publish

Endpoint

PUT /v1/challenges/:id/unpublish

Parameters

Name Description
id required base16 ObjectId

Request

Route

PUT /v1/challenges/5ce45967eea25f61d356dd98/unpublish

Headers

Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVjZTQ1OTY3ZWVhMjVmNjFkMzU2ZGQ5OSIsImlkIjoiNWNlNDU5NjdlZWEyNWY2MWQzNTZkZDlhIiwic2VjcmV0IjoiU1ByNjNnPT0ifQ.wWJDw8TeSzSv4TJkZfpeC4iZzLus8sdYOcBQwjznMlE
Content-Type: application/x-www-form-urlencoded

Response

Simulated Response

Status

200

Headers

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

Body

{
  "id": "5ce45967eea25f61d356dd98",
  "type": "CodeChallenge",
  "data": {
    "id": "5ce45967eea25f61d356dd98",
    "$type": "CodeChallenge",
    "teamId": "5ce45967eea25f61d356dd92",
    "createdById": "5ce45967eea25f61d356dd9a",
    "lastUpdatedById": null,
    "copiedFromId": null,
    "title": "Heavy Objects #333",
    "instructions": "Complete the solution",
    "difficulty": 1,
    "summary": null,
    "purpose": null,
    "topics": [
      "Fundamentals"
    ],
    "labels": null,
    "estimatedTime": 2,
    "state": "draft",
    "publishedAt": null,
    "createdAt": "2019-05-21T20:02:47.519Z",
    "updatedAt": "2019-05-21T20:02:47.547Z",
    "libraryAccess": null,
    "timeLimitMin": null,
    "copiedFromLibrary": null,
    "copiedFromContentType": null,
    "contentType": "normal",
    "productTypes": {
      "_id": "5ce45967eea25f61d356dd9c",
      "education": true,
      "recruitment": true
    },
    "collection": "team",
    "protected": false,
    "requiresUpgrade": false,
    "majorVersion": 1,
    "minorVersion": 0,
    "patchVersion": 0,
    "linkedStatus": false,
    "galleryImage": null,
    "defaultLanguage": null,
    "enforceAllTestsOnPublish": true,
    "sampleTestCasesEnabled": true,
    "enabledServices": [],
    "successMode": "specs",
    "similarityMode": "full",
    "similarityWeight": 1.0,
    "yamlConfig": null,
    "risks": null,
    "languages": [
      {
        "id": "5ce45967eea25f61d356dd9d",
        "name": "javascript",
        "exampleWallTime": null,
        "testFramework": "cw-2",
        "languageVersion": "10.x",
        "languageVersionName": "Node 10.14.0",
        "challengeReferenceIds": [],
        "generated": null,
        "availableTestFrameworks": [
          "cw-2",
          "mocha_bdd",
          "mocha_tdd",
          "karma_bdd",
          "karma_tdd",
          "jest"
        ],
        "totalTestCases": 1,
        "weightedTestCases": 1,
        "tagTestCases": null,
        "hiddenTestCases": 0,
        "exampleTestCases": "Test.expect(a == 1)",
        "setup": "var a = ",
        "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"
        }
      ],
      "similarityMode": [
        {
          "value": "full",
          "text": "Full"
        },
        {
          "value": "no_risk",
          "text": "No risk"
        },
        {
          "value": "none",
          "text": "None"
        }
      ],
      "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": "scala",
            "text": "Scala"
          },
          {
            "value": "r",
            "text": "R"
          },
          {
            "value": "objc",
            "text": "Objc"
          },
          {
            "value": "c",
            "text": "C"
          },
          {
            "value": "go",
            "text": "Go"
          },
          {
            "value": "kotlin",
            "text": "Kotlin"
          },
          {
            "value": "groovy",
            "text": "Groovy"
          },
          {
            "value": "lua",
            "text": "Lua"
          },
          {
            "value": "rust",
            "text": "Rust"
          }
        ]
      }
    },
    "timestamp": "2019-05-21T13:02:47.559-07:00",
    "includes": []
  }
}

Publish

Endpoint

PUT /v1/challenges/:id/publish

Parameters

Name Description
id required base16 ObjectId

Request

Route

PUT /v1/challenges/5ce45967eea25f61d356dda6/publish

Headers

Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVjZTQ1OTY3ZWVhMjVmNjFkMzU2ZGRhNyIsImlkIjoiNWNlNDU5NjdlZWEyNWY2MWQzNTZkZGE4Iiwic2VjcmV0IjoiTE43SktnPT0ifQ.IS5AsXXg-8P7sloC0uWmHP-loTlmcgtOI1pZhBAGtDk
Content-Type: application/x-www-form-urlencoded

Response

Simulated Response

Status

200

Headers

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

Body

{
  "id": "5ce45967eea25f61d356dda6",
  "type": "CodeChallenge",
  "data": {
    "id": "5ce45967eea25f61d356dda6",
    "$type": "CodeChallenge",
    "teamId": "5ce45967eea25f61d356dda0",
    "createdById": "5ce45967eea25f61d356dda8",
    "lastUpdatedById": null,
    "copiedFromId": null,
    "title": "Functional Numbers #334",
    "instructions": "Complete the solution",
    "difficulty": 1,
    "summary": null,
    "purpose": null,
    "topics": [
      "Algorithms"
    ],
    "labels": null,
    "estimatedTime": 2,
    "state": "published",
    "publishedAt": "2019-05-21T20:02:47.720Z",
    "createdAt": "2019-05-21T20:02:47.690Z",
    "updatedAt": "2019-05-21T20:02:47.725Z",
    "libraryAccess": null,
    "timeLimitMin": null,
    "copiedFromLibrary": null,
    "copiedFromContentType": null,
    "contentType": "normal",
    "productTypes": {
      "_id": "5ce45967eea25f61d356ddaa",
      "education": true,
      "recruitment": true
    },
    "collection": "team",
    "protected": false,
    "requiresUpgrade": false,
    "majorVersion": 1,
    "minorVersion": 0,
    "patchVersion": 0,
    "linkedStatus": false,
    "galleryImage": null,
    "defaultLanguage": null,
    "enforceAllTestsOnPublish": true,
    "sampleTestCasesEnabled": true,
    "enabledServices": [],
    "successMode": "specs",
    "similarityMode": "full",
    "similarityWeight": 1.0,
    "yamlConfig": null,
    "risks": null,
    "languages": [
      {
        "id": "5ce45967eea25f61d356ddab",
        "name": "javascript",
        "exampleWallTime": null,
        "testFramework": "cw-2",
        "languageVersion": "10.x",
        "languageVersionName": "Node 10.14.0",
        "challengeReferenceIds": [],
        "generated": null,
        "availableTestFrameworks": [
          "cw-2",
          "mocha_bdd",
          "mocha_tdd",
          "karma_bdd",
          "karma_tdd",
          "jest"
        ],
        "totalTestCases": 1,
        "weightedTestCases": 1,
        "tagTestCases": null,
        "hiddenTestCases": 0,
        "exampleTestCases": "Test.expect(a == 1)",
        "setup": "var a = ",
        "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"
        }
      ],
      "similarityMode": [
        {
          "value": "full",
          "text": "Full"
        },
        {
          "value": "no_risk",
          "text": "No risk"
        },
        {
          "value": "none",
          "text": "None"
        }
      ],
      "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": "scala",
            "text": "Scala"
          },
          {
            "value": "r",
            "text": "R"
          },
          {
            "value": "objc",
            "text": "Objc"
          },
          {
            "value": "c",
            "text": "C"
          },
          {
            "value": "go",
            "text": "Go"
          },
          {
            "value": "kotlin",
            "text": "Kotlin"
          },
          {
            "value": "groovy",
            "text": "Groovy"
          },
          {
            "value": "lua",
            "text": "Lua"
          },
          {
            "value": "rust",
            "text": "Rust"
          }
        ]
      }
    },
    "timestamp": "2019-05-21T13:02:47.741-07:00",
    "includes": []
  }
}

Archive

Endpoint

PUT /v1/challenges/:id/archive

Parameters

Name Description
id required base16 ObjectId

Request

Route

PUT /v1/challenges/5ce45967eea25f61d356ddb4/archive

Headers

Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVjZTQ1OTY3ZWVhMjVmNjFkMzU2ZGRiNSIsImlkIjoiNWNlNDU5NjdlZWEyNWY2MWQzNTZkZGI2Iiwic2VjcmV0IjoiOHd3OE93PT0ifQ.MCmtTrPhs8VbKh53kRff310NDrFl-tlofBQ8yBay__w
Content-Type: application/x-www-form-urlencoded

Response

Simulated Response

Status

200

Headers

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

Body

{
  "id": "5ce45967eea25f61d356ddb4",
  "type": "CodeChallenge",
  "data": {
    "id": "5ce45967eea25f61d356ddb4",
    "$type": "CodeChallenge",
    "teamId": "5ce45967eea25f61d356ddae",
    "createdById": "5ce45967eea25f61d356ddb6",
    "lastUpdatedById": null,
    "copiedFromId": null,
    "title": "Polymorphic Helper #335",
    "instructions": "Complete the solution",
    "difficulty": 1,
    "summary": null,
    "purpose": null,
    "topics": [
      "Logic"
    ],
    "labels": null,
    "estimatedTime": 2,
    "state": "archived",
    "publishedAt": "2019-05-21T20:02:47.865Z",
    "createdAt": "2019-05-21T20:02:47.869Z",
    "updatedAt": "2019-05-21T20:02:47.903Z",
    "libraryAccess": null,
    "timeLimitMin": null,
    "copiedFromLibrary": null,
    "copiedFromContentType": null,
    "contentType": "normal",
    "productTypes": {
      "_id": "5ce45967eea25f61d356ddb8",
      "education": true,
      "recruitment": true
    },
    "collection": "team",
    "protected": false,
    "requiresUpgrade": false,
    "majorVersion": 1,
    "minorVersion": 0,
    "patchVersion": 0,
    "linkedStatus": false,
    "galleryImage": null,
    "defaultLanguage": null,
    "enforceAllTestsOnPublish": true,
    "sampleTestCasesEnabled": true,
    "enabledServices": [],
    "successMode": "specs",
    "similarityMode": "full",
    "similarityWeight": 1.0,
    "yamlConfig": null,
    "risks": null,
    "languages": [
      {
        "id": "5ce45967eea25f61d356ddb9",
        "name": "javascript",
        "exampleWallTime": null,
        "testFramework": "cw-2",
        "languageVersion": "10.x",
        "languageVersionName": "Node 10.14.0",
        "challengeReferenceIds": [],
        "generated": null,
        "availableTestFrameworks": [
          "cw-2",
          "mocha_bdd",
          "mocha_tdd",
          "karma_bdd",
          "karma_tdd",
          "jest"
        ],
        "totalTestCases": 1,
        "weightedTestCases": 1,
        "tagTestCases": null,
        "hiddenTestCases": 0,
        "exampleTestCases": "Test.expect(a == 1)",
        "setup": "var a = ",
        "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"
        }
      ],
      "similarityMode": [
        {
          "value": "full",
          "text": "Full"
        },
        {
          "value": "no_risk",
          "text": "No risk"
        },
        {
          "value": "none",
          "text": "None"
        }
      ],
      "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": "scala",
            "text": "Scala"
          },
          {
            "value": "r",
            "text": "R"
          },
          {
            "value": "objc",
            "text": "Objc"
          },
          {
            "value": "c",
            "text": "C"
          },
          {
            "value": "go",
            "text": "Go"
          },
          {
            "value": "kotlin",
            "text": "Kotlin"
          },
          {
            "value": "groovy",
            "text": "Groovy"
          },
          {
            "value": "lua",
            "text": "Lua"
          },
          {
            "value": "rust",
            "text": "Rust"
          }
        ]
      }
    },
    "timestamp": "2019-05-21T13:02:47.918-07:00",
    "includes": []
  }
}

Un-archive

Endpoint

PUT /v1/challenges/:id/unarchive

Parameters

Name Description
id required base16 ObjectId

Request

Route

PUT /v1/challenges/5ce45968eea25f61d356ddd2/unarchive

Headers

Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVjZTQ1OTY4ZWVhMjVmNjFkMzU2ZGRkMyIsImlkIjoiNWNlNDU5NjhlZWEyNWY2MWQzNTZkZGQ0Iiwic2VjcmV0IjoiOE1kWnZRPT0ifQ.bJTUSOTs8aSwyv-4wCt2gCxRCbk81yZ7-Gw19wpVagM
Content-Type: application/x-www-form-urlencoded

Response

Simulated Response

Status

200

Headers

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

Body

{
  "id": "5ce45968eea25f61d356ddd2",
  "type": "CodeChallenge",
  "data": {
    "id": "5ce45968eea25f61d356ddd2",
    "$type": "CodeChallenge",
    "teamId": "5ce45968eea25f61d356ddcc",
    "createdById": "5ce45968eea25f61d356ddd4",
    "lastUpdatedById": null,
    "copiedFromId": null,
    "title": "Magic Problem #337",
    "instructions": "Complete the solution",
    "difficulty": 1,
    "summary": null,
    "purpose": null,
    "topics": [
      "Algorithms"
    ],
    "labels": null,
    "estimatedTime": 2,
    "state": "published",
    "publishedAt": "2019-05-21T20:02:48.258Z",
    "createdAt": "2019-05-21T20:02:48.231Z",
    "updatedAt": "2019-05-21T20:02:48.263Z",
    "libraryAccess": null,
    "timeLimitMin": null,
    "copiedFromLibrary": null,
    "copiedFromContentType": null,
    "contentType": "normal",
    "productTypes": {
      "_id": "5ce45968eea25f61d356ddd6",
      "education": true,
      "recruitment": true
    },
    "collection": "team",
    "protected": false,
    "requiresUpgrade": false,
    "majorVersion": 1,
    "minorVersion": 0,
    "patchVersion": 0,
    "linkedStatus": false,
    "galleryImage": null,
    "defaultLanguage": null,
    "enforceAllTestsOnPublish": true,
    "sampleTestCasesEnabled": true,
    "enabledServices": [],
    "successMode": "specs",
    "similarityMode": "full",
    "similarityWeight": 1.0,
    "yamlConfig": null,
    "risks": null,
    "languages": [
      {
        "id": "5ce45968eea25f61d356ddd7",
        "name": "javascript",
        "exampleWallTime": null,
        "testFramework": "cw-2",
        "languageVersion": "10.x",
        "languageVersionName": "Node 10.14.0",
        "challengeReferenceIds": [],
        "generated": null,
        "availableTestFrameworks": [
          "cw-2",
          "mocha_bdd",
          "mocha_tdd",
          "karma_bdd",
          "karma_tdd",
          "jest"
        ],
        "totalTestCases": 1,
        "weightedTestCases": 1,
        "tagTestCases": null,
        "hiddenTestCases": 0,
        "exampleTestCases": "Test.expect(a == 1)",
        "setup": "var a = ",
        "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"
        }
      ],
      "similarityMode": [
        {
          "value": "full",
          "text": "Full"
        },
        {
          "value": "no_risk",
          "text": "No risk"
        },
        {
          "value": "none",
          "text": "None"
        }
      ],
      "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": "scala",
            "text": "Scala"
          },
          {
            "value": "r",
            "text": "R"
          },
          {
            "value": "objc",
            "text": "Objc"
          },
          {
            "value": "c",
            "text": "C"
          },
          {
            "value": "go",
            "text": "Go"
          },
          {
            "value": "kotlin",
            "text": "Kotlin"
          },
          {
            "value": "groovy",
            "text": "Groovy"
          },
          {
            "value": "lua",
            "text": "Lua"
          },
          {
            "value": "rust",
            "text": "Rust"
          }
        ]
      }
    },
    "timestamp": "2019-05-21T13:02:48.277-07: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/5ce45969eea25f61d356de5f/import

Headers

Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVjZTQ1OTY5ZWVhMjVmNjFkMzU2ZGU2MCIsImlkIjoiNWNlNDU5NjllZWEyNWY2MWQzNTZkZTYxIiwic2VjcmV0IjoiRS8zczJnPT0ifQ.s5PNm4rGrGvJzoT-A6hbOStR0RxprzaNr2DAxW4ghSw
Content-Type: application/x-www-form-urlencoded

Response

Simulated Response

Status

200

Headers

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

Body

{
  "id": "5ce45969eea25f61d356de66",
  "type": "CodeChallenge",
  "data": {
    "id": "5ce45969eea25f61d356de66",
    "$type": "CodeChallenge",
    "teamId": "5ce45969eea25f61d356de59",
    "createdById": "5ce45969eea25f61d356de61",
    "lastUpdatedById": null,
    "copiedFromId": "5ce45969eea25f61d356de5f",
    "title": "Utility Parser #341",
    "instructions": "Complete the solution",
    "difficulty": 1,
    "summary": null,
    "purpose": null,
    "topics": [
      "Fundamentals"
    ],
    "labels": null,
    "estimatedTime": 2,
    "state": "published",
    "publishedAt": "2019-05-21T20:02:49.247Z",
    "createdAt": "2019-05-21T20:02:49.216Z",
    "updatedAt": "2019-05-21T20:02:49.216Z",
    "libraryAccess": null,
    "timeLimitMin": null,
    "copiedFromLibrary": false,
    "copiedFromContentType": "normal",
    "contentType": "normal",
    "productTypes": {
      "_id": "5ce45969eea25f61d356de69",
      "education": true,
      "recruitment": true
    },
    "collection": "team",
    "protected": false,
    "requiresUpgrade": false,
    "majorVersion": 1,
    "minorVersion": 0,
    "patchVersion": 0,
    "linkedStatus": true,
    "galleryImage": null,
    "defaultLanguage": null,
    "enforceAllTestsOnPublish": true,
    "sampleTestCasesEnabled": true,
    "enabledServices": [],
    "successMode": "specs",
    "similarityMode": "full",
    "similarityWeight": 1.0,
    "yamlConfig": null,
    "risks": null,
    "languages": [
      {
        "id": "5ce45969eea25f61d356de68",
        "name": "javascript",
        "exampleWallTime": null,
        "testFramework": "cw-2",
        "languageVersion": "10.x",
        "languageVersionName": "Node 10.14.0",
        "challengeReferenceIds": [],
        "generated": null,
        "availableTestFrameworks": [
          "cw-2",
          "mocha_bdd",
          "mocha_tdd",
          "karma_bdd",
          "karma_tdd",
          "jest"
        ],
        "totalTestCases": 1,
        "weightedTestCases": 1,
        "tagTestCases": null,
        "hiddenTestCases": 0,
        "exampleTestCases": "Test.expect(a == 1)",
        "setup": "var a = ",
        "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"
        }
      ],
      "similarityMode": [
        {
          "value": "full",
          "text": "Full"
        },
        {
          "value": "no_risk",
          "text": "No risk"
        },
        {
          "value": "none",
          "text": "None"
        }
      ],
      "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": "scala",
            "text": "Scala"
          },
          {
            "value": "r",
            "text": "R"
          },
          {
            "value": "objc",
            "text": "Objc"
          },
          {
            "value": "c",
            "text": "C"
          },
          {
            "value": "go",
            "text": "Go"
          },
          {
            "value": "kotlin",
            "text": "Kotlin"
          },
          {
            "value": "groovy",
            "text": "Groovy"
          },
          {
            "value": "lua",
            "text": "Lua"
          },
          {
            "value": "rust",
            "text": "Rust"
          }
        ]
      }
    },
    "timestamp": "2019-05-21T13:02:49.272-07:00",
    "includes": []
  }
}

Notes

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=5ce58777eea25f7f151b75b2

Headers

Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVjZTU4Nzc3ZWVhMjVmN2YxNTFiNzVhNSIsImlkIjoiNWNlNTg3NzdlZWEyNWY3ZjE1MWI3NWE2Iiwic2VjcmV0IjoiUmxqQU5BPT0ifQ.vUssuWnTYFfnhrxyOwULSlWPV73x27MQ9LEnq8N6CyM

Query Parameters

notable_id=5ce58777eea25f7f151b75b2

Response

Simulated Response

Status

200

Headers

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

Body

{
  "type": "Note",
  "data": [
    {
      "id": "5ce58777eea25f7f151b75bf",
      "body": "Sunt debitis nesciunt corporis sequi explicabo et.",
      "userId": "5ce58777eea25f7f151b75b7",
      "createdAt": null,
      "updatedAt": null,
      "notableId": "5ce58777eea25f7f151b75b2"
    },
    {
      "id": "5ce58777eea25f7f151b75c0",
      "body": "Enim molestias modi ut temporibus aliquid et totam sed.",
      "userId": "5ce58777eea25f7f151b75bd",
      "createdAt": null,
      "updatedAt": null,
      "notableId": "5ce58777eea25f7f151b75b2"
    }
  ],
  "currentPage": 1,
  "totalPages": 1,
  "totalCount": 2,
  "meta": {
    "timestamp": "2019-05-22T10:31:35.955-07: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/5ce58778eea25f7f151b75fb

Headers

Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVjZTU4Nzc4ZWVhMjVmN2YxNTFiNzVlMSIsImlkIjoiNWNlNTg3NzhlZWEyNWY3ZjE1MWI3NWUyIiwic2VjcmV0IjoielNXa213PT0ifQ._3zZaVB66cLyNJgPS8N9mmU50bLavPjGwTUw1DAu_dk

Response

Simulated Response

Status

200

Headers

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

Body

{
  "id": "5ce58778eea25f7f151b75fb",
  "type": "Note",
  "data": {
    "id": "5ce58778eea25f7f151b75fb",
    "body": "Et aut suscipit veritatis qui et praesentium autem nam.",
    "userId": "5ce58778eea25f7f151b75f3",
    "createdAt": null,
    "updatedAt": null,
    "notableId": "5ce58778eea25f7f151b75ee"
  },
  "meta": {
    "timestamp": "2019-05-22T10:31:36.582-07: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.eyJpZGVudGl0eV9pZCI6IjVjZTU4Nzc4ZWVhMjVmN2YxNTFiNzVmZCIsImlkIjoiNWNlNTg3NzhlZWEyNWY3ZjE1MWI3NWZlIiwic2VjcmV0IjoiT3haWTdnPT0ifQ.8Xm1nVecyR9wkYyLIaQSD7sBqn07fqOYYcwoYFHapIk

Body

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

Response

Simulated Response

Status

200

Headers

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

Body

{
  "id": "5ce58778eea25f7f151b7619",
  "type": "Note",
  "data": {
    "id": "5ce58778eea25f7f151b7619",
    "body": "body",
    "userId": "5ce58778eea25f7f151b75fe",
    "createdAt": "2019-05-22T17:31:36.904Z",
    "updatedAt": "2019-05-22T17:31:36.904Z",
    "notableId": "5ce58778eea25f7f151b760a"
  },
  "meta": {
    "timestamp": "2019-05-22T10:31:36.907-07:00",
    "includes": []
  }
}

Update

Endpoint

PUT /v1/notes/:id

Parameters

Name Description
data.foo required data.foo

Request

Route

PUT /v1/notes/5ce58779eea25f7f151b7672

Headers

Content-Type: application/json
Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVjZTU4Nzc5ZWVhMjVmN2YxNTFiNzY1OCIsImlkIjoiNWNlNTg3NzllZWEyNWY3ZjE1MWI3NjU5Iiwic2VjcmV0IjoiWWp5eXdBPT0ifQ.VbgHoAIrXDslXRpoQYbJbRxDczYCH9MLehICUFILkIY

Body

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

Response

Simulated Response

Status

200

Headers

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

Body

{
  "id": "5ce58779eea25f7f151b7672",
  "type": "Note",
  "data": {
    "id": "5ce58779eea25f7f151b7672",
    "body": "foo",
    "userId": "5ce58779eea25f7f151b766a",
    "createdAt": null,
    "updatedAt": "2019-05-22T17:31:37.878Z",
    "notableId": "5ce58779eea25f7f151b7665"
  },
  "meta": {
    "timestamp": "2019-05-22T10:31:37.881-07:00",
    "includes": []
  }
}

Delete

Endpoint

DELETE /v1/notes/:id

Request

Route

DELETE /v1/notes/5ce5877aeea25f7f151b768e

Headers

Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVjZTU4Nzc5ZWVhMjVmN2YxNTFiNzY3NCIsImlkIjoiNWNlNTg3NzllZWEyNWY3ZjE1MWI3Njc1Iiwic2VjcmV0IjoiMG5MRG53PT0ifQ.ZnYn9IZ-q6tVmVSMRn-B2OA-T23A13AEri4hZOQpxAM
Content-Type: application/x-www-form-urlencoded

Response

Simulated Response

Status

204

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=5ce4597deea25f61d356e380

Headers

Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVjZTQ1OTdkZWVhMjVmNjFkMzU2ZTM4MSIsImlkIjoiNWNlNDU5N2RlZWEyNWY2MWQzNTZlMzgyIiwic2VjcmV0IjoiKytZWExRPT0ifQ.2ZNj3QyaCUgBunjVTRfd71yW9Ae1Cks6nP6BiCSb_NE

Query Parameters

challenge_id=5ce4597deea25f61d356e380

Response

Simulated Response

Status

200

Headers

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

Body

{
  "type": "QuizMultipleChoiceQuestion",
  "data": [
    {
      "id": "5ce4597eeea25f61d356e385",
      "$type": "QuizMultipleChoiceQuestion",
      "prompt": "Eum vitae id similique error mollitia rerum dolorem. Possimus laborum est omnis alias consequuntur. Eum dolor neque illo quia sit minima consequuntur. Accusantium qui sunt unde. Est in qui.",
      "position": null,
      "weight": 1.0,
      "allOrNothing": false,
      "categories": null,
      "timeLimitSec": null,
      "timeLimitStartSec": null,
      "options": {},
      "choices": [
        "True",
        "False"
      ],
      "maxSelections": null,
      "answers": [
        0
      ]
    },
    {
      "id": "5ce4597eeea25f61d356e386",
      "$type": "QuizTextQuestion",
      "prompt": "Ut sed beatae repellendus maiores ab. Quibusdam commodi molestiae quia blanditiis ab. Voluptatum consequatur nesciunt animi ipsum ullam quasi.",
      "position": null,
      "weight": 1.0,
      "allOrNothing": false,
      "categories": null,
      "timeLimitSec": null,
      "timeLimitStartSec": null,
      "options": {},
      "minCharacters": 5,
      "maxCharacters": 200,
      "defaultValue": "",
      "matchers": null
    },
    {
      "id": "5ce4597eeea25f61d356e387",
      "$type": "QuizWeightedChoiceQuestion",
      "prompt": "Sunt eos temporibus vitae. Nihil enim quia deleniti qui alias exercitationem. Quo nemo est necessitatibus recusandae qui.",
      "position": null,
      "weight": 1.0,
      "allOrNothing": false,
      "categories": null,
      "timeLimitSec": null,
      "timeLimitStartSec": null,
      "options": {
        "automax": true
      },
      "choices": [
        {
          "label": "Ruby",
          "value": 1.0
        },
        {
          "label": "Python",
          "value": 0.0
        },
        {
          "label": "Php",
          "value": -1.0
        },
        {
          "label": "JavaScript",
          "value": 2.0
        },
        {
          "label": "TypeScript",
          "value": 2.0
        }
      ],
      "maxSelections": 5,
      "maxSum": 5.0,
      "weightedScoring": true,
      "language": "rust"
    }
  ],
  "currentPage": 1,
  "totalPages": 1,
  "totalCount": 3,
  "meta": {
    "timestamp": "2019-05-21T13:03:10.106-07: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/5ce4597eeea25f61d356e3af

Headers

Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVjZTQ1OTdlZWVhMjVmNjFkMzU2ZTNhYiIsImlkIjoiNWNlNDU5N2VlZWEyNWY2MWQzNTZlM2FjIiwic2VjcmV0IjoidGltdlZnPT0ifQ.SkBgVLPjvWBlRKMxX_rYK-cR7c496cQuHb5suqNRomA

Response

Simulated Response

Status

200

Headers

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

Body

{
  "id": "5ce4597eeea25f61d356e3af",
  "type": "QuizMultipleChoiceQuestion",
  "data": {
    "id": "5ce4597eeea25f61d356e3af",
    "$type": "QuizMultipleChoiceQuestion",
    "prompt": "Impedit nulla vero aliquam unde fugit. In fuga laudantium nulla eaque similique aut. In officia cupiditate. Ea ut laudantium. Odit amet laudantium cumque voluptas.",
    "position": null,
    "weight": 1.0,
    "allOrNothing": false,
    "categories": null,
    "timeLimitSec": null,
    "timeLimitStartSec": null,
    "options": {},
    "choices": [
      "True",
      "False"
    ],
    "maxSelections": null,
    "answers": [
      0
    ]
  },
  "meta": {
    "timestamp": "2019-05-21T13:03:10.271-07: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.language A language tag for this question.
data.answers A QuizMulitipleChoiceQuestion only field
data.choices A QuizMultipleChoiceQuestion/QuizWeightedChoiceQuestion only field
data.max_selections A QuizMultipleChoiceQuestion/QuizWeightedChoiceQuestion only field
data.max_sum A QuizWeightedChoiceQuestion only field
data.sorted A QuizMultipleChoiceQuestion/ 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.eyJpZGVudGl0eV9pZCI6IjVjZTQ1OTdlZWVhMjVmNjFkMzU2ZTNjMCIsImlkIjoiNWNlNDU5N2VlZWEyNWY2MWQzNTZlM2MxIiwic2VjcmV0IjoiRzRsVjl3PT0ifQ.dRASDCVGJJSAjJxfFay0htO5yLN-_En15XFQo2Itq1c

Body

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

Response

Simulated Response

Status

200

Headers

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

Body

{
  "id": "5ce4597eeea25f61d356e3cc",
  "type": "QuizMultipleChoiceQuestion",
  "data": {
    "id": "5ce4597eeea25f61d356e3cc",
    "$type": "QuizMultipleChoiceQuestion",
    "prompt": "test multiple choice question",
    "position": 4,
    "weight": 1.0,
    "allOrNothing": false,
    "categories": null,
    "timeLimitSec": null,
    "timeLimitStartSec": null,
    "options": {},
    "choices": [
      "True",
      "False"
    ],
    "maxSelections": 1,
    "answers": [
      1
    ]
  },
  "meta": {
    "timestamp": "2019-05-21T13:03:10.426-07: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 QuizMultipleChoiceQuestion only field
data.choices A QuizMultipleChoiceQuestion/QuizWeightedChoiceQuestion only field
data.max_selections A QuizMultipleChoiceQuestion/QuizWeightedChoiceQuestion only field
data.max_sum A QuizWeightedChoiceQuestion only field
data.sorted A QuizMultipleChoiceQuestion 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/5ce4597eeea25f61d356e3da

Headers

Content-Type: application/json
Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVjZTQ1OTdlZWVhMjVmNjFkMzU2ZTNkNiIsImlkIjoiNWNlNDU5N2VlZWEyNWY2MWQzNTZlM2Q3Iiwic2VjcmV0IjoiZ242Q0N3PT0ifQ.k4Boo68hnnfR6gpQbd1QmLZr5EzcY71yafWoffwCtXw

Body

{
  "data": {
    "prompt": "abcd",
    "choices": [
      {
        "label": "Red",
        "value": 0
      },
      {
        "label": "Yellow",
        "value": 1
      },
      {
        "label": "Green",
        "value": 1
      }
    ]
  }
}

Response

Simulated Response

Status

200

Headers

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

Body

{
  "id": "5ce4597eeea25f61d356e3da",
  "type": "QuizMultipleChoiceQuestion",
  "data": {
    "id": "5ce4597eeea25f61d356e3da",
    "$type": "QuizMultipleChoiceQuestion",
    "prompt": "abcd",
    "position": 3,
    "weight": 1.0,
    "allOrNothing": false,
    "categories": null,
    "timeLimitSec": null,
    "timeLimitStartSec": null,
    "options": {},
    "choices": [
      "Red",
      "Yellow",
      "Green"
    ],
    "maxSelections": 1,
    "answers": [
      1,
      2
    ]
  },
  "meta": {
    "timestamp": "2019-05-21T13:03:10.573-07:00",
    "includes": []
  }
}

Delete

Endpoint

DELETE /v1/quiz_questions/:id

Request

Route

DELETE /v1/quiz_questions/5ce4597eeea25f61d356e3ef

Headers

Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVjZTQ1OTdlZWVhMjVmNjFkMzU2ZTNlYiIsImlkIjoiNWNlNDU5N2VlZWEyNWY2MWQzNTZlM2VjIiwic2VjcmV0IjoiZTVFMEpBPT0ifQ.rZC3V_lA62iX7QsKtIViuS4Ow5hP3gqX39QZ4BOMHoA
Content-Type: application/x-www-form-urlencoded

Response

Simulated Response

Status

204

Review Qualities

List

Endpoint

GET /v1/review_qualities

Parameters

Name Description
includes Valid values are:

Request

Route

GET /v1/review_qualities

Headers

Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVjZTQ1OTgwZWVhMjVmNjFkMzU2ZTRkNCIsImlkIjoiNWNlNDU5ODBlZWEyNWY2MWQzNTZlNGQ1Iiwic2VjcmV0Ijoib05ucnVRPT0ifQ.PHBJQw-2QH2_Gt3iXFILpiZ0nimlJtrkhbe4f1mBljo

Response

Simulated Response

Status

200

Headers

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

Body

{
  "type": "ReviewQuality",
  "data": [
    {
      "id": "5ce45980eea25f61d356e4df",
      "teamId": "5ce45980eea25f61d356e4d8",
      "active": true,
      "positive": "Telekinesis",
      "negative": "Density Control",
      "inLibrary": false
    }
  ],
  "currentPage": 1,
  "totalPages": 1,
  "totalCount": 1,
  "meta": {
    "timestamp": "2019-05-21T13:03:12.373-07:00",
    "includes": []
  }
}

Get

Endpoint

GET /v1/review_qualities/:id

Request

Route

GET /v1/review_qualities/5ce45980eea25f61d356e4eb

Headers

Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVjZTQ1OTgwZWVhMjVmNjFkMzU2ZTRlMCIsImlkIjoiNWNlNDU5ODBlZWEyNWY2MWQzNTZlNGUxIiwic2VjcmV0IjoiUXFacXZ3PT0ifQ.chDCaXF9nsl3kbF1PBKa5u_4UvpKAfB5lXUZKXpF-F4

Response

Simulated Response

Status

200

Headers

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

Body

{
  "id": "5ce45980eea25f61d356e4eb",
  "type": "ReviewQuality",
  "data": {
    "id": "5ce45980eea25f61d356e4eb",
    "teamId": "5ce45980eea25f61d356e4e4",
    "active": true,
    "positive": "Fire Resistance",
    "negative": "Energy Resistance",
    "inLibrary": false
  },
  "meta": {
    "timestamp": "2019-05-21T13:03:12.525-07:00",
    "includes": []
  }
}

Create

Endpoint

POST /v1/review_qualities

Parameters

Name Description
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.eyJpZGVudGl0eV9pZCI6IjVjZTQ1OTgwZWVhMjVmNjFkMzU2ZTRlYyIsImlkIjoiNWNlNDU5ODBlZWEyNWY2MWQzNTZlNGVkIiwic2VjcmV0IjoiUWh4RjNBPT0ifQ.MbrcTk29ztzA_YHKdBR9UBAMwSxI6FhVPXtGfpsNTTY

Body

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

Response

Simulated Response

Status

200

Headers

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

Body

{
  "id": "5ce45980eea25f61d356e4f7",
  "type": "ReviewQuality",
  "data": {
    "id": "5ce45980eea25f61d356e4f7",
    "teamId": "5ce45980eea25f61d356e4f0",
    "active": true,
    "positive": "Great Implementation",
    "negative": "Poor Implementation",
    "inLibrary": false
  },
  "meta": {
    "timestamp": "2019-05-21T13:03:12.715-07: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/5ce45980eea25f61d356e503

Headers

Content-Type: application/json
Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVjZTQ1OTgwZWVhMjVmNjFkMzU2ZTRmOCIsImlkIjoiNWNlNDU5ODBlZWEyNWY2MWQzNTZlNGY5Iiwic2VjcmV0IjoicHl4Kzd3PT0ifQ.X3UIlNQvPO8QVZsdrLt3vWd4j7Fx64461akid5fCG20

Body

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

Response

Simulated Response

Status

200

Headers

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

Body

{
  "id": "5ce45980eea25f61d356e503",
  "type": "ReviewQuality",
  "data": {
    "id": "5ce45980eea25f61d356e503",
    "teamId": "5ce45980eea25f61d356e4fc",
    "active": true,
    "positive": "positive",
    "negative": "Biokinesis",
    "inLibrary": false
  },
  "meta": {
    "timestamp": "2019-05-21T13:03:12.890-07:00",
    "includes": []
  }
}

Delete

Endpoint

DELETE /v1/review_qualities/:id

Request

Route

DELETE /v1/review_qualities/5ce45981eea25f61d356e50f

Headers

Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVjZTQ1OTgwZWVhMjVmNjFkMzU2ZTUwNCIsImlkIjoiNWNlNDU5ODBlZWEyNWY2MWQzNTZlNTA1Iiwic2VjcmV0IjoiUnVlSUdnPT0ifQ.AMucDB9yRWEeVw-48Pc_uaa3XfYm77EBrZUuBHVvF64
Content-Type: application/x-www-form-urlencoded

Response

Simulated Response

Status

204

Solution Reviews

List

Endpoint

GET /v1/solution_reviews

Parameters

Name Description
includes Valid values are:

Request

Route

GET /v1/solution_reviews

Headers

Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVjZTQ1OTgzZWVhMjVmNjFkMzU2ZTVmMyIsImlkIjoiNWNlNDU5ODNlZWEyNWY2MWQzNTZlNWY0Iiwic2VjcmV0IjoiYU8vV293PT0ifQ.t2AyLjcliSEYiB_kMXEgI3a9yFgDfHscRF9d8m9tZiE

Response

Simulated Response

Status

200

Headers

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

Body

{
  "type": "SolutionReview",
  "data": [
    {
      "id": "5ce45983eea25f61d356e611",
      "reviewedById": "5ce45983eea25f61d356e5f4",
      "reviewedByStaff": null,
      "assessmentId": "5ce45982eea25f61d356e5e6",
      "assessmentResultId": "5ce45983eea25f61d356e5ee",
      "teamCandidateId": "5ce45983eea25f61d356e5ef",
      "candidateId": "5ce45982eea25f61d356e5dc",
      "challengeId": "5ce45982eea25f61d356e5ea",
      "solutionId": "5ce45982eea25f61d356e5da",
      "rating": 3,
      "feedback": null,
      "positiveQualityIds": [],
      "negativeQualityIds": [],
      "assessmentResultReviewId": "5ce45983eea25f61d356e60d"
    }
  ],
  "currentPage": 1,
  "totalPages": 1,
  "totalCount": 1,
  "meta": {
    "timestamp": "2019-05-21T13:03:15.355-07:00",
    "includes": []
  }
}

Get

Endpoint

GET /v1/solution_reviews/:id

Request

Route

GET /v1/solution_reviews/5ce45983eea25f61d356e651

Headers

Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVjZTQ1OTgzZWVhMjVmNjFkMzU2ZTYzMyIsImlkIjoiNWNlNDU5ODNlZWEyNWY2MWQzNTZlNjM0Iiwic2VjcmV0IjoiK3ZPUXdBPT0ifQ.PI9DiPPl7QVx2aIlli3_3MVrUmbRhazr_Gsdpo8tnvk

Response

Simulated Response

Status

200

Headers

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

Body

{
  "id": "5ce45983eea25f61d356e651",
  "type": "SolutionReview",
  "data": {
    "id": "5ce45983eea25f61d356e651",
    "reviewedById": "5ce45983eea25f61d356e634",
    "reviewedByStaff": null,
    "assessmentId": "5ce45983eea25f61d356e626",
    "assessmentResultId": "5ce45983eea25f61d356e62e",
    "teamCandidateId": "5ce45983eea25f61d356e62f",
    "candidateId": "5ce45983eea25f61d356e61c",
    "challengeId": "5ce45983eea25f61d356e62a",
    "solutionId": "5ce45983eea25f61d356e61a",
    "rating": 3,
    "feedback": null,
    "positiveQualityIds": [],
    "negativeQualityIds": [],
    "assessmentResultReviewId": "5ce45983eea25f61d356e64d"
  },
  "meta": {
    "timestamp": "2019-05-21T13:03:15.920-07: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.eyJpZGVudGl0eV9pZCI6IjVjZTQ1OTg0ZWVhMjVmNjFkMzU2ZTY3MyIsImlkIjoiNWNlNDU5ODRlZWEyNWY2MWQzNTZlNjc0Iiwic2VjcmV0Ijoic3ZGVk1RPT0ifQ.1hRTQ72Q0kflg3ewWWfjOohnINpe5jmFBavuZytSUvw

Body

{
  "data": {
    "feedback": "",
    "solution_id": "5ce45984eea25f61d356e65a",
    "assessment_result_review_id": "5ce45984eea25f61d356e676"
  }
}

Response

Simulated Response

Status

200

Headers

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

Body

{
  "id": "5ce45984eea25f61d356e677",
  "type": "SolutionReview",
  "data": {
    "id": "5ce45984eea25f61d356e677",
    "reviewedById": "5ce45984eea25f61d356e674",
    "reviewedByStaff": false,
    "assessmentId": "5ce45984eea25f61d356e666",
    "assessmentResultId": "5ce45984eea25f61d356e66e",
    "teamCandidateId": "5ce45984eea25f61d356e66f",
    "candidateId": "5ce45984eea25f61d356e65c",
    "challengeId": "5ce45984eea25f61d356e66a",
    "solutionId": "5ce45984eea25f61d356e65a",
    "rating": null,
    "feedback": "",
    "positiveQualityIds": [],
    "negativeQualityIds": [],
    "assessmentResultReviewId": "5ce45984eea25f61d356e676"
  },
  "meta": {
    "timestamp": "2019-05-21T13:03:16.356-07:00",
    "includes": []
  }
}

Update

Endpoint

PUT /v1/solution_reviews/:id

Parameters

Name Description
data.feedback required data.feedback

Request

Route

PUT /v1/solution_reviews/5ce45984eea25f61d356e6b7

Headers

Content-Type: application/json
Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVjZTQ1OTg0ZWVhMjVmNjFkMzU2ZTY5OSIsImlkIjoiNWNlNDU5ODRlZWEyNWY2MWQzNTZlNjlhIiwic2VjcmV0IjoiWklhY0hRPT0ifQ.CtVtTSQpGlswO0ZkZWgoVDX3oRF_F6AvYnTQ9lRPoBw

Body

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

Response

Simulated Response

Status

200

Headers

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

Body

{
  "id": "5ce45984eea25f61d356e6b7",
  "type": "SolutionReview",
  "data": {
    "id": "5ce45984eea25f61d356e6b7",
    "reviewedById": "5ce45984eea25f61d356e69a",
    "reviewedByStaff": false,
    "assessmentId": "5ce45984eea25f61d356e68c",
    "assessmentResultId": "5ce45984eea25f61d356e694",
    "teamCandidateId": "5ce45984eea25f61d356e695",
    "candidateId": "5ce45984eea25f61d356e682",
    "challengeId": "5ce45984eea25f61d356e690",
    "solutionId": "5ce45984eea25f61d356e680",
    "rating": 3,
    "feedback": "feedback",
    "positiveQualityIds": [],
    "negativeQualityIds": [],
    "assessmentResultReviewId": "5ce45984eea25f61d356e6b3"
  },
  "meta": {
    "timestamp": "2019-05-21T13:03:16.954-07:00",
    "includes": []
  }
}

Delete

Endpoint

DELETE /v1/solution_reviews/:id

Request

Route

DELETE /v1/solution_reviews/5ce45985eea25f61d356e6f7

Headers

Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVjZTQ1OTg1ZWVhMjVmNjFkMzU2ZTZkOSIsImlkIjoiNWNlNDU5ODVlZWEyNWY2MWQzNTZlNmRhIiwic2VjcmV0IjoiekZENFVRPT0ifQ.RKyUZ3z7WyErylHEYbbCpHlTSqgLwDA1xdhqdJYfe24
Content-Type: application/x-www-form-urlencoded

Response

Simulated Response

Status

204

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]=5ce45985eea25f61d356e727

Headers

Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVjZTQ1OTg1ZWVhMjVmNjFkMzU2ZTczNCIsImlkIjoiNWNlNDU5ODVlZWEyNWY2MWQzNTZlNzM1Iiwic2VjcmV0IjoiYm1GKzZ3PT0ifQ.Th5M8wX3iycTlMSFvlaGa540Of9STaKVfV_-F6B9b4Q

Query Parameters

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

Response

Simulated Response

Status

200

Headers

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

Body

{
  "type": "CodeSolution",
  "data": [
    {
      "id": "5ce45985eea25f61d356e72c",
      "$type": "CodeSolution",
      "estimatedTime": null,
      "createdAt": "2019-05-21T20:02:17.922Z",
      "challengeId": "5ce45985eea25f61d356e72d",
      "assessmentResultId": "5ce45985eea25f61d356e728",
      "assessmentId": "5ce45985eea25f61d356e721",
      "candidateId": "5ce45985eea25f61d356e726",
      "teamCandidateId": "5ce45985eea25f61d356e727",
      "teamId": "5ce45985eea25f61d356e71b",
      "clonedFromId": null,
      "lastHeartbeat": null,
      "accumulatedSeconds": 0,
      "candidateNotes": null,
      "language": "javascript",
      "firstTestCaseSolvedAt": "2019-05-21T20:03:17.922Z",
      "completedAt": "2019-05-21T20:03:17.922Z",
      "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,
      "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,
      "sampleTestCasesEnabled": true,
      "revisionCount": 0,
      "score": 0.0
    }
  ],
  "currentPage": 1,
  "totalPages": 1,
  "totalCount": 1,
  "meta": {
    "timestamp": "2019-05-21T13:03:17.995-07:00",
    "includes": []
  }
}

Get

Endpoint

GET /v1/solutions/:id

Request

Route

GET /v1/solutions/5ce45987eea25f61d356e800

Headers

Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVjZTQ1OTg3ZWVhMjVmNjFkMzU2ZTgwMSIsImlkIjoiNWNlNDU5ODdlZWEyNWY2MWQzNTZlODAyIiwic2VjcmV0IjoiRG50aHlnPT0ifQ.cCrknllb-ehd7ra6iHPCj1GEEOsvMkr3iGf_lM2WW9o

Response

Simulated Response

Status

200

Headers

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

Body

{
  "id": "5ce45987eea25f61d356e800",
  "type": "CodeSolution",
  "data": {
    "id": "5ce45987eea25f61d356e800",
    "$type": "CodeSolution",
    "estimatedTime": null,
    "createdAt": "2019-05-21T20:02:19.693Z",
    "challengeId": "5ce45987eea25f61d356e810",
    "assessmentResultId": "5ce45987eea25f61d356e814",
    "assessmentId": "5ce45987eea25f61d356e80c",
    "candidateId": "5ce45987eea25f61d356e802",
    "teamCandidateId": "5ce45987eea25f61d356e803",
    "teamId": "5ce45987eea25f61d356e7fa",
    "clonedFromId": null,
    "lastHeartbeat": null,
    "accumulatedSeconds": 0,
    "candidateNotes": null,
    "language": "javascript",
    "firstTestCaseSolvedAt": "2019-05-21T20:03:19.693Z",
    "completedAt": "2019-05-21T20:03:19.693Z",
    "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,
    "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,
    "sampleTestCasesEnabled": true,
    "revisionCount": 0,
    "score": 100.0
  },
  "meta": {
    "timestamp": "2019-05-21T13:03:19.863-07: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.eyJpZGVudGl0eV9pZCI6IjVjZTQ1OTg4ZWVhMjVmNjFkMzU2ZTgyZSIsImlkIjoiNWNlNDU5ODhlZWEyNWY2MWQzNTZlODJmIiwic2VjcmV0IjoiVlJ6Tk1RPT0ifQ.jPfBz_E3CaRdUsTGbs32Ond_e2AYTGzW5Rjgbvp3EaE

Body

{
  "data": {
    "$type": "CodeSolution",
    "assessment_result_id": "5ce45988eea25f61d356e82d",
    "challenge_id": "5ce45987eea25f61d356e825",
    "language": "javascript"
  }
}

Response

Simulated Response

Status

200

Headers

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

Body

{
  "id": "5ce45988eea25f61d356e834",
  "type": "CodeSolution",
  "data": {
    "id": "5ce45988eea25f61d356e834",
    "$type": "CodeSolution",
    "estimatedTime": null,
    "createdAt": "2019-05-21T20:03:20.150Z",
    "challengeId": "5ce45987eea25f61d356e825",
    "assessmentResultId": "5ce45988eea25f61d356e82d",
    "assessmentId": "5ce45987eea25f61d356e821",
    "candidateId": "5ce45988eea25f61d356e82f",
    "teamCandidateId": "5ce45988eea25f61d356e830",
    "teamId": "5ce45987eea25f61d356e81b",
    "clonedFromId": null,
    "lastHeartbeat": null,
    "accumulatedSeconds": 0,
    "candidateNotes": null,
    "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,
    "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,
    "sampleTestCasesEnabled": true,
    "revisionCount": 0,
    "score": 0.0
  },
  "meta": {
    "timestamp": "2019-05-21T13:03:20.165-07: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/5ce45988eea25f61d356e83d

Headers

Content-Type: application/json
Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVjZTQ1OTg4ZWVhMjVmNjFkMzU2ZTgzZSIsImlkIjoiNWNlNDU5ODhlZWEyNWY2MWQzNTZlODNmIiwic2VjcmV0IjoieW1OSWJBPT0ifQ.UHGQEtUSJ4LN5VGJQRuPFjoPORewQVgOgjMO0MYBwZM

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": "5ce45988eea25f61d356e83d",
  "type": "CodeSolution",
  "data": {
    "id": "5ce45988eea25f61d356e83d",
    "$type": "CodeSolution",
    "estimatedTime": null,
    "createdAt": "2019-05-21T20:02:20.303Z",
    "challengeId": "5ce45988eea25f61d356e84d",
    "assessmentResultId": "5ce45988eea25f61d356e851",
    "assessmentId": "5ce45988eea25f61d356e849",
    "candidateId": "5ce45988eea25f61d356e83f",
    "teamCandidateId": "5ce45988eea25f61d356e840",
    "teamId": "5ce45988eea25f61d356e837",
    "clonedFromId": null,
    "lastHeartbeat": null,
    "accumulatedSeconds": 0,
    "candidateNotes": null,
    "language": "javascript",
    "firstTestCaseSolvedAt": "2019-05-21T20:03:20.304Z",
    "completedAt": "2019-05-21T20:03:20.304Z",
    "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.001,
    "completedIn": 60.001,
    "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,
    "sampleTestCasesEnabled": true,
    "revisionCount": 2,
    "score": 100.0,
    "revisions": [
      {
        "id": "5ce45988eea25f61d356e856",
        "createdAt": "2019-05-21T20:02:20.303Z",
        "number": 0,
        "message": null,
        "tag": null,
        "revisedAttributes": {
          "output": [
            {
              "t": "passed",
              "v": "Test Passed"
            }
          ],
          "wall_time": 40,
          "weighted": null,
          "specs": null,
          "assertions": null,
          "tags": null,
          "passed_test_cases": 1,
          "weighted_passed_test_cases": 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,
          "code": "var a = 1;",
          "test_cases": "Test.assertEquals(a, 1)",
          "language": "javascript",
          "attempts": 1,
          "first_test_case_solved_at": "2019-05-21T20:03:20.304Z",
          "completed_at": "2019-05-21T20:03:20.304Z",
          "reopened_count": 0
        }
      },
      {
        "id": "5ce45988eea25f61d356e857",
        "createdAt": "2019-05-21T20:03:20.491Z",
        "number": 1,
        "message": null,
        "tag": "paste",
        "revisedAttributes": {
          "code": "var b = a = 1;"
        }
      }
    ]
  },
  "meta": {
    "timestamp": "2019-05-21T13:03:20.512-07: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.eyJpZGVudGl0eV9pZCI6IjVjZTQ1OTg5ZWVhMjVmNjFkMzU2ZTg5OCIsImlkIjoiNWNlNDU5ODllZWEyNWY2MWQzNTZlODk5Iiwic2VjcmV0IjoiMUVvNER3PT0ifQ.Ey6XxLv5_DFo9BtIf2zI9kaQPDMYcJ-E6MQKIADD3Fo

Response

Simulated Response

Status

200

Headers

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

Body

{
  "type": "TeamCandidate",
  "data": [
    {
      "id": "5ce45988eea25f61d356e87b",
      "candidateId": "5ce45988eea25f61d356e87a",
      "teamId": "5ce45988eea25f61d356e87e",
      "state": "started",
      "demoData": false,
      "prevState": null,
      "assessmentIds": [
        "5ce45989eea25f61d356e884",
        "5ce45989eea25f61d356e890"
      ],
      "assessmentResultIds": [
        "5ce45989eea25f61d356e88c",
        "5ce45989eea25f61d356e895"
      ],
      "blinding": "blind_reviewers",
      "createdAt": "2019-05-21T20:03:20.986Z",
      "updatedAt": "2019-05-21T20:03:21.157Z",
      "decidedAt": null,
      "invitedAt": null,
      "interactSessions": 0,
      "stateUpdatedAt": "2019-05-21T20:03:20.985Z",
      "testTeamMember": false,
      "assignedTeamMemberIds": [],
      "labels": null,
      "archived": false,
      "firstName": "Joe",
      "lastName": "Smith616",
      "anonymousName": "Lilac Anteater",
      "email": "[email protected]",
      "name": "Joe Smith616",
      "isBlinded": false,
      "stateLabel": "Assessment Started",
      "angelId": null,
      "stateTransitions": [
        "idle",
        "invited",
        "started",
        "submitted",
        "approved",
        "rejected",
        "archived"
      ],
      "risks": null,
      "assessmentsRecap": {
        "id": "5ce45989eea25f61d356e88e",
        "subjects": [
          {
            "id": "5ce45989eea25f61d356e88f",
            "assessmentResultId": "5ce45989eea25f61d356e88c",
            "assessmentId": "5ce45989eea25f61d356e884",
            "state": "started"
          },
          {
            "id": "5ce45989eea25f61d356e897",
            "assessmentResultId": "5ce45989eea25f61d356e895",
            "assessmentId": "5ce45989eea25f61d356e890",
            "state": "started"
          }
        ]
      }
    }
  ],
  "currentPage": 1,
  "totalPages": 1,
  "totalCount": 1,
  "meta": {
    "timestamp": "2019-05-21T13:03:21.206-07: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/5ce4598aeea25f61d356e940

Headers

Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVjZTQ1OThiZWVhMjVmNjFkMzU2ZTk1ZCIsImlkIjoiNWNlNDU5OGJlZWEyNWY2MWQzNTZlOTVlIiwic2VjcmV0IjoiMGtnVTFBPT0ifQ.tRZ5jGfIJSTyo_Zx9S-NbMw7pcuwHbTe28SGQxaSpjs

Response

Simulated Response

Status

200

Headers

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

Body

{
  "id": "5ce4598aeea25f61d356e940",
  "type": "TeamCandidate",
  "data": {
    "id": "5ce4598aeea25f61d356e940",
    "candidateId": "5ce4598aeea25f61d356e93f",
    "teamId": "5ce4598aeea25f61d356e943",
    "state": "started",
    "demoData": false,
    "prevState": null,
    "assessmentIds": [
      "5ce4598aeea25f61d356e949",
      "5ce4598aeea25f61d356e955"
    ],
    "assessmentResultIds": [
      "5ce4598aeea25f61d356e951",
      "5ce4598beea25f61d356e95a"
    ],
    "blinding": "blind_reviewers",
    "createdAt": "2019-05-21T20:03:22.830Z",
    "updatedAt": "2019-05-21T20:03:23.023Z",
    "decidedAt": null,
    "invitedAt": null,
    "interactSessions": 0,
    "stateUpdatedAt": "2019-05-21T20:03:22.830Z",
    "testTeamMember": false,
    "assignedTeamMemberIds": [],
    "labels": null,
    "archived": false,
    "firstName": "Joe",
    "lastName": "Smith633",
    "anonymousName": "Cerulean Toucan",
    "email": "[email protected]",
    "name": "Joe Smith633",
    "isBlinded": false,
    "stateLabel": "Assessment Started",
    "angelId": null,
    "stateTransitions": [
      "idle",
      "invited",
      "started",
      "submitted",
      "approved",
      "rejected",
      "archived"
    ],
    "risks": null,
    "assessmentsRecap": {
      "id": "5ce4598aeea25f61d356e953",
      "subjects": [
        {
          "id": "5ce4598aeea25f61d356e954",
          "assessmentResultId": "5ce4598aeea25f61d356e951",
          "assessmentId": "5ce4598aeea25f61d356e949",
          "state": "started"
        },
        {
          "id": "5ce4598beea25f61d356e95c",
          "assessmentResultId": "5ce4598beea25f61d356e95a",
          "assessmentId": "5ce4598aeea25f61d356e955",
          "state": "started"
        }
      ]
    }
  },
  "meta": {
    "enums": {
      "blinding": [
        {
          "value": "none",
          "text": "None"
        },
        {
          "value": "blind_reviewers",
          "text": "Blind reviewers"
        },
        {
          "value": "restricted",
          "text": "Restricted"
        },
        {
          "value": "team",
          "text": "Team"
        }
      ],
      "state": [
        {
          "value": "idle",
          "text": "Idle"
        },
        {
          "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": "2019-05-21T13:03:23.069-07: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/5ce4598beea25f61d356e996

Headers

Content-Type: application/json
Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVjZTQ1OThiZWVhMjVmNjFkMzU2ZTliMyIsImlkIjoiNWNlNDU5OGJlZWEyNWY2MWQzNTZlOWI0Iiwic2VjcmV0IjoiR3R2S0FnPT0ifQ.1sflHftKz2mAAumoTFS_xMcB7S7EXqXXbA--leEq3jo

Body

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

Response

Simulated Response

Status

200

Headers

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

Body

{
  "id": "5ce4598beea25f61d356e996",
  "type": "TeamCandidate",
  "data": {
    "id": "5ce4598beea25f61d356e996",
    "candidateId": "5ce4598beea25f61d356e995",
    "teamId": "5ce4598beea25f61d356e999",
    "state": "started",
    "demoData": false,
    "prevState": null,
    "assessmentIds": [
      "5ce4598beea25f61d356e99f",
      "5ce4598beea25f61d356e9ab"
    ],
    "assessmentResultIds": [
      "5ce4598beea25f61d356e9a7",
      "5ce4598beea25f61d356e9b0"
    ],
    "blinding": "blind_reviewers",
    "createdAt": "2019-05-21T20:03:23.795Z",
    "updatedAt": "2019-05-21T20:03:24.006Z",
    "decidedAt": null,
    "invitedAt": null,
    "interactSessions": 0,
    "stateUpdatedAt": "2019-05-21T20:03:23.795Z",
    "testTeamMember": false,
    "assignedTeamMemberIds": [],
    "labels": [],
    "archived": false,
    "firstName": "Test",
    "lastName": "Time",
    "anonymousName": "Mahogany Puma",
    "email": "[email protected]",
    "name": "Test Time",
    "isBlinded": false,
    "stateLabel": "Assessment Started",
    "angelId": null,
    "stateTransitions": [
      "idle",
      "invited",
      "started",
      "submitted",
      "approved",
      "rejected",
      "archived"
    ],
    "risks": null,
    "assessmentsRecap": {
      "id": "5ce4598beea25f61d356e9a9",
      "subjects": [
        {
          "id": "5ce4598beea25f61d356e9aa",
          "assessmentResultId": "5ce4598beea25f61d356e9a7",
          "assessmentId": "5ce4598beea25f61d356e99f",
          "state": "started"
        },
        {
          "id": "5ce4598beea25f61d356e9b2",
          "assessmentResultId": "5ce4598beea25f61d356e9b0",
          "assessmentId": "5ce4598beea25f61d356e9ab",
          "state": "started"
        }
      ]
    }
  },
  "meta": {
    "enums": {
      "blinding": [
        {
          "value": "none",
          "text": "None"
        },
        {
          "value": "blind_reviewers",
          "text": "Blind reviewers"
        },
        {
          "value": "restricted",
          "text": "Restricted"
        },
        {
          "value": "team",
          "text": "Team"
        }
      ],
      "state": [
        {
          "value": "idle",
          "text": "Idle"
        },
        {
          "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": "2019-05-21T13:03:24.064-07:00",
    "includes": []
  }
}

Delete

Endpoint

DELETE /v1/team_candidates/:id

Parameters

Name Description
id required base16 ObjectId

Request

Route

DELETE /v1/team_candidates/5ce4598feea25f61d356eaf3

Headers

Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVjZTQ1OThmZWVhMjVmNjFkMzU2ZWIxMSIsImlkIjoiNWNlNDU5OGZlZWEyNWY2MWQzNTZlYjEyIiwic2VjcmV0IjoiTnFPY2NnPT0ifQ.P4zeTnCBAEcWGAe9WiWKzT5BiBvnhNjFOAL0deEYm4Q
Content-Type: application/x-www-form-urlencoded

Response

Simulated Response

Status

204

Team Members

List

Returns all non-staff members for admins

Endpoint

GET /v1/team_members

Request

Route

GET /v1/team_members

Headers

Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVjZTQ1OTkwZWVhMjVmNjFkMzU2ZWI1YyIsImlkIjoiNWNlNDU5OTBlZWEyNWY2MWQzNTZlYjVkIiwic2VjcmV0IjoiZmo2RktnPT0ifQ.aF3s3ZQUaZiXqS1RuD0aiqoh6LO4kSNaxFO3e3NAUkk

Response

Simulated Response

Status

200

Headers

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

Body

{
  "type": "TeamMember",
  "data": [
    {
      "id": "5ce45990eea25f61d356eb54",
      "$type": "TeamMember",
      "firstName": "Joe",
      "lastName": "Smith693",
      "name": "Joe Smith693",
      "email": "[email protected]",
      "profileImg": null,
      "createdAt": "2019-05-21T20:03:28.143Z",
      "updatedAt": "2019-05-21T20:03:28.143Z",
      "uiPrefs": null,
      "experiments": null,
      "envRoomId": "test_sWksr24jRi45CpEOPo4n4A",
      "hasPassword": true,
      "intercomUrl": null,
      "confirmationToken": "6KpVOboBZvUDgQ.5ce45990eea25f61d356eb54",
      "teamId": "5ce45990eea25f61d356eb47",
      "role": "owner",
      "state": "active",
      "disabled": false,
      "angelApiKey": null,
      "activatedAt": "2019-05-21T20:03:28.140Z",
      "deactivatedAt": null,
      "notifications": {
        "id": "5ce45990eea25f61d356eb55",
        "assessmentStarted": true,
        "assessmentSubmitted": true,
        "assessmentResultReviewSubmitted": true,
        "candidateApproved": true,
        "candidateRejected": true,
        "noteAdded": true
      },
      "phone": null,
      "title": null,
      "initialUser": false
    },
    {
      "id": "5ce45990eea25f61d356eb51",
      "$type": "TeamMember",
      "firstName": "Joe",
      "lastName": "Smith692",
      "name": "Joe Smith692",
      "email": "[email protected]",
      "profileImg": null,
      "createdAt": "2019-05-21T20:03:28.128Z",
      "updatedAt": "2019-05-21T20:03:28.128Z",
      "uiPrefs": null,
      "experiments": null,
      "envRoomId": "test_TaGoptcYgJDrT2Rn5QCWBA",
      "hasPassword": true,
      "intercomUrl": null,
      "confirmationToken": "rn77fitRL6BLGg.5ce45990eea25f61d356eb51",
      "teamId": "5ce45990eea25f61d356eb47",
      "role": "owner",
      "state": "active",
      "disabled": false,
      "angelApiKey": null,
      "activatedAt": "2019-05-21T20:03:28.125Z",
      "deactivatedAt": null,
      "notifications": {
        "id": "5ce45990eea25f61d356eb52",
        "assessmentStarted": true,
        "assessmentSubmitted": true,
        "assessmentResultReviewSubmitted": true,
        "candidateApproved": true,
        "candidateRejected": true,
        "noteAdded": true
      },
      "phone": null,
      "title": null,
      "initialUser": false
    },
    {
      "id": "5ce45990eea25f61d356eb4e",
      "$type": "TeamMember",
      "firstName": "Joe",
      "lastName": "Smith691",
      "name": "Joe Smith691",
      "email": "[email protected]",
      "profileImg": null,
      "createdAt": "2019-05-21T20:03:28.112Z",
      "updatedAt": "2019-05-21T20:03:28.112Z",
      "uiPrefs": null,
      "experiments": null,
      "envRoomId": "test_kbuTBmcBro9onTcsjD0dww",
      "hasPassword": true,
      "intercomUrl": null,
      "confirmationToken": "kF3wJrr0fkOsVw.5ce45990eea25f61d356eb4e",
      "teamId": "5ce45990eea25f61d356eb47",
      "role": "owner",
      "state": "active",
      "disabled": false,
      "angelApiKey": null,
      "activatedAt": "2019-05-21T20:03:28.109Z",
      "deactivatedAt": null,
      "notifications": {
        "id": "5ce45990eea25f61d356eb4f",
        "assessmentStarted": true,
        "assessmentSubmitted": true,
        "assessmentResultReviewSubmitted": true,
        "candidateApproved": true,
        "candidateRejected": true,
        "noteAdded": true
      },
      "phone": null,
      "title": null,
      "initialUser": false
    },
    {
      "id": "5ce45990eea25f61d356eb43",
      "$type": "TeamMember",
      "firstName": "Joe",
      "lastName": "Smith690",
      "name": "Joe Smith690",
      "email": "[email protected]",
      "profileImg": null,
      "createdAt": "2019-05-21T20:03:28.066Z",
      "updatedAt": "2019-05-21T20:03:28.066Z",
      "uiPrefs": null,
      "experiments": null,
      "envRoomId": "test_cmhDYSwUud8w6XLJSH9PfQ",
      "hasPassword": true,
      "intercomUrl": null,
      "confirmationToken": "r4VTbdpyzCxokQ.5ce45990eea25f61d356eb43",
      "teamId": "5ce4598feea25f61d356eb39",
      "role": "owner",
      "state": "active",
      "disabled": false,
      "angelApiKey": null,
      "activatedAt": "2019-05-21T20:03:28.064Z",
      "deactivatedAt": null,
      "notifications": {
        "id": "5ce45990eea25f61d356eb44",
        "assessmentStarted": true,
        "assessmentSubmitted": true,
        "assessmentResultReviewSubmitted": true,
        "candidateApproved": true,
        "candidateRejected": true,
        "noteAdded": true
      },
      "phone": null,
      "title": null,
      "initialUser": false
    },
    {
      "id": "5ce45990eea25f61d356eb40",
      "$type": "TeamMember",
      "firstName": "Joe",
      "lastName": "Smith689",
      "name": "Joe Smith689",
      "email": "[email protected]",
      "profileImg": null,
      "createdAt": "2019-05-21T20:03:28.043Z",
      "updatedAt": "2019-05-21T20:03:28.043Z",
      "uiPrefs": null,
      "experiments": null,
      "envRoomId": "test_caoGaWNrRzRJGkpMaz4h4A",
      "hasPassword": true,
      "intercomUrl": null,
      "confirmationToken": "ixHU0fM94mra0Q.5ce45990eea25f61d356eb40",
      "teamId": "5ce4598feea25f61d356eb39",
      "role": "owner",
      "state": "active",
      "disabled": false,
      "angelApiKey": null,
      "activatedAt": "2019-05-21T20:03:28.040Z",
      "deactivatedAt": null,
      "notifications": {
        "id": "5ce45990eea25f61d356eb41",
        "assessmentStarted": true,
        "assessmentSubmitted": true,
        "assessmentResultReviewSubmitted": true,
        "candidateApproved": true,
        "candidateRejected": true,
        "noteAdded": true
      },
      "phone": null,
      "title": null,
      "initialUser": false
    }
  ],
  "currentPage": 1,
  "totalPages": 1,
  "totalCount": 5,
  "meta": {
    "timestamp": "2019-05-21T13:03:28.220-07: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/5ce45991eea25f61d356ebd8?includes[]=team&includes[]=authored_challenges&includes[]=authored_assessments

Headers

Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVjZTQ1OTkxZWVhMjVmNjFkMzU2ZWJkYSIsImlkIjoiNWNlNDU5OTFlZWEyNWY2MWQzNTZlYmRiIiwic2VjcmV0IjoicHlWMC9nPT0ifQ.gT826fkPZiiv5AzsPzwQWIqMsjKaoSgtEJGhDkJlTeI

Query Parameters

includes=["team", "authored_challenges", "authored_assessments"]

Response

Simulated Response

Status

200

Headers

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

Body

{
  "id": "5ce45991eea25f61d356ebd8",
  "type": "TeamMember",
  "data": {
    "id": "5ce45991eea25f61d356ebd8",
    "$type": "TeamMember",
    "firstName": "Joe",
    "lastName": "Smith718",
    "name": "Joe Smith718",
    "email": "[email protected]",
    "profileImg": null,
    "createdAt": "2019-05-21T20:03:29.072Z",
    "updatedAt": "2019-05-21T20:03:29.072Z",
    "uiPrefs": null,
    "experiments": null,
    "envRoomId": "test_AzsUH9coR37uRYJwdtLAwg",
    "hasPassword": true,
    "intercomUrl": null,
    "confirmationToken": "Cy0jt5kOzqLdCg.5ce45991eea25f61d356ebd8",
    "teamId": "5ce45991eea25f61d356ebd1",
    "role": "owner",
    "state": "active",
    "disabled": false,
    "angelApiKey": null,
    "team": {
      "id": "5ce45991eea25f61d356ebd1",
      "name": "team290",
      "updatedAt": "2019-05-21T20:03:29.035Z",
      "highConcept": null,
      "website": null,
      "productTypes": {
        "_id": "5ce45991eea25f61d356ebd4",
        "education": true,
        "recruitment": true
      },
      "customerId": "5ce45990eea25f61d356ebcf",
      "hasDemoData": false,
      "buildingDemoData": false,
      "destroyingDemoData": false,
      "surveysDisabled": null,
      "labs": {
        "advancedCodeChallenges": false,
        "angellistSourcing": false
      },
      "logoImg": {
        "id": "5ce45991eea25f61d356ebd3",
        "fileId": "ShKBmg",
        "fileFormat": "jpg",
        "width": 500,
        "height": 500,
        "url": "//res.cloudinary.com/strive/image/upload/ShKBmg.jpg",
        "rawUrl": "https://s3-us-west-1.amazonaws.com/strive-uploads/ShKBmg.jpg",
        "size": null,
        "brightness": null,
        "background": null
      },
      "createdAt": "2019-05-21T20:03:29.035Z",
      "state": "inactive",
      "assessmentsEnabled": true,
      "publishedAssessmentCount": 0,
      "assessmentResultCount": 0,
      "growthSpeed": "high_growth",
      "companySize": null,
      "engineeringTeamSize": null,
      "referenceInfo": null,
      "notificationScheme": "entire_team",
      "setupAssessmentId": null,
      "setupComplete": false,
      "desiredLanguages": null,
      "assessmentNounUpper": "Assessment",
      "showReviewsToReviewers": false,
      "unblindAfterDecision": false,
      "loginProviders": [
        "qualified"
      ],
      "apiKey": null,
      "zapierApiKey": null,
      "greenhouseApiKey": null,
      "workableApiKey": null,
      "hasBlindReviewers": false,
      "msaSigned": false,
      "desiredFeatures": {
        "id": "5ce45991eea25f61d356ebd6",
        "takeHome": true
      },
      "progressEvents": {
        "id": "5ce45991eea25f61d356ebdc"
      },
      "salesLeadQuality": null,
      "salesLeadContacted": false,
      "nameWasGenerated": false,
      "teamMemberRoleCounts": {
        "owner": 1
      },
      "desiredIntegration": null,
      "desiredIntegrationIsCurrent": null,
      "evaluatedCandidatesMonthly": null,
      "evaluatedCandidatesYearly": null,
      "msaSignedAt": null,
      "msaSignedById": null,
      "samlIssuer": null,
      "samlMetadata": null,
      "samlMetadataUrl": null,
      "utmTracking": {
        "id": "5ce45991eea25f61d356ebd5",
        "utmSource": "qualified"
      }
    },
    "activatedAt": "2019-05-21T20:03:29.069Z",
    "deactivatedAt": null,
    "notifications": {
      "id": "5ce45991eea25f61d356ebd9",
      "assessmentStarted": true,
      "assessmentSubmitted": true,
      "assessmentResultReviewSubmitted": true,
      "candidateApproved": true,
      "candidateRejected": true,
      "noteAdded": true
    },
    "phone": null,
    "title": null,
    "authoredAssessments": [],
    "authoredChallenges": [],
    "initialUser": false
  },
  "meta": {
    "enums": {
      "role": [
        {
          "value": "owner",
          "text": "Account Manager"
        },
        {
          "value": "inviter",
          "text": "Manager"
        },
        {
          "value": "reviewer",
          "text": "Reviewer"
        },
        {
          "value": "blind_reviewer",
          "text": "Blind Reviewer"
        },
        {
          "value": "staff",
          "text": "Qualified Staff Member"
        },
        {
          "value": "api",
          "text": "API"
        },
        {
          "value": "demo",
          "text": "Demo Team Member"
        }
      ],
      "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": "assessmentResultReviewSubmitted",
          "text": "Assessment Review Submitted"
        },
        {
          "value": "candidateApproved",
          "text": "Candidate Approved"
        },
        {
          "value": "candidateRejected",
          "text": "Candidate Rejected"
        },
        {
          "value": "noteAdded",
          "text": "Note added"
        }
      ]
    },
    "timestamp": "2019-05-21T13:03:29.120-07:00",
    "includes": [
      "team",
      "authored_challenges",
      "authored_assessments"
    ]
  }
}

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.eyJpZGVudGl0eV9pZCI6IjVjZTQ1OTkxZWVhMjVmNjFkMzU2ZWJkZCIsImlkIjoiNWNlNDU5OTFlZWEyNWY2MWQzNTZlYmRlIiwic2VjcmV0IjoiblYzYzh3PT0ifQ.6D79ICmM5IJRVmXSWAqDUzMswANma1HYi1rnjc36Klw

Body

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

Response

Simulated Response

Status

200

Headers

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

Body

{
  "id": "5ce45991eea25f61d356ebe8",
  "type": "TeamMember",
  "data": {
    "id": "5ce45991eea25f61d356ebe8",
    "$type": "TeamMember",
    "firstName": "Joe",
    "lastName": "Smith",
    "name": "Joe Smith",
    "email": "[email protected]",
    "profileImg": null,
    "createdAt": "2019-05-21T20:03:29.250Z",
    "updatedAt": "2019-05-21T20:03:29.250Z",
    "uiPrefs": null,
    "experiments": null,
    "envRoomId": "test_Ae3cjzbr2E9vY8F8UD0OHA",
    "hasPassword": false,
    "intercomUrl": null,
    "confirmationToken": "NKiUrazbHMAcrw.5ce45991eea25f61d356ebe8",
    "teamId": "5ce45991eea25f61d356ebe1",
    "role": "owner",
    "state": "invited",
    "disabled": false,
    "angelApiKey": null,
    "activatedAt": "2019-05-21T20:03:29.250Z",
    "deactivatedAt": null,
    "notifications": {
      "id": "5ce45991eea25f61d356ebe9",
      "assessmentStarted": true,
      "assessmentSubmitted": true,
      "assessmentResultReviewSubmitted": true,
      "candidateApproved": true,
      "candidateRejected": true,
      "noteAdded": true
    },
    "phone": null,
    "title": null,
    "initialUser": false
  },
  "meta": {
    "enums": {
      "role": [
        {
          "value": "owner",
          "text": "Account Manager"
        },
        {
          "value": "inviter",
          "text": "Manager"
        },
        {
          "value": "reviewer",
          "text": "Reviewer"
        },
        {
          "value": "blind_reviewer",
          "text": "Blind Reviewer"
        },
        {
          "value": "staff",
          "text": "Qualified Staff Member"
        },
        {
          "value": "api",
          "text": "API"
        },
        {
          "value": "demo",
          "text": "Demo Team Member"
        }
      ],
      "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": "assessmentResultReviewSubmitted",
          "text": "Assessment Review Submitted"
        },
        {
          "value": "candidateApproved",
          "text": "Candidate Approved"
        },
        {
          "value": "candidateRejected",
          "text": "Candidate Rejected"
        },
        {
          "value": "noteAdded",
          "text": "Note added"
        }
      ]
    },
    "timestamp": "2019-05-21T13:03:29.258-07: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/5ce45991eea25f61d356ebed

Headers

Content-Type: application/json
Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVjZTQ1OTkxZWVhMjVmNjFkMzU2ZWJlYSIsImlkIjoiNWNlNDU5OTFlZWEyNWY2MWQzNTZlYmViIiwic2VjcmV0IjoieEVGeHB3PT0ifQ.6C__oLVPcJEeL7a5JK9kjocMn3f-hUrdFO71DndSuoA

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": "5ce45991eea25f61d356ebed",
  "type": "TeamMember",
  "data": {
    "id": "5ce45991eea25f61d356ebed",
    "$type": "TeamMember",
    "firstName": "Test",
    "lastName": "Time",
    "name": "Test Time",
    "email": "[email protected]",
    "profileImg": null,
    "createdAt": "2019-05-21T20:03:29.371Z",
    "updatedAt": "2019-05-21T20:03:29.404Z",
    "uiPrefs": {
      "theme": "dark"
    },
    "experiments": null,
    "envRoomId": "test_PA5mqgF2yCghVNcu0CzsDA",
    "hasPassword": true,
    "intercomUrl": null,
    "confirmationToken": "CtowY92rekTMzg.5ce45991eea25f61d356ebed",
    "teamId": "5ce45991eea25f61d356ebf0",
    "role": "owner",
    "state": "active",
    "disabled": false,
    "angelApiKey": null,
    "activatedAt": "2019-05-21T20:03:29.320Z",
    "deactivatedAt": null,
    "notifications": {
      "id": "5ce45991eea25f61d356ebf6",
      "assessmentStarted": true,
      "assessmentSubmitted": true,
      "assessmentResultReviewSubmitted": true,
      "candidateApproved": true,
      "candidateRejected": true,
      "noteAdded": true
    },
    "phone": null,
    "title": null,
    "initialUser": false
  },
  "meta": {
    "enums": {
      "role": [
        {
          "value": "owner",
          "text": "Account Manager"
        },
        {
          "value": "inviter",
          "text": "Manager"
        },
        {
          "value": "reviewer",
          "text": "Reviewer"
        },
        {
          "value": "blind_reviewer",
          "text": "Blind Reviewer"
        },
        {
          "value": "staff",
          "text": "Qualified Staff Member"
        },
        {
          "value": "api",
          "text": "API"
        },
        {
          "value": "demo",
          "text": "Demo Team Member"
        }
      ],
      "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": "assessmentResultReviewSubmitted",
          "text": "Assessment Review Submitted"
        },
        {
          "value": "candidateApproved",
          "text": "Candidate Approved"
        },
        {
          "value": "candidateRejected",
          "text": "Candidate Rejected"
        },
        {
          "value": "noteAdded",
          "text": "Note added"
        }
      ]
    },
    "timestamp": "2019-05-21T13:03:29.409-07:00",
    "includes": []
  }
}

WebhookSubscriptions

List

Endpoint

GET /v1/webhook_subscriptions

Parameters

Name Description
includes Valid values are:

Request

Route

GET /v1/webhook_subscriptions

Headers

Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVjZTQ1OTk2ZWVhMjVmNjFkMzU2ZWVlMyIsImlkIjoiNWNlNDU5OTZlZWEyNWY2MWQzNTZlZWU0Iiwic2VjcmV0IjoiS0NhcER3PT0ifQ.mJ_hijBk_x5O4m4qlktK9BirUsnJ4Kncgogaov5VLEE

Response

Simulated Response

Status

200

Headers

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

Body

{
  "type": "WebhookSubscription",
  "data": [
    {
      "id": "5ce45996eea25f61d356eeee",
      "name": "Default",
      "url": "https://www.test.com/katsw",
      "schema": "v1",
      "triggerOnAll": false,
      "eventTriggers": {
        "id": "5ce45996eea25f61d356eeef",
        "challengeCreated": true
      }
    }
  ],
  "currentPage": 1,
  "totalPages": 1,
  "totalCount": 1,
  "meta": {
    "timestamp": "2019-05-21T13:03:35.033-07:00",
    "includes": []
  }
}

Get

Endpoint

GET /v1/webhook_subscriptions/:id

Request

Route

GET /v1/webhook_subscriptions/5ce45997eea25f61d356eefb

Headers

Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVjZTQ1OTk3ZWVhMjVmNjFkMzU2ZWVmMCIsImlkIjoiNWNlNDU5OTdlZWEyNWY2MWQzNTZlZWYxIiwic2VjcmV0IjoiT3pwQThBPT0ifQ.E_vwTNtLipxI7TQKfhzRWyP8swMyunDqbouAp8kf70U

Response

Simulated Response

Status

200

Headers

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

Body

{
  "id": "5ce45997eea25f61d356eefb",
  "type": "WebhookSubscription",
  "data": {
    "id": "5ce45997eea25f61d356eefb",
    "name": "Default",
    "url": "https://www.test.com/kcnbx",
    "schema": "v1",
    "triggerOnAll": false,
    "eventTriggers": {
      "id": "5ce45997eea25f61d356eefc",
      "challengeCreated": true
    }
  },
  "meta": {
    "timestamp": "2019-05-21T13:03:35.191-07:00",
    "includes": []
  }
}

Create

Endpoint

POST /v1/webhook_subscriptions

Parameters

Name Description
data.url required data.url
data.eventTriggers Object
data.triggerOnAll Boolean

Request

Route

POST /v1/webhook_subscriptions

Headers

Content-Type: application/json
Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVjZTQ1OTk3ZWVhMjVmNjFkMzU2ZWVmZCIsImlkIjoiNWNlNDU5OTdlZWEyNWY2MWQzNTZlZWZlIiwic2VjcmV0IjoicS9sSWl3PT0ifQ.QKUVJu6E6_N8wYQyiBqhkCX52mbHnv_c0VE-R7ICxMk

Body

{
  "data": {
    "name": "My Hook",
    "url": "https://www.test.com/d8d3fa",
    "eventTriggers": {
      "challenge_created": true
    }
  }
}

Response

Simulated Response

Status

200

Headers

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

Body

{
  "id": "5ce45997eea25f61d356ef08",
  "type": "WebhookSubscription",
  "data": {
    "id": "5ce45997eea25f61d356ef08",
    "name": "My Hook",
    "url": "https://www.test.com/d8d3fa",
    "schema": "v1",
    "triggerOnAll": false,
    "eventTriggers": {
      "id": "5ce45997eea25f61d356ef09",
      "challengeCreated": true
    }
  },
  "meta": {
    "timestamp": "2019-05-21T13:03:35.338-07:00",
    "includes": []
  }
}

Update

Endpoint

PUT /v1/webhook_subscriptions/:id

Parameters

Name Description
data.url required data.url
data.eventTriggers Object
data.triggerOnAll Boolean

Request

Route

PUT /v1/webhook_subscriptions/5ce45997eea25f61d356ef24

Headers

Content-Type: application/json
Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVjZTQ1OTk3ZWVhMjVmNjFkMzU2ZWYxOSIsImlkIjoiNWNlNDU5OTdlZWEyNWY2MWQzNTZlZjFhIiwic2VjcmV0IjoiU2xlRlBBPT0ifQ.OQ6haozlaNCNXUVSO6_lUmjTVdNUAglJpTDPJji4JWU

Body

{
  "data": {
    "name": "My Hook"
  },
  "includes": []
}

Response

Simulated Response

Status

200

Headers

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

Body

{
  "id": "5ce45997eea25f61d356ef24",
  "type": "WebhookSubscription",
  "data": {
    "id": "5ce45997eea25f61d356ef24",
    "name": "My Hook",
    "url": "https://www.test.com/cwnaj",
    "schema": "v1",
    "triggerOnAll": false,
    "eventTriggers": {
      "id": "5ce45997eea25f61d356ef25",
      "challengeCreated": true
    }
  },
  "meta": {
    "timestamp": "2019-05-21T13:03:35.684-07:00",
    "includes": []
  }
}

Delete

Endpoint

DELETE /v1/webhook_subscriptions/:id

Request

Route

DELETE /v1/webhook_subscriptions/5ce45997eea25f61d356ef31

Headers

Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eV9pZCI6IjVjZTQ1OTk3ZWVhMjVmNjFkMzU2ZWYyNiIsImlkIjoiNWNlNDU5OTdlZWEyNWY2MWQzNTZlZjI3Iiwic2VjcmV0IjoiZlJadEdnPT0ifQ.ST-9v3iuKOP8Kuc1LZjSsXBzhLaTp2G-ezG8WOdMovQ
Content-Type: application/x-www-form-urlencoded

Response

Simulated Response

Status

204

Delete By Url

Endpoint

DELETE /v1/webhook_subscriptions/url?url=:url

Request

Route

DELETE /v1/webhook_subscriptions/url?url=https://www.test.com/hbhpg

Headers

Authorization: KpujzE+oI/wsrtlD0SlnKD00CBDB38gS
Content-Type: application/x-www-form-urlencoded

Query Parameters

url=https://www.test.com/hbhpg

Response

Simulated Response

Status

204