Custom Onboarding API

This page allows you to retrieve custom onboarding questions and submit the values for a given job seeker.

Get Custom Requirements

GET https://www.ondemandstaffing.app/api/v1/jobseeker/get_custom_onboarding

This end points gets all the custom onboarding requirements relevant for a given Job Seeker.

Query Parameters

Name
Type
Description

tenant

string

The Tenant key for which the API is being used.

Headers

Name
Type
Description

Authentication

string

Authentication token to identify user who is requesting the custom onboarding. The user must be a Job Seeker with basic profile completed.

[
    {
        "id": 3,
        "form_title": "Provide Emergency contact details",
        "form_description": "We use this information only in case of emergency.",
        "form_category": "standard",
        "custom_form_content": "**could contain rich text content**",
        "slug": "emergency-contact-2349",
        "fields":
        [
   {
      "key":12,
      "question":"Spanish Level?",
      "field_type":"Dropdown",
      "units":"ot",
      "options":[
         "Principiante",
         "  Intermedio",
         "  Avanzado",
         " No hablo"
      ],
      "required_level":"required",
      "description":null,
      "value":null
   },
   {
      "key":41,
      "question":"Height? ",
      "field_type":"Dropdown",
      "units":"in",
      "options":[
         "193 Cm",
         "194 Cm",
         "195 Cm",
         "196 Cm",
         "197 Cm",
         "198 Cm",
         "199 Cm",
         "200 Cm"
      ],
      "required_level":"required",
      "description":"",
      "value":"189 Cm"
   },
   {
      "key":42,
      "question":"Certificate?",
      "field_type":"File",
      "units":"ot",
      "required_level":"required",
      "description":"Please login to<a href='www.certificate.com'> this website </a> and prvoide your certificate.",
      "value":null
   },{
                "key": "cert_8",
                "label": "Wolf Platform Certified",
                "description": "Got trained on Wolf platform",
                "type": "credential",
                "required_fields": [
                    "certificate_file"
                ],
                "hidden_fields": [
                    "credential_url"
                ],
                "geography_scoped": null,
                "placeholder": "Wolf Platform Certified",
                "required": false,
                "id": "cert_8",
                "subject": "Wolf Platform Certified",
                "field_type": "custom",
                "country": 6,
                "value": {
                    "issue_date": "Nov 01, 2016",
                    "certificate_name": "Wolf Platform Certified",
                    "credential_id": "asdfasfsdds",
                    "id": "d54b51f3f0256d2d037f547ec6be930d",
                    "cert_request_id": "8"
                }
            }
]
}
]

Update Custom Requirement

POST https://www.ondemandstaffing.app/api/v1/jobseeker/get_custom_onboarding

Post updates to custom requirements values for a given Job Seeker. To update it individually send the parameter 'custom_requirement_id' and 'value'. To update the whole form send 'form_submission' with an array of hashes containing 'custom_requirement_id' and 'value'. Example below.

Query Parameters

Name
Type
Description

form_submission

array

Array of hashes with field id as: 'custom_requirement_id' and value as 'value'.

custom_requirement_id

string

Id of the custom requirement question which is being updated.

value

string

Value that user submitted or saved.

tenant

string

Tenant Key for which the API is being used.

Headers

Name
Type
Description

Authentication

string

Authenticaation token to identify user who is requesting updating their custom requirements.

{ status: 200  , data: { opertaion_status: 'Success'}, message: "Success"}

Sample Request updating one specific field:

{'custom_requirement_id': 323, 'value': 'test value'}

Sample request updating one specific credential:

{'custom_requirement_id' : 'cert_23',
    'value': {
        "issue_date": "Nov 01, 2016",
        "certificate_name": "Wolf Platform Certified",
        "credential_id": "asdfasfsdds",
        "id": "d54b51f3f0256d2d037f547ec6be930d",
        "cert_request_id": "8"
  }
 }

Sample Request updating entire form:

 {'form_submission': 
   [{'custom_requirement_id': 323, 'value': 'test value'},
    {'custom_requirement_id': 93, 'value': 'hello world'},
    {'custom_requirement_id' : 'cert_23',
    'value': {
        "issue_date": "Nov 01, 2016",
        "certificate_name": "Wolf Platform Certified",
        "credential_id": "asdfasfsdds",
        "id": "d54b51f3f0256d2d037f547ec6be930d",
        "cert_request_id": "8"
  }
   ]
 }

Last updated

Was this helpful?