• Resolved pablogra

    (@pablogra)


    Hello,

    I am trying to create a job through the REST API and I have been able to take all the necessary fields to create the fields but I’m having a problem, because I can’t find the data that links a job to a company. I use this code:

    {
        "date": "2021-02-03T18:26:50",
        "date_gmt": "2021-02-03T18:26:50",
        "slug": "test-fran",
        "status": "publish",
        "type": "job_listing",
        "link": "https://test-fran/",
        "title": {
            "raw": "el título crudo",
            "rendered": "#2 yo lo automatizo todo"
        },
        "content": {
            "raw": "una prueba raw",
            "rendered": "<div><p> una <b>prueba</b> raw</p></div>",
            "protected": false
        },
        "author": 1,
        "job-categories": 96,
        "job-types": 104,
        "ID": 3558 (THIS ID IS OF THE COMPANY BUT IT ISN´T WORKING)
    }

    Anyone How can I link through the api, a job with a company? What is the data that identifies a company?

    My theme is Cariera.

    THANKS YOU!!!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support bindlegirl (a11n)

    (@bindlegirl)

    Hi @pablogra !

    The employer is the post author. If I got this right, the “author”: 1 in your case is the ID of the employer. I’m not sure what is the other ID that doesn’t work for you.

    Plugin Support bindlegirl (a11n)

    (@bindlegirl)

    I’m marking this as resolved since it’s been over 2 weeks with no response. If you still need help with this, please feel free to mark it ‘not resolved’ again.

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Post a Job – API’ is closed to new replies.