Description
Enables you to withdrawing an offer from the marketplace. This operation requires passing an offer id as part of a REQUEST parameter. After a successful withdraw, the offer is not available in the marketplace anymore.
Request
POST https://api.smartrecruiters.com/v1/offers/{offerid}/withdraw
Path Parameters
name | type | description |
---|---|---|
offerId | string | unique id of an offer |
Query Parameters
n/a
Request Body
n/a
Response Body
Instance of Offer
Example request
curl -i -H "X-SmartToken:abc123" -H "Content-Type: application/json;charset=utf-8" -X POST https://api.smartrecruiters.com/v1/offers/511a3942300469a9c33819d8/withdraw
Example response
{ "id" : "511a3942300469a9c33819d8", "createDate": "2013-03-13T12:05:46.398+0000", "lastUpdateDate": "2013-03-13T12:05:46.398+0000", "catalogId": "ab-32-gf-asd", "name": "Java Developer Skill Test", "description": "Senior Java Developer Test", "status" : "INACTIVE", "terms": { "type": "SKILLS_TEST", "price": { "amount": "20.00", "currencyCode": "USD" } }, "availability": { "expirationDate": "2013-02-26T09:32:02.528+0000", "industries": [ { "id": "computer_software", "label" : "Computer Software" }, { "id": "internet", "label" : "Internet" } ], "locations": [ { "country": "US", "region": "CA", "city": "San Francisco" } ] }, "targetMarket": { "industries": [ { "id": "computer_software", "label" : "Computer Software" }, { "id": "internet", "label" : "Internet" } ], "functions": [ { "id": "engineering", "label" : "Engineering" }, { "id": "research", "label": "Research" } ], "experienceLevels": [ { "id": "mid_senior_level", "label": "Mid-Senior Level" } ], "locations": [ { "country": "US", "region": "California", "city": "San Francisco" } ] } } |