Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8661067
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T16:24:24+00:00 2026-06-12T16:24:24+00:00

I’m trying to post a job to an odesk account using their API. Unfortunately,

  • 0

I’m trying to post a job to an odesk account using their API. Unfortunately, I’m having trouble doing so.

I was able to get authenticated and GET my jobs, but when I tried POSTing a job, it returns a 400 error.

Here is response body.

HTTP Error 400: Bad Request
Exception at POST https://www.odesk.com/api/hr/v2/jobs.json
Server: nginx
Date: Thu, 11 Oct 2012 21:38:08 GMT
Content-Type: application/json
X-Odesk-Error-Code: 4
X-Odesk-Error-Message: Parameter job_data is missing or invalid
Last-Modified: Thu, 11 Oct 2012 21:38:08 GMT
Accept-Ranges: bytes
Cache-Control: no-store
Pragma: no-cache
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Transfer-Encoding: chunked
Connection: close

I’m also using python-odesk.
I followed this to the T, and I got the above error.
https://github.com/odesk/python-odesk/blob/master/examples/get_create_update_jobs.py

There was a discussion on this:
https://www.odesk.com/community/node/19676
But I don’t think it’s solved.

I’m even trying to send through Postman and I get a:
“Not all required params were filled”

I’ve tried the following packets to send to odesk.
Assume XXXXXX is a valid buyer_team__reference.

    data = {
            'buyer_team__reference': XXXXXX,
            'title': 'Test job from API',
            'job_type': 'hourly',
            'description': 'this is test job, please do not apply to it',
            'visibility': 'invite-only',
            'category': 'Web Development',
            'subcategory': 'Web Programming',
            'budget': 10,
            'duration': 7,
    }

or

    data = {
            'job_data': {
                    'buyer_team__reference': XXXXXX,
                    'title': 'Test job from API',
                    'job_type': 'hourly',
                    'description': 'this is test job, please do not apply to it',
                    'visibility': 'invite-only',
                    'category': 'Web Development',
                    'subcategory': 'Web Programming',
                    'budget': 10,
                    'duration': 7,
            }
    }

Note: I’ve tried many variations of this similar packet, but with no success.

If someone has experience in odesk API in any language, any help would be great.

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T16:24:25+00:00Added an answer on June 12, 2026 at 4:24 pm

    After trying python-odesk, i gave up and used mechanize instead to automate the job posting into oDesk

    Do a pip install mechanize

    import mechanize,cookielib
    # Browser
    br = mechanize.Browser()
    
    # Cookie Jar
    cj = cookielib.LWPCookieJar()
    br.set_cookiejar(cj)
    
    # Browser options
    br.set_handle_equiv(True)
    br.set_handle_gzip(True)
    br.set_handle_redirect(True)
    br.set_handle_referer(True)
    br.set_handle_robots(False)
    
    # Follows refresh 0 but not hangs on refresh > 0
    br.set_handle_refresh(mechanize._http.HTTPRefreshProcessor(), max_time=1)
    
    # Want debugging messages?
    #br.set_debug_http(True)
    #br.set_debug_redirects(True)
    #br.set_debug_responses(True)
    
    # User-Agent (this is cheating, ok?)
    br.addheaders = [('User-agent', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.1) Gecko/2008071615 Fedora/3.0.1-1.fc9 Firefox/3.0.1')]
    
    # Open odesk site
    r = br.open('https://www.odesk.com/login.php')
    form = br.forms().next()  # the login form is unnamed...
    print form.action
    form['login'] = 'yourlogin'
    form['password'] = 'yourpassword'
    br.form = form
    br.submit()
    
    print br.geturl()
    #your form data goes here
    r = br.open(br.geturl() + 'new/')
    print br.geturl()
    br.select_form(name="jobsPost")  # the form is unnamed...
    br.find_control(name="category").value = ['Writing & Translation']
    br.find_control(name="subcategory").value = ['35']
    br.form['title'] = 'Filling up a profile'
    br.form['description'] = 'Require assistance in filing up our profile'
    br.find_control(name="job_type").value = ['Fixed']
    br.form['job_budget'] = '10'
    br.form['job_finish_date'] = '10-14-2012'
    br.find_control(name="visibility").value = ['private']
    br.submit()
    
    print br.geturl()
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
We're building an app, our first using Rails 3, and we're having to build
I'm trying to create an if statement in PHP that prevents a single post
I'm having trouble keeping the paragraph square between the quote marks. In firefox the
I'm making a simple page using Google Maps API 3. My first. One marker
Let's say I'm outputting a post title and in our database, it's Hello Y’all
I am trying to understand how to use SyndicationItem to display feed which is
Basically, what I'm trying to create is a page of div tags, each has
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
That's pretty much it. I'm using Nokogiri to scrape a web page what has

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.