Create User Profile

Creating user profiles is a necessary step to enable application creation. On this page, we'll discuss how to create profiles for users programmatically. We'll look at how to send a request and handle the response.

Return Schema

The profile model contains detailed information about the necessary aspects of a complete profile, such as full name, email, phone number, etc.

Properties

  • Name
    message
    Type
    string
    Description

    A success flag indicating whether the request was successful.

  • Name
    data
    Type
    string
    Description

    The uid of the created user.


POST/api/api-create-user

Create a User

This endpoint accepts profiles for one user. All required fields must be filled and verified according to the Profile Schema.

Edit a User

Importantly, include the "uid" property (string) as a field in the user profile to edit an existing profile instead of creating a new one. Editing a profile replaces the old profile with the new one specified, so include all fields when editing.

const userData = 
  {
    name: 'John Doe',
    email: 'test@example.com',
    phone: '(123)-456-7890',
    address: '100 Example Lane, City, CA',
    filename: 'resume.pdf', // MAKE SURE TO include the file extension here (.pdf, .txt, etc).
    resumeLink: 'https://some-link/resume.pdf', // Upload only pdf, txt, and docx files. 
    keyInfo: 'I am good at coding.',
    linkedin: 'example',
    uid: '4dcm...' // TO EDIT
  }

Edit a User's Resume

Resumes cannot be edited using the above function. Instead, call api-update-user-resume with a uid and an updated filename and link.

Request

POST
/api/api-update-user-resume
curl -X POST https://app.wranglejobs.com/api/api-update-user-resume \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer {api-key}' \
  -d '{"uid": uid, "filename": filename, "resumeLink": resumeLink}'

Required attributes

  • Name
    uid
    Type
    string
    Description

    Id of the user you wish to edit the resume of.

  • Name
    uid
    Type
    string
    Description

    New name for the updated resume file.

  • Name
    resumeLink
    Type
    string
    Description

    Valid link accessable to the public to an updated resume.

Request

POST
/api/api-create-user
curl -X POST https://app.wranglejobs.com/api/api-create-user \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer {api-key}' \
  -d '{"userData": profile}'

Was this page helpful?